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

com.google.ads.googleads.v17.services.AudienceInsightsAttribute Maven / Gradle / Ivy

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

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.services;

/**
 * 
 * An audience attribute that can be used to request insights about the
 * audience.
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.AudienceInsightsAttribute} */ public final class AudienceInsightsAttribute extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.AudienceInsightsAttribute) AudienceInsightsAttributeOrBuilder { private static final long serialVersionUID = 0L; // Use AudienceInsightsAttribute.newBuilder() to construct. private AudienceInsightsAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AudienceInsightsAttribute() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AudienceInsightsAttribute(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceInsightsAttribute_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceInsightsAttribute_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.AudienceInsightsAttribute.class, com.google.ads.googleads.v17.services.AudienceInsightsAttribute.Builder.class); } private int attributeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object attribute_; public enum AttributeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AGE_RANGE(1), GENDER(2), LOCATION(3), USER_INTEREST(4), ENTITY(5), CATEGORY(6), DYNAMIC_LINEUP(7), PARENTAL_STATUS(8), INCOME_RANGE(9), YOUTUBE_CHANNEL(10), ATTRIBUTE_NOT_SET(0); private final int value; private AttributeCase(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 AttributeCase valueOf(int value) { return forNumber(value); } public static AttributeCase forNumber(int value) { switch (value) { case 1: return AGE_RANGE; case 2: return GENDER; case 3: return LOCATION; case 4: return USER_INTEREST; case 5: return ENTITY; case 6: return CATEGORY; case 7: return DYNAMIC_LINEUP; case 8: return PARENTAL_STATUS; case 9: return INCOME_RANGE; case 10: return YOUTUBE_CHANNEL; case 0: return ATTRIBUTE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AttributeCase getAttributeCase() { return AttributeCase.forNumber( attributeCase_); } public static final int AGE_RANGE_FIELD_NUMBER = 1; /** *
   * An audience attribute defined by an age range.
   * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; * @return Whether the ageRange field is set. */ @java.lang.Override public boolean hasAgeRange() { return attributeCase_ == 1; } /** *
   * An audience attribute defined by an age range.
   * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; * @return The ageRange. */ @java.lang.Override public com.google.ads.googleads.v17.common.AgeRangeInfo getAgeRange() { if (attributeCase_ == 1) { return (com.google.ads.googleads.v17.common.AgeRangeInfo) attribute_; } return com.google.ads.googleads.v17.common.AgeRangeInfo.getDefaultInstance(); } /** *
   * An audience attribute defined by an age range.
   * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; */ @java.lang.Override public com.google.ads.googleads.v17.common.AgeRangeInfoOrBuilder getAgeRangeOrBuilder() { if (attributeCase_ == 1) { return (com.google.ads.googleads.v17.common.AgeRangeInfo) attribute_; } return com.google.ads.googleads.v17.common.AgeRangeInfo.getDefaultInstance(); } public static final int GENDER_FIELD_NUMBER = 2; /** *
   * An audience attribute defined by a gender.
   * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; * @return Whether the gender field is set. */ @java.lang.Override public boolean hasGender() { return attributeCase_ == 2; } /** *
   * An audience attribute defined by a gender.
   * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; * @return The gender. */ @java.lang.Override public com.google.ads.googleads.v17.common.GenderInfo getGender() { if (attributeCase_ == 2) { return (com.google.ads.googleads.v17.common.GenderInfo) attribute_; } return com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance(); } /** *
   * An audience attribute defined by a gender.
   * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; */ @java.lang.Override public com.google.ads.googleads.v17.common.GenderInfoOrBuilder getGenderOrBuilder() { if (attributeCase_ == 2) { return (com.google.ads.googleads.v17.common.GenderInfo) attribute_; } return com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance(); } public static final int LOCATION_FIELD_NUMBER = 3; /** *
   * An audience attribute defined by a geographic location.
   * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return attributeCase_ == 3; } /** *
   * An audience attribute defined by a geographic location.
   * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; * @return The location. */ @java.lang.Override public com.google.ads.googleads.v17.common.LocationInfo getLocation() { if (attributeCase_ == 3) { return (com.google.ads.googleads.v17.common.LocationInfo) attribute_; } return com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance(); } /** *
   * An audience attribute defined by a geographic location.
   * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; */ @java.lang.Override public com.google.ads.googleads.v17.common.LocationInfoOrBuilder getLocationOrBuilder() { if (attributeCase_ == 3) { return (com.google.ads.googleads.v17.common.LocationInfo) attribute_; } return com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance(); } public static final int USER_INTEREST_FIELD_NUMBER = 4; /** *
   * An Affinity or In-Market audience.
   * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; * @return Whether the userInterest field is set. */ @java.lang.Override public boolean hasUserInterest() { return attributeCase_ == 4; } /** *
   * An Affinity or In-Market audience.
   * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; * @return The userInterest. */ @java.lang.Override public com.google.ads.googleads.v17.common.UserInterestInfo getUserInterest() { if (attributeCase_ == 4) { return (com.google.ads.googleads.v17.common.UserInterestInfo) attribute_; } return com.google.ads.googleads.v17.common.UserInterestInfo.getDefaultInstance(); } /** *
   * An Affinity or In-Market audience.
   * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; */ @java.lang.Override public com.google.ads.googleads.v17.common.UserInterestInfoOrBuilder getUserInterestOrBuilder() { if (attributeCase_ == 4) { return (com.google.ads.googleads.v17.common.UserInterestInfo) attribute_; } return com.google.ads.googleads.v17.common.UserInterestInfo.getDefaultInstance(); } public static final int ENTITY_FIELD_NUMBER = 5; /** *
   * An audience attribute defined by interest in a topic represented by a
   * Knowledge Graph entity.
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; * @return Whether the entity field is set. */ @java.lang.Override public boolean hasEntity() { return attributeCase_ == 5; } /** *
   * An audience attribute defined by interest in a topic represented by a
   * Knowledge Graph entity.
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; * @return The entity. */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsEntity getEntity() { if (attributeCase_ == 5) { return (com.google.ads.googleads.v17.services.AudienceInsightsEntity) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsEntity.getDefaultInstance(); } /** *
   * An audience attribute defined by interest in a topic represented by a
   * Knowledge Graph entity.
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsEntityOrBuilder getEntityOrBuilder() { if (attributeCase_ == 5) { return (com.google.ads.googleads.v17.services.AudienceInsightsEntity) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsEntity.getDefaultInstance(); } public static final int CATEGORY_FIELD_NUMBER = 6; /** *
   * An audience attribute defined by interest in a Product & Service
   * category.
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; * @return Whether the category field is set. */ @java.lang.Override public boolean hasCategory() { return attributeCase_ == 6; } /** *
   * An audience attribute defined by interest in a Product & Service
   * category.
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; * @return The category. */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsCategory getCategory() { if (attributeCase_ == 6) { return (com.google.ads.googleads.v17.services.AudienceInsightsCategory) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsCategory.getDefaultInstance(); } /** *
   * An audience attribute defined by interest in a Product & Service
   * category.
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsCategoryOrBuilder getCategoryOrBuilder() { if (attributeCase_ == 6) { return (com.google.ads.googleads.v17.services.AudienceInsightsCategory) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsCategory.getDefaultInstance(); } public static final int DYNAMIC_LINEUP_FIELD_NUMBER = 7; /** *
   * A YouTube Dynamic Lineup
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; * @return Whether the dynamicLineup field is set. */ @java.lang.Override public boolean hasDynamicLineup() { return attributeCase_ == 7; } /** *
   * A YouTube Dynamic Lineup
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; * @return The dynamicLineup. */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup getDynamicLineup() { if (attributeCase_ == 7) { return (com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.getDefaultInstance(); } /** *
   * A YouTube Dynamic Lineup
   * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineupOrBuilder getDynamicLineupOrBuilder() { if (attributeCase_ == 7) { return (com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.getDefaultInstance(); } public static final int PARENTAL_STATUS_FIELD_NUMBER = 8; /** *
   * A Parental Status value (parent, or not a parent).
   * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; * @return Whether the parentalStatus field is set. */ @java.lang.Override public boolean hasParentalStatus() { return attributeCase_ == 8; } /** *
   * A Parental Status value (parent, or not a parent).
   * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; * @return The parentalStatus. */ @java.lang.Override public com.google.ads.googleads.v17.common.ParentalStatusInfo getParentalStatus() { if (attributeCase_ == 8) { return (com.google.ads.googleads.v17.common.ParentalStatusInfo) attribute_; } return com.google.ads.googleads.v17.common.ParentalStatusInfo.getDefaultInstance(); } /** *
   * A Parental Status value (parent, or not a parent).
   * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; */ @java.lang.Override public com.google.ads.googleads.v17.common.ParentalStatusInfoOrBuilder getParentalStatusOrBuilder() { if (attributeCase_ == 8) { return (com.google.ads.googleads.v17.common.ParentalStatusInfo) attribute_; } return com.google.ads.googleads.v17.common.ParentalStatusInfo.getDefaultInstance(); } public static final int INCOME_RANGE_FIELD_NUMBER = 9; /** *
   * A household income percentile range.
   * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; * @return Whether the incomeRange field is set. */ @java.lang.Override public boolean hasIncomeRange() { return attributeCase_ == 9; } /** *
   * A household income percentile range.
   * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; * @return The incomeRange. */ @java.lang.Override public com.google.ads.googleads.v17.common.IncomeRangeInfo getIncomeRange() { if (attributeCase_ == 9) { return (com.google.ads.googleads.v17.common.IncomeRangeInfo) attribute_; } return com.google.ads.googleads.v17.common.IncomeRangeInfo.getDefaultInstance(); } /** *
   * A household income percentile range.
   * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; */ @java.lang.Override public com.google.ads.googleads.v17.common.IncomeRangeInfoOrBuilder getIncomeRangeOrBuilder() { if (attributeCase_ == 9) { return (com.google.ads.googleads.v17.common.IncomeRangeInfo) attribute_; } return com.google.ads.googleads.v17.common.IncomeRangeInfo.getDefaultInstance(); } public static final int YOUTUBE_CHANNEL_FIELD_NUMBER = 10; /** *
   * A YouTube channel.
   * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; * @return Whether the youtubeChannel field is set. */ @java.lang.Override public boolean hasYoutubeChannel() { return attributeCase_ == 10; } /** *
   * A YouTube channel.
   * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; * @return The youtubeChannel. */ @java.lang.Override public com.google.ads.googleads.v17.common.YouTubeChannelInfo getYoutubeChannel() { if (attributeCase_ == 10) { return (com.google.ads.googleads.v17.common.YouTubeChannelInfo) attribute_; } return com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance(); } /** *
   * A YouTube channel.
   * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; */ @java.lang.Override public com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() { if (attributeCase_ == 10) { return (com.google.ads.googleads.v17.common.YouTubeChannelInfo) attribute_; } return com.google.ads.googleads.v17.common.YouTubeChannelInfo.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 (attributeCase_ == 1) { output.writeMessage(1, (com.google.ads.googleads.v17.common.AgeRangeInfo) attribute_); } if (attributeCase_ == 2) { output.writeMessage(2, (com.google.ads.googleads.v17.common.GenderInfo) attribute_); } if (attributeCase_ == 3) { output.writeMessage(3, (com.google.ads.googleads.v17.common.LocationInfo) attribute_); } if (attributeCase_ == 4) { output.writeMessage(4, (com.google.ads.googleads.v17.common.UserInterestInfo) attribute_); } if (attributeCase_ == 5) { output.writeMessage(5, (com.google.ads.googleads.v17.services.AudienceInsightsEntity) attribute_); } if (attributeCase_ == 6) { output.writeMessage(6, (com.google.ads.googleads.v17.services.AudienceInsightsCategory) attribute_); } if (attributeCase_ == 7) { output.writeMessage(7, (com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup) attribute_); } if (attributeCase_ == 8) { output.writeMessage(8, (com.google.ads.googleads.v17.common.ParentalStatusInfo) attribute_); } if (attributeCase_ == 9) { output.writeMessage(9, (com.google.ads.googleads.v17.common.IncomeRangeInfo) attribute_); } if (attributeCase_ == 10) { output.writeMessage(10, (com.google.ads.googleads.v17.common.YouTubeChannelInfo) attribute_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (attributeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.google.ads.googleads.v17.common.AgeRangeInfo) attribute_); } if (attributeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.google.ads.googleads.v17.common.GenderInfo) attribute_); } if (attributeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.google.ads.googleads.v17.common.LocationInfo) attribute_); } if (attributeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.google.ads.googleads.v17.common.UserInterestInfo) attribute_); } if (attributeCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.google.ads.googleads.v17.services.AudienceInsightsEntity) attribute_); } if (attributeCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.google.ads.googleads.v17.services.AudienceInsightsCategory) attribute_); } if (attributeCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup) attribute_); } if (attributeCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.google.ads.googleads.v17.common.ParentalStatusInfo) attribute_); } if (attributeCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.google.ads.googleads.v17.common.IncomeRangeInfo) attribute_); } if (attributeCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.google.ads.googleads.v17.common.YouTubeChannelInfo) attribute_); } 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.v17.services.AudienceInsightsAttribute)) { return super.equals(obj); } com.google.ads.googleads.v17.services.AudienceInsightsAttribute other = (com.google.ads.googleads.v17.services.AudienceInsightsAttribute) obj; if (!getAttributeCase().equals(other.getAttributeCase())) return false; switch (attributeCase_) { case 1: if (!getAgeRange() .equals(other.getAgeRange())) return false; break; case 2: if (!getGender() .equals(other.getGender())) return false; break; case 3: if (!getLocation() .equals(other.getLocation())) return false; break; case 4: if (!getUserInterest() .equals(other.getUserInterest())) return false; break; case 5: if (!getEntity() .equals(other.getEntity())) return false; break; case 6: if (!getCategory() .equals(other.getCategory())) return false; break; case 7: if (!getDynamicLineup() .equals(other.getDynamicLineup())) return false; break; case 8: if (!getParentalStatus() .equals(other.getParentalStatus())) return false; break; case 9: if (!getIncomeRange() .equals(other.getIncomeRange())) return false; break; case 10: if (!getYoutubeChannel() .equals(other.getYoutubeChannel())) 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(); switch (attributeCase_) { case 1: hash = (37 * hash) + AGE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getAgeRange().hashCode(); break; case 2: hash = (37 * hash) + GENDER_FIELD_NUMBER; hash = (53 * hash) + getGender().hashCode(); break; case 3: hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); break; case 4: hash = (37 * hash) + USER_INTEREST_FIELD_NUMBER; hash = (53 * hash) + getUserInterest().hashCode(); break; case 5: hash = (37 * hash) + ENTITY_FIELD_NUMBER; hash = (53 * hash) + getEntity().hashCode(); break; case 6: hash = (37 * hash) + CATEGORY_FIELD_NUMBER; hash = (53 * hash) + getCategory().hashCode(); break; case 7: hash = (37 * hash) + DYNAMIC_LINEUP_FIELD_NUMBER; hash = (53 * hash) + getDynamicLineup().hashCode(); break; case 8: hash = (37 * hash) + PARENTAL_STATUS_FIELD_NUMBER; hash = (53 * hash) + getParentalStatus().hashCode(); break; case 9: hash = (37 * hash) + INCOME_RANGE_FIELD_NUMBER; hash = (53 * hash) + getIncomeRange().hashCode(); break; case 10: hash = (37 * hash) + YOUTUBE_CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getYoutubeChannel().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.AudienceInsightsAttribute parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AudienceInsightsAttribute 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.v17.services.AudienceInsightsAttribute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AudienceInsightsAttribute 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.v17.services.AudienceInsightsAttribute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AudienceInsightsAttribute parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.AudienceInsightsAttribute parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.AudienceInsightsAttribute 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.v17.services.AudienceInsightsAttribute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.AudienceInsightsAttribute 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.v17.services.AudienceInsightsAttribute parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.AudienceInsightsAttribute 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.v17.services.AudienceInsightsAttribute prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * An audience attribute that can be used to request insights about the
   * audience.
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.AudienceInsightsAttribute} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.AudienceInsightsAttribute) com.google.ads.googleads.v17.services.AudienceInsightsAttributeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceInsightsAttribute_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceInsightsAttribute_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.AudienceInsightsAttribute.class, com.google.ads.googleads.v17.services.AudienceInsightsAttribute.Builder.class); } // Construct using com.google.ads.googleads.v17.services.AudienceInsightsAttribute.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (ageRangeBuilder_ != null) { ageRangeBuilder_.clear(); } if (genderBuilder_ != null) { genderBuilder_.clear(); } if (locationBuilder_ != null) { locationBuilder_.clear(); } if (userInterestBuilder_ != null) { userInterestBuilder_.clear(); } if (entityBuilder_ != null) { entityBuilder_.clear(); } if (categoryBuilder_ != null) { categoryBuilder_.clear(); } if (dynamicLineupBuilder_ != null) { dynamicLineupBuilder_.clear(); } if (parentalStatusBuilder_ != null) { parentalStatusBuilder_.clear(); } if (incomeRangeBuilder_ != null) { incomeRangeBuilder_.clear(); } if (youtubeChannelBuilder_ != null) { youtubeChannelBuilder_.clear(); } attributeCase_ = 0; attribute_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceInsightsAttribute_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsAttribute getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.AudienceInsightsAttribute.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsAttribute build() { com.google.ads.googleads.v17.services.AudienceInsightsAttribute result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsAttribute buildPartial() { com.google.ads.googleads.v17.services.AudienceInsightsAttribute result = new com.google.ads.googleads.v17.services.AudienceInsightsAttribute(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.services.AudienceInsightsAttribute result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.google.ads.googleads.v17.services.AudienceInsightsAttribute result) { result.attributeCase_ = attributeCase_; result.attribute_ = this.attribute_; if (attributeCase_ == 1 && ageRangeBuilder_ != null) { result.attribute_ = ageRangeBuilder_.build(); } if (attributeCase_ == 2 && genderBuilder_ != null) { result.attribute_ = genderBuilder_.build(); } if (attributeCase_ == 3 && locationBuilder_ != null) { result.attribute_ = locationBuilder_.build(); } if (attributeCase_ == 4 && userInterestBuilder_ != null) { result.attribute_ = userInterestBuilder_.build(); } if (attributeCase_ == 5 && entityBuilder_ != null) { result.attribute_ = entityBuilder_.build(); } if (attributeCase_ == 6 && categoryBuilder_ != null) { result.attribute_ = categoryBuilder_.build(); } if (attributeCase_ == 7 && dynamicLineupBuilder_ != null) { result.attribute_ = dynamicLineupBuilder_.build(); } if (attributeCase_ == 8 && parentalStatusBuilder_ != null) { result.attribute_ = parentalStatusBuilder_.build(); } if (attributeCase_ == 9 && incomeRangeBuilder_ != null) { result.attribute_ = incomeRangeBuilder_.build(); } if (attributeCase_ == 10 && youtubeChannelBuilder_ != null) { result.attribute_ = youtubeChannelBuilder_.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.v17.services.AudienceInsightsAttribute) { return mergeFrom((com.google.ads.googleads.v17.services.AudienceInsightsAttribute)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.AudienceInsightsAttribute other) { if (other == com.google.ads.googleads.v17.services.AudienceInsightsAttribute.getDefaultInstance()) return this; switch (other.getAttributeCase()) { case AGE_RANGE: { mergeAgeRange(other.getAgeRange()); break; } case GENDER: { mergeGender(other.getGender()); break; } case LOCATION: { mergeLocation(other.getLocation()); break; } case USER_INTEREST: { mergeUserInterest(other.getUserInterest()); break; } case ENTITY: { mergeEntity(other.getEntity()); break; } case CATEGORY: { mergeCategory(other.getCategory()); break; } case DYNAMIC_LINEUP: { mergeDynamicLineup(other.getDynamicLineup()); break; } case PARENTAL_STATUS: { mergeParentalStatus(other.getParentalStatus()); break; } case INCOME_RANGE: { mergeIncomeRange(other.getIncomeRange()); break; } case YOUTUBE_CHANNEL: { mergeYoutubeChannel(other.getYoutubeChannel()); break; } case ATTRIBUTE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getAgeRangeFieldBuilder().getBuilder(), extensionRegistry); attributeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getGenderFieldBuilder().getBuilder(), extensionRegistry); attributeCase_ = 2; break; } // case 18 case 26: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); attributeCase_ = 3; break; } // case 26 case 34: { input.readMessage( getUserInterestFieldBuilder().getBuilder(), extensionRegistry); attributeCase_ = 4; break; } // case 34 case 42: { input.readMessage( getEntityFieldBuilder().getBuilder(), extensionRegistry); attributeCase_ = 5; break; } // case 42 case 50: { input.readMessage( getCategoryFieldBuilder().getBuilder(), extensionRegistry); attributeCase_ = 6; break; } // case 50 case 58: { input.readMessage( getDynamicLineupFieldBuilder().getBuilder(), extensionRegistry); attributeCase_ = 7; break; } // case 58 case 66: { input.readMessage( getParentalStatusFieldBuilder().getBuilder(), extensionRegistry); attributeCase_ = 8; break; } // case 66 case 74: { input.readMessage( getIncomeRangeFieldBuilder().getBuilder(), extensionRegistry); attributeCase_ = 9; break; } // case 74 case 82: { input.readMessage( getYoutubeChannelFieldBuilder().getBuilder(), extensionRegistry); attributeCase_ = 10; break; } // case 82 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 attributeCase_ = 0; private java.lang.Object attribute_; public AttributeCase getAttributeCase() { return AttributeCase.forNumber( attributeCase_); } public Builder clearAttribute() { attributeCase_ = 0; attribute_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.AgeRangeInfo, com.google.ads.googleads.v17.common.AgeRangeInfo.Builder, com.google.ads.googleads.v17.common.AgeRangeInfoOrBuilder> ageRangeBuilder_; /** *
     * An audience attribute defined by an age range.
     * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; * @return Whether the ageRange field is set. */ @java.lang.Override public boolean hasAgeRange() { return attributeCase_ == 1; } /** *
     * An audience attribute defined by an age range.
     * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; * @return The ageRange. */ @java.lang.Override public com.google.ads.googleads.v17.common.AgeRangeInfo getAgeRange() { if (ageRangeBuilder_ == null) { if (attributeCase_ == 1) { return (com.google.ads.googleads.v17.common.AgeRangeInfo) attribute_; } return com.google.ads.googleads.v17.common.AgeRangeInfo.getDefaultInstance(); } else { if (attributeCase_ == 1) { return ageRangeBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.AgeRangeInfo.getDefaultInstance(); } } /** *
     * An audience attribute defined by an age range.
     * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; */ public Builder setAgeRange(com.google.ads.googleads.v17.common.AgeRangeInfo value) { if (ageRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attribute_ = value; onChanged(); } else { ageRangeBuilder_.setMessage(value); } attributeCase_ = 1; return this; } /** *
     * An audience attribute defined by an age range.
     * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; */ public Builder setAgeRange( com.google.ads.googleads.v17.common.AgeRangeInfo.Builder builderForValue) { if (ageRangeBuilder_ == null) { attribute_ = builderForValue.build(); onChanged(); } else { ageRangeBuilder_.setMessage(builderForValue.build()); } attributeCase_ = 1; return this; } /** *
     * An audience attribute defined by an age range.
     * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; */ public Builder mergeAgeRange(com.google.ads.googleads.v17.common.AgeRangeInfo value) { if (ageRangeBuilder_ == null) { if (attributeCase_ == 1 && attribute_ != com.google.ads.googleads.v17.common.AgeRangeInfo.getDefaultInstance()) { attribute_ = com.google.ads.googleads.v17.common.AgeRangeInfo.newBuilder((com.google.ads.googleads.v17.common.AgeRangeInfo) attribute_) .mergeFrom(value).buildPartial(); } else { attribute_ = value; } onChanged(); } else { if (attributeCase_ == 1) { ageRangeBuilder_.mergeFrom(value); } else { ageRangeBuilder_.setMessage(value); } } attributeCase_ = 1; return this; } /** *
     * An audience attribute defined by an age range.
     * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; */ public Builder clearAgeRange() { if (ageRangeBuilder_ == null) { if (attributeCase_ == 1) { attributeCase_ = 0; attribute_ = null; onChanged(); } } else { if (attributeCase_ == 1) { attributeCase_ = 0; attribute_ = null; } ageRangeBuilder_.clear(); } return this; } /** *
     * An audience attribute defined by an age range.
     * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; */ public com.google.ads.googleads.v17.common.AgeRangeInfo.Builder getAgeRangeBuilder() { return getAgeRangeFieldBuilder().getBuilder(); } /** *
     * An audience attribute defined by an age range.
     * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; */ @java.lang.Override public com.google.ads.googleads.v17.common.AgeRangeInfoOrBuilder getAgeRangeOrBuilder() { if ((attributeCase_ == 1) && (ageRangeBuilder_ != null)) { return ageRangeBuilder_.getMessageOrBuilder(); } else { if (attributeCase_ == 1) { return (com.google.ads.googleads.v17.common.AgeRangeInfo) attribute_; } return com.google.ads.googleads.v17.common.AgeRangeInfo.getDefaultInstance(); } } /** *
     * An audience attribute defined by an age range.
     * 
* * .google.ads.googleads.v17.common.AgeRangeInfo age_range = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.AgeRangeInfo, com.google.ads.googleads.v17.common.AgeRangeInfo.Builder, com.google.ads.googleads.v17.common.AgeRangeInfoOrBuilder> getAgeRangeFieldBuilder() { if (ageRangeBuilder_ == null) { if (!(attributeCase_ == 1)) { attribute_ = com.google.ads.googleads.v17.common.AgeRangeInfo.getDefaultInstance(); } ageRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.AgeRangeInfo, com.google.ads.googleads.v17.common.AgeRangeInfo.Builder, com.google.ads.googleads.v17.common.AgeRangeInfoOrBuilder>( (com.google.ads.googleads.v17.common.AgeRangeInfo) attribute_, getParentForChildren(), isClean()); attribute_ = null; } attributeCase_ = 1; onChanged(); return ageRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.GenderInfo, com.google.ads.googleads.v17.common.GenderInfo.Builder, com.google.ads.googleads.v17.common.GenderInfoOrBuilder> genderBuilder_; /** *
     * An audience attribute defined by a gender.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; * @return Whether the gender field is set. */ @java.lang.Override public boolean hasGender() { return attributeCase_ == 2; } /** *
     * An audience attribute defined by a gender.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; * @return The gender. */ @java.lang.Override public com.google.ads.googleads.v17.common.GenderInfo getGender() { if (genderBuilder_ == null) { if (attributeCase_ == 2) { return (com.google.ads.googleads.v17.common.GenderInfo) attribute_; } return com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance(); } else { if (attributeCase_ == 2) { return genderBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance(); } } /** *
     * An audience attribute defined by a gender.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; */ public Builder setGender(com.google.ads.googleads.v17.common.GenderInfo value) { if (genderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attribute_ = value; onChanged(); } else { genderBuilder_.setMessage(value); } attributeCase_ = 2; return this; } /** *
     * An audience attribute defined by a gender.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; */ public Builder setGender( com.google.ads.googleads.v17.common.GenderInfo.Builder builderForValue) { if (genderBuilder_ == null) { attribute_ = builderForValue.build(); onChanged(); } else { genderBuilder_.setMessage(builderForValue.build()); } attributeCase_ = 2; return this; } /** *
     * An audience attribute defined by a gender.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; */ public Builder mergeGender(com.google.ads.googleads.v17.common.GenderInfo value) { if (genderBuilder_ == null) { if (attributeCase_ == 2 && attribute_ != com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance()) { attribute_ = com.google.ads.googleads.v17.common.GenderInfo.newBuilder((com.google.ads.googleads.v17.common.GenderInfo) attribute_) .mergeFrom(value).buildPartial(); } else { attribute_ = value; } onChanged(); } else { if (attributeCase_ == 2) { genderBuilder_.mergeFrom(value); } else { genderBuilder_.setMessage(value); } } attributeCase_ = 2; return this; } /** *
     * An audience attribute defined by a gender.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; */ public Builder clearGender() { if (genderBuilder_ == null) { if (attributeCase_ == 2) { attributeCase_ = 0; attribute_ = null; onChanged(); } } else { if (attributeCase_ == 2) { attributeCase_ = 0; attribute_ = null; } genderBuilder_.clear(); } return this; } /** *
     * An audience attribute defined by a gender.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; */ public com.google.ads.googleads.v17.common.GenderInfo.Builder getGenderBuilder() { return getGenderFieldBuilder().getBuilder(); } /** *
     * An audience attribute defined by a gender.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; */ @java.lang.Override public com.google.ads.googleads.v17.common.GenderInfoOrBuilder getGenderOrBuilder() { if ((attributeCase_ == 2) && (genderBuilder_ != null)) { return genderBuilder_.getMessageOrBuilder(); } else { if (attributeCase_ == 2) { return (com.google.ads.googleads.v17.common.GenderInfo) attribute_; } return com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance(); } } /** *
     * An audience attribute defined by a gender.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.GenderInfo, com.google.ads.googleads.v17.common.GenderInfo.Builder, com.google.ads.googleads.v17.common.GenderInfoOrBuilder> getGenderFieldBuilder() { if (genderBuilder_ == null) { if (!(attributeCase_ == 2)) { attribute_ = com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance(); } genderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.GenderInfo, com.google.ads.googleads.v17.common.GenderInfo.Builder, com.google.ads.googleads.v17.common.GenderInfoOrBuilder>( (com.google.ads.googleads.v17.common.GenderInfo) attribute_, getParentForChildren(), isClean()); attribute_ = null; } attributeCase_ = 2; onChanged(); return genderBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.LocationInfo, com.google.ads.googleads.v17.common.LocationInfo.Builder, com.google.ads.googleads.v17.common.LocationInfoOrBuilder> locationBuilder_; /** *
     * An audience attribute defined by a geographic location.
     * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return attributeCase_ == 3; } /** *
     * An audience attribute defined by a geographic location.
     * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; * @return The location. */ @java.lang.Override public com.google.ads.googleads.v17.common.LocationInfo getLocation() { if (locationBuilder_ == null) { if (attributeCase_ == 3) { return (com.google.ads.googleads.v17.common.LocationInfo) attribute_; } return com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance(); } else { if (attributeCase_ == 3) { return locationBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance(); } } /** *
     * An audience attribute defined by a geographic location.
     * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; */ public Builder setLocation(com.google.ads.googleads.v17.common.LocationInfo value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attribute_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } attributeCase_ = 3; return this; } /** *
     * An audience attribute defined by a geographic location.
     * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; */ public Builder setLocation( com.google.ads.googleads.v17.common.LocationInfo.Builder builderForValue) { if (locationBuilder_ == null) { attribute_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } attributeCase_ = 3; return this; } /** *
     * An audience attribute defined by a geographic location.
     * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; */ public Builder mergeLocation(com.google.ads.googleads.v17.common.LocationInfo value) { if (locationBuilder_ == null) { if (attributeCase_ == 3 && attribute_ != com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance()) { attribute_ = com.google.ads.googleads.v17.common.LocationInfo.newBuilder((com.google.ads.googleads.v17.common.LocationInfo) attribute_) .mergeFrom(value).buildPartial(); } else { attribute_ = value; } onChanged(); } else { if (attributeCase_ == 3) { locationBuilder_.mergeFrom(value); } else { locationBuilder_.setMessage(value); } } attributeCase_ = 3; return this; } /** *
     * An audience attribute defined by a geographic location.
     * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; */ public Builder clearLocation() { if (locationBuilder_ == null) { if (attributeCase_ == 3) { attributeCase_ = 0; attribute_ = null; onChanged(); } } else { if (attributeCase_ == 3) { attributeCase_ = 0; attribute_ = null; } locationBuilder_.clear(); } return this; } /** *
     * An audience attribute defined by a geographic location.
     * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; */ public com.google.ads.googleads.v17.common.LocationInfo.Builder getLocationBuilder() { return getLocationFieldBuilder().getBuilder(); } /** *
     * An audience attribute defined by a geographic location.
     * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; */ @java.lang.Override public com.google.ads.googleads.v17.common.LocationInfoOrBuilder getLocationOrBuilder() { if ((attributeCase_ == 3) && (locationBuilder_ != null)) { return locationBuilder_.getMessageOrBuilder(); } else { if (attributeCase_ == 3) { return (com.google.ads.googleads.v17.common.LocationInfo) attribute_; } return com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance(); } } /** *
     * An audience attribute defined by a geographic location.
     * 
* * .google.ads.googleads.v17.common.LocationInfo location = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.LocationInfo, com.google.ads.googleads.v17.common.LocationInfo.Builder, com.google.ads.googleads.v17.common.LocationInfoOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { if (!(attributeCase_ == 3)) { attribute_ = com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance(); } locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.LocationInfo, com.google.ads.googleads.v17.common.LocationInfo.Builder, com.google.ads.googleads.v17.common.LocationInfoOrBuilder>( (com.google.ads.googleads.v17.common.LocationInfo) attribute_, getParentForChildren(), isClean()); attribute_ = null; } attributeCase_ = 3; onChanged(); return locationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.UserInterestInfo, com.google.ads.googleads.v17.common.UserInterestInfo.Builder, com.google.ads.googleads.v17.common.UserInterestInfoOrBuilder> userInterestBuilder_; /** *
     * An Affinity or In-Market audience.
     * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; * @return Whether the userInterest field is set. */ @java.lang.Override public boolean hasUserInterest() { return attributeCase_ == 4; } /** *
     * An Affinity or In-Market audience.
     * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; * @return The userInterest. */ @java.lang.Override public com.google.ads.googleads.v17.common.UserInterestInfo getUserInterest() { if (userInterestBuilder_ == null) { if (attributeCase_ == 4) { return (com.google.ads.googleads.v17.common.UserInterestInfo) attribute_; } return com.google.ads.googleads.v17.common.UserInterestInfo.getDefaultInstance(); } else { if (attributeCase_ == 4) { return userInterestBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.UserInterestInfo.getDefaultInstance(); } } /** *
     * An Affinity or In-Market audience.
     * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; */ public Builder setUserInterest(com.google.ads.googleads.v17.common.UserInterestInfo value) { if (userInterestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attribute_ = value; onChanged(); } else { userInterestBuilder_.setMessage(value); } attributeCase_ = 4; return this; } /** *
     * An Affinity or In-Market audience.
     * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; */ public Builder setUserInterest( com.google.ads.googleads.v17.common.UserInterestInfo.Builder builderForValue) { if (userInterestBuilder_ == null) { attribute_ = builderForValue.build(); onChanged(); } else { userInterestBuilder_.setMessage(builderForValue.build()); } attributeCase_ = 4; return this; } /** *
     * An Affinity or In-Market audience.
     * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; */ public Builder mergeUserInterest(com.google.ads.googleads.v17.common.UserInterestInfo value) { if (userInterestBuilder_ == null) { if (attributeCase_ == 4 && attribute_ != com.google.ads.googleads.v17.common.UserInterestInfo.getDefaultInstance()) { attribute_ = com.google.ads.googleads.v17.common.UserInterestInfo.newBuilder((com.google.ads.googleads.v17.common.UserInterestInfo) attribute_) .mergeFrom(value).buildPartial(); } else { attribute_ = value; } onChanged(); } else { if (attributeCase_ == 4) { userInterestBuilder_.mergeFrom(value); } else { userInterestBuilder_.setMessage(value); } } attributeCase_ = 4; return this; } /** *
     * An Affinity or In-Market audience.
     * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; */ public Builder clearUserInterest() { if (userInterestBuilder_ == null) { if (attributeCase_ == 4) { attributeCase_ = 0; attribute_ = null; onChanged(); } } else { if (attributeCase_ == 4) { attributeCase_ = 0; attribute_ = null; } userInterestBuilder_.clear(); } return this; } /** *
     * An Affinity or In-Market audience.
     * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; */ public com.google.ads.googleads.v17.common.UserInterestInfo.Builder getUserInterestBuilder() { return getUserInterestFieldBuilder().getBuilder(); } /** *
     * An Affinity or In-Market audience.
     * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; */ @java.lang.Override public com.google.ads.googleads.v17.common.UserInterestInfoOrBuilder getUserInterestOrBuilder() { if ((attributeCase_ == 4) && (userInterestBuilder_ != null)) { return userInterestBuilder_.getMessageOrBuilder(); } else { if (attributeCase_ == 4) { return (com.google.ads.googleads.v17.common.UserInterestInfo) attribute_; } return com.google.ads.googleads.v17.common.UserInterestInfo.getDefaultInstance(); } } /** *
     * An Affinity or In-Market audience.
     * 
* * .google.ads.googleads.v17.common.UserInterestInfo user_interest = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.UserInterestInfo, com.google.ads.googleads.v17.common.UserInterestInfo.Builder, com.google.ads.googleads.v17.common.UserInterestInfoOrBuilder> getUserInterestFieldBuilder() { if (userInterestBuilder_ == null) { if (!(attributeCase_ == 4)) { attribute_ = com.google.ads.googleads.v17.common.UserInterestInfo.getDefaultInstance(); } userInterestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.UserInterestInfo, com.google.ads.googleads.v17.common.UserInterestInfo.Builder, com.google.ads.googleads.v17.common.UserInterestInfoOrBuilder>( (com.google.ads.googleads.v17.common.UserInterestInfo) attribute_, getParentForChildren(), isClean()); attribute_ = null; } attributeCase_ = 4; onChanged(); return userInterestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsEntity, com.google.ads.googleads.v17.services.AudienceInsightsEntity.Builder, com.google.ads.googleads.v17.services.AudienceInsightsEntityOrBuilder> entityBuilder_; /** *
     * An audience attribute defined by interest in a topic represented by a
     * Knowledge Graph entity.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; * @return Whether the entity field is set. */ @java.lang.Override public boolean hasEntity() { return attributeCase_ == 5; } /** *
     * An audience attribute defined by interest in a topic represented by a
     * Knowledge Graph entity.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; * @return The entity. */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsEntity getEntity() { if (entityBuilder_ == null) { if (attributeCase_ == 5) { return (com.google.ads.googleads.v17.services.AudienceInsightsEntity) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsEntity.getDefaultInstance(); } else { if (attributeCase_ == 5) { return entityBuilder_.getMessage(); } return com.google.ads.googleads.v17.services.AudienceInsightsEntity.getDefaultInstance(); } } /** *
     * An audience attribute defined by interest in a topic represented by a
     * Knowledge Graph entity.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; */ public Builder setEntity(com.google.ads.googleads.v17.services.AudienceInsightsEntity value) { if (entityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attribute_ = value; onChanged(); } else { entityBuilder_.setMessage(value); } attributeCase_ = 5; return this; } /** *
     * An audience attribute defined by interest in a topic represented by a
     * Knowledge Graph entity.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; */ public Builder setEntity( com.google.ads.googleads.v17.services.AudienceInsightsEntity.Builder builderForValue) { if (entityBuilder_ == null) { attribute_ = builderForValue.build(); onChanged(); } else { entityBuilder_.setMessage(builderForValue.build()); } attributeCase_ = 5; return this; } /** *
     * An audience attribute defined by interest in a topic represented by a
     * Knowledge Graph entity.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; */ public Builder mergeEntity(com.google.ads.googleads.v17.services.AudienceInsightsEntity value) { if (entityBuilder_ == null) { if (attributeCase_ == 5 && attribute_ != com.google.ads.googleads.v17.services.AudienceInsightsEntity.getDefaultInstance()) { attribute_ = com.google.ads.googleads.v17.services.AudienceInsightsEntity.newBuilder((com.google.ads.googleads.v17.services.AudienceInsightsEntity) attribute_) .mergeFrom(value).buildPartial(); } else { attribute_ = value; } onChanged(); } else { if (attributeCase_ == 5) { entityBuilder_.mergeFrom(value); } else { entityBuilder_.setMessage(value); } } attributeCase_ = 5; return this; } /** *
     * An audience attribute defined by interest in a topic represented by a
     * Knowledge Graph entity.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; */ public Builder clearEntity() { if (entityBuilder_ == null) { if (attributeCase_ == 5) { attributeCase_ = 0; attribute_ = null; onChanged(); } } else { if (attributeCase_ == 5) { attributeCase_ = 0; attribute_ = null; } entityBuilder_.clear(); } return this; } /** *
     * An audience attribute defined by interest in a topic represented by a
     * Knowledge Graph entity.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; */ public com.google.ads.googleads.v17.services.AudienceInsightsEntity.Builder getEntityBuilder() { return getEntityFieldBuilder().getBuilder(); } /** *
     * An audience attribute defined by interest in a topic represented by a
     * Knowledge Graph entity.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsEntityOrBuilder getEntityOrBuilder() { if ((attributeCase_ == 5) && (entityBuilder_ != null)) { return entityBuilder_.getMessageOrBuilder(); } else { if (attributeCase_ == 5) { return (com.google.ads.googleads.v17.services.AudienceInsightsEntity) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsEntity.getDefaultInstance(); } } /** *
     * An audience attribute defined by interest in a topic represented by a
     * Knowledge Graph entity.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsEntity entity = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsEntity, com.google.ads.googleads.v17.services.AudienceInsightsEntity.Builder, com.google.ads.googleads.v17.services.AudienceInsightsEntityOrBuilder> getEntityFieldBuilder() { if (entityBuilder_ == null) { if (!(attributeCase_ == 5)) { attribute_ = com.google.ads.googleads.v17.services.AudienceInsightsEntity.getDefaultInstance(); } entityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsEntity, com.google.ads.googleads.v17.services.AudienceInsightsEntity.Builder, com.google.ads.googleads.v17.services.AudienceInsightsEntityOrBuilder>( (com.google.ads.googleads.v17.services.AudienceInsightsEntity) attribute_, getParentForChildren(), isClean()); attribute_ = null; } attributeCase_ = 5; onChanged(); return entityBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsCategory, com.google.ads.googleads.v17.services.AudienceInsightsCategory.Builder, com.google.ads.googleads.v17.services.AudienceInsightsCategoryOrBuilder> categoryBuilder_; /** *
     * An audience attribute defined by interest in a Product & Service
     * category.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; * @return Whether the category field is set. */ @java.lang.Override public boolean hasCategory() { return attributeCase_ == 6; } /** *
     * An audience attribute defined by interest in a Product & Service
     * category.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; * @return The category. */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsCategory getCategory() { if (categoryBuilder_ == null) { if (attributeCase_ == 6) { return (com.google.ads.googleads.v17.services.AudienceInsightsCategory) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsCategory.getDefaultInstance(); } else { if (attributeCase_ == 6) { return categoryBuilder_.getMessage(); } return com.google.ads.googleads.v17.services.AudienceInsightsCategory.getDefaultInstance(); } } /** *
     * An audience attribute defined by interest in a Product & Service
     * category.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; */ public Builder setCategory(com.google.ads.googleads.v17.services.AudienceInsightsCategory value) { if (categoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attribute_ = value; onChanged(); } else { categoryBuilder_.setMessage(value); } attributeCase_ = 6; return this; } /** *
     * An audience attribute defined by interest in a Product & Service
     * category.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; */ public Builder setCategory( com.google.ads.googleads.v17.services.AudienceInsightsCategory.Builder builderForValue) { if (categoryBuilder_ == null) { attribute_ = builderForValue.build(); onChanged(); } else { categoryBuilder_.setMessage(builderForValue.build()); } attributeCase_ = 6; return this; } /** *
     * An audience attribute defined by interest in a Product & Service
     * category.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; */ public Builder mergeCategory(com.google.ads.googleads.v17.services.AudienceInsightsCategory value) { if (categoryBuilder_ == null) { if (attributeCase_ == 6 && attribute_ != com.google.ads.googleads.v17.services.AudienceInsightsCategory.getDefaultInstance()) { attribute_ = com.google.ads.googleads.v17.services.AudienceInsightsCategory.newBuilder((com.google.ads.googleads.v17.services.AudienceInsightsCategory) attribute_) .mergeFrom(value).buildPartial(); } else { attribute_ = value; } onChanged(); } else { if (attributeCase_ == 6) { categoryBuilder_.mergeFrom(value); } else { categoryBuilder_.setMessage(value); } } attributeCase_ = 6; return this; } /** *
     * An audience attribute defined by interest in a Product & Service
     * category.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; */ public Builder clearCategory() { if (categoryBuilder_ == null) { if (attributeCase_ == 6) { attributeCase_ = 0; attribute_ = null; onChanged(); } } else { if (attributeCase_ == 6) { attributeCase_ = 0; attribute_ = null; } categoryBuilder_.clear(); } return this; } /** *
     * An audience attribute defined by interest in a Product & Service
     * category.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; */ public com.google.ads.googleads.v17.services.AudienceInsightsCategory.Builder getCategoryBuilder() { return getCategoryFieldBuilder().getBuilder(); } /** *
     * An audience attribute defined by interest in a Product & Service
     * category.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsCategoryOrBuilder getCategoryOrBuilder() { if ((attributeCase_ == 6) && (categoryBuilder_ != null)) { return categoryBuilder_.getMessageOrBuilder(); } else { if (attributeCase_ == 6) { return (com.google.ads.googleads.v17.services.AudienceInsightsCategory) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsCategory.getDefaultInstance(); } } /** *
     * An audience attribute defined by interest in a Product & Service
     * category.
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsCategory category = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsCategory, com.google.ads.googleads.v17.services.AudienceInsightsCategory.Builder, com.google.ads.googleads.v17.services.AudienceInsightsCategoryOrBuilder> getCategoryFieldBuilder() { if (categoryBuilder_ == null) { if (!(attributeCase_ == 6)) { attribute_ = com.google.ads.googleads.v17.services.AudienceInsightsCategory.getDefaultInstance(); } categoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsCategory, com.google.ads.googleads.v17.services.AudienceInsightsCategory.Builder, com.google.ads.googleads.v17.services.AudienceInsightsCategoryOrBuilder>( (com.google.ads.googleads.v17.services.AudienceInsightsCategory) attribute_, getParentForChildren(), isClean()); attribute_ = null; } attributeCase_ = 6; onChanged(); return categoryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup, com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.Builder, com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineupOrBuilder> dynamicLineupBuilder_; /** *
     * A YouTube Dynamic Lineup
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; * @return Whether the dynamicLineup field is set. */ @java.lang.Override public boolean hasDynamicLineup() { return attributeCase_ == 7; } /** *
     * A YouTube Dynamic Lineup
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; * @return The dynamicLineup. */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup getDynamicLineup() { if (dynamicLineupBuilder_ == null) { if (attributeCase_ == 7) { return (com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.getDefaultInstance(); } else { if (attributeCase_ == 7) { return dynamicLineupBuilder_.getMessage(); } return com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.getDefaultInstance(); } } /** *
     * A YouTube Dynamic Lineup
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; */ public Builder setDynamicLineup(com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup value) { if (dynamicLineupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attribute_ = value; onChanged(); } else { dynamicLineupBuilder_.setMessage(value); } attributeCase_ = 7; return this; } /** *
     * A YouTube Dynamic Lineup
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; */ public Builder setDynamicLineup( com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.Builder builderForValue) { if (dynamicLineupBuilder_ == null) { attribute_ = builderForValue.build(); onChanged(); } else { dynamicLineupBuilder_.setMessage(builderForValue.build()); } attributeCase_ = 7; return this; } /** *
     * A YouTube Dynamic Lineup
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; */ public Builder mergeDynamicLineup(com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup value) { if (dynamicLineupBuilder_ == null) { if (attributeCase_ == 7 && attribute_ != com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.getDefaultInstance()) { attribute_ = com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.newBuilder((com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup) attribute_) .mergeFrom(value).buildPartial(); } else { attribute_ = value; } onChanged(); } else { if (attributeCase_ == 7) { dynamicLineupBuilder_.mergeFrom(value); } else { dynamicLineupBuilder_.setMessage(value); } } attributeCase_ = 7; return this; } /** *
     * A YouTube Dynamic Lineup
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; */ public Builder clearDynamicLineup() { if (dynamicLineupBuilder_ == null) { if (attributeCase_ == 7) { attributeCase_ = 0; attribute_ = null; onChanged(); } } else { if (attributeCase_ == 7) { attributeCase_ = 0; attribute_ = null; } dynamicLineupBuilder_.clear(); } return this; } /** *
     * A YouTube Dynamic Lineup
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; */ public com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.Builder getDynamicLineupBuilder() { return getDynamicLineupFieldBuilder().getBuilder(); } /** *
     * A YouTube Dynamic Lineup
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineupOrBuilder getDynamicLineupOrBuilder() { if ((attributeCase_ == 7) && (dynamicLineupBuilder_ != null)) { return dynamicLineupBuilder_.getMessageOrBuilder(); } else { if (attributeCase_ == 7) { return (com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup) attribute_; } return com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.getDefaultInstance(); } } /** *
     * A YouTube Dynamic Lineup
     * 
* * .google.ads.googleads.v17.services.AudienceInsightsDynamicLineup dynamic_lineup = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup, com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.Builder, com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineupOrBuilder> getDynamicLineupFieldBuilder() { if (dynamicLineupBuilder_ == null) { if (!(attributeCase_ == 7)) { attribute_ = com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.getDefaultInstance(); } dynamicLineupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup, com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup.Builder, com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineupOrBuilder>( (com.google.ads.googleads.v17.services.AudienceInsightsDynamicLineup) attribute_, getParentForChildren(), isClean()); attribute_ = null; } attributeCase_ = 7; onChanged(); return dynamicLineupBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.ParentalStatusInfo, com.google.ads.googleads.v17.common.ParentalStatusInfo.Builder, com.google.ads.googleads.v17.common.ParentalStatusInfoOrBuilder> parentalStatusBuilder_; /** *
     * A Parental Status value (parent, or not a parent).
     * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; * @return Whether the parentalStatus field is set. */ @java.lang.Override public boolean hasParentalStatus() { return attributeCase_ == 8; } /** *
     * A Parental Status value (parent, or not a parent).
     * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; * @return The parentalStatus. */ @java.lang.Override public com.google.ads.googleads.v17.common.ParentalStatusInfo getParentalStatus() { if (parentalStatusBuilder_ == null) { if (attributeCase_ == 8) { return (com.google.ads.googleads.v17.common.ParentalStatusInfo) attribute_; } return com.google.ads.googleads.v17.common.ParentalStatusInfo.getDefaultInstance(); } else { if (attributeCase_ == 8) { return parentalStatusBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.ParentalStatusInfo.getDefaultInstance(); } } /** *
     * A Parental Status value (parent, or not a parent).
     * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; */ public Builder setParentalStatus(com.google.ads.googleads.v17.common.ParentalStatusInfo value) { if (parentalStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attribute_ = value; onChanged(); } else { parentalStatusBuilder_.setMessage(value); } attributeCase_ = 8; return this; } /** *
     * A Parental Status value (parent, or not a parent).
     * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; */ public Builder setParentalStatus( com.google.ads.googleads.v17.common.ParentalStatusInfo.Builder builderForValue) { if (parentalStatusBuilder_ == null) { attribute_ = builderForValue.build(); onChanged(); } else { parentalStatusBuilder_.setMessage(builderForValue.build()); } attributeCase_ = 8; return this; } /** *
     * A Parental Status value (parent, or not a parent).
     * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; */ public Builder mergeParentalStatus(com.google.ads.googleads.v17.common.ParentalStatusInfo value) { if (parentalStatusBuilder_ == null) { if (attributeCase_ == 8 && attribute_ != com.google.ads.googleads.v17.common.ParentalStatusInfo.getDefaultInstance()) { attribute_ = com.google.ads.googleads.v17.common.ParentalStatusInfo.newBuilder((com.google.ads.googleads.v17.common.ParentalStatusInfo) attribute_) .mergeFrom(value).buildPartial(); } else { attribute_ = value; } onChanged(); } else { if (attributeCase_ == 8) { parentalStatusBuilder_.mergeFrom(value); } else { parentalStatusBuilder_.setMessage(value); } } attributeCase_ = 8; return this; } /** *
     * A Parental Status value (parent, or not a parent).
     * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; */ public Builder clearParentalStatus() { if (parentalStatusBuilder_ == null) { if (attributeCase_ == 8) { attributeCase_ = 0; attribute_ = null; onChanged(); } } else { if (attributeCase_ == 8) { attributeCase_ = 0; attribute_ = null; } parentalStatusBuilder_.clear(); } return this; } /** *
     * A Parental Status value (parent, or not a parent).
     * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; */ public com.google.ads.googleads.v17.common.ParentalStatusInfo.Builder getParentalStatusBuilder() { return getParentalStatusFieldBuilder().getBuilder(); } /** *
     * A Parental Status value (parent, or not a parent).
     * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; */ @java.lang.Override public com.google.ads.googleads.v17.common.ParentalStatusInfoOrBuilder getParentalStatusOrBuilder() { if ((attributeCase_ == 8) && (parentalStatusBuilder_ != null)) { return parentalStatusBuilder_.getMessageOrBuilder(); } else { if (attributeCase_ == 8) { return (com.google.ads.googleads.v17.common.ParentalStatusInfo) attribute_; } return com.google.ads.googleads.v17.common.ParentalStatusInfo.getDefaultInstance(); } } /** *
     * A Parental Status value (parent, or not a parent).
     * 
* * .google.ads.googleads.v17.common.ParentalStatusInfo parental_status = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.ParentalStatusInfo, com.google.ads.googleads.v17.common.ParentalStatusInfo.Builder, com.google.ads.googleads.v17.common.ParentalStatusInfoOrBuilder> getParentalStatusFieldBuilder() { if (parentalStatusBuilder_ == null) { if (!(attributeCase_ == 8)) { attribute_ = com.google.ads.googleads.v17.common.ParentalStatusInfo.getDefaultInstance(); } parentalStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.ParentalStatusInfo, com.google.ads.googleads.v17.common.ParentalStatusInfo.Builder, com.google.ads.googleads.v17.common.ParentalStatusInfoOrBuilder>( (com.google.ads.googleads.v17.common.ParentalStatusInfo) attribute_, getParentForChildren(), isClean()); attribute_ = null; } attributeCase_ = 8; onChanged(); return parentalStatusBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.IncomeRangeInfo, com.google.ads.googleads.v17.common.IncomeRangeInfo.Builder, com.google.ads.googleads.v17.common.IncomeRangeInfoOrBuilder> incomeRangeBuilder_; /** *
     * A household income percentile range.
     * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; * @return Whether the incomeRange field is set. */ @java.lang.Override public boolean hasIncomeRange() { return attributeCase_ == 9; } /** *
     * A household income percentile range.
     * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; * @return The incomeRange. */ @java.lang.Override public com.google.ads.googleads.v17.common.IncomeRangeInfo getIncomeRange() { if (incomeRangeBuilder_ == null) { if (attributeCase_ == 9) { return (com.google.ads.googleads.v17.common.IncomeRangeInfo) attribute_; } return com.google.ads.googleads.v17.common.IncomeRangeInfo.getDefaultInstance(); } else { if (attributeCase_ == 9) { return incomeRangeBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.IncomeRangeInfo.getDefaultInstance(); } } /** *
     * A household income percentile range.
     * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; */ public Builder setIncomeRange(com.google.ads.googleads.v17.common.IncomeRangeInfo value) { if (incomeRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attribute_ = value; onChanged(); } else { incomeRangeBuilder_.setMessage(value); } attributeCase_ = 9; return this; } /** *
     * A household income percentile range.
     * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; */ public Builder setIncomeRange( com.google.ads.googleads.v17.common.IncomeRangeInfo.Builder builderForValue) { if (incomeRangeBuilder_ == null) { attribute_ = builderForValue.build(); onChanged(); } else { incomeRangeBuilder_.setMessage(builderForValue.build()); } attributeCase_ = 9; return this; } /** *
     * A household income percentile range.
     * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; */ public Builder mergeIncomeRange(com.google.ads.googleads.v17.common.IncomeRangeInfo value) { if (incomeRangeBuilder_ == null) { if (attributeCase_ == 9 && attribute_ != com.google.ads.googleads.v17.common.IncomeRangeInfo.getDefaultInstance()) { attribute_ = com.google.ads.googleads.v17.common.IncomeRangeInfo.newBuilder((com.google.ads.googleads.v17.common.IncomeRangeInfo) attribute_) .mergeFrom(value).buildPartial(); } else { attribute_ = value; } onChanged(); } else { if (attributeCase_ == 9) { incomeRangeBuilder_.mergeFrom(value); } else { incomeRangeBuilder_.setMessage(value); } } attributeCase_ = 9; return this; } /** *
     * A household income percentile range.
     * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; */ public Builder clearIncomeRange() { if (incomeRangeBuilder_ == null) { if (attributeCase_ == 9) { attributeCase_ = 0; attribute_ = null; onChanged(); } } else { if (attributeCase_ == 9) { attributeCase_ = 0; attribute_ = null; } incomeRangeBuilder_.clear(); } return this; } /** *
     * A household income percentile range.
     * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; */ public com.google.ads.googleads.v17.common.IncomeRangeInfo.Builder getIncomeRangeBuilder() { return getIncomeRangeFieldBuilder().getBuilder(); } /** *
     * A household income percentile range.
     * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; */ @java.lang.Override public com.google.ads.googleads.v17.common.IncomeRangeInfoOrBuilder getIncomeRangeOrBuilder() { if ((attributeCase_ == 9) && (incomeRangeBuilder_ != null)) { return incomeRangeBuilder_.getMessageOrBuilder(); } else { if (attributeCase_ == 9) { return (com.google.ads.googleads.v17.common.IncomeRangeInfo) attribute_; } return com.google.ads.googleads.v17.common.IncomeRangeInfo.getDefaultInstance(); } } /** *
     * A household income percentile range.
     * 
* * .google.ads.googleads.v17.common.IncomeRangeInfo income_range = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.IncomeRangeInfo, com.google.ads.googleads.v17.common.IncomeRangeInfo.Builder, com.google.ads.googleads.v17.common.IncomeRangeInfoOrBuilder> getIncomeRangeFieldBuilder() { if (incomeRangeBuilder_ == null) { if (!(attributeCase_ == 9)) { attribute_ = com.google.ads.googleads.v17.common.IncomeRangeInfo.getDefaultInstance(); } incomeRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.IncomeRangeInfo, com.google.ads.googleads.v17.common.IncomeRangeInfo.Builder, com.google.ads.googleads.v17.common.IncomeRangeInfoOrBuilder>( (com.google.ads.googleads.v17.common.IncomeRangeInfo) attribute_, getParentForChildren(), isClean()); attribute_ = null; } attributeCase_ = 9; onChanged(); return incomeRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.YouTubeChannelInfo, com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder> youtubeChannelBuilder_; /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; * @return Whether the youtubeChannel field is set. */ @java.lang.Override public boolean hasYoutubeChannel() { return attributeCase_ == 10; } /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; * @return The youtubeChannel. */ @java.lang.Override public com.google.ads.googleads.v17.common.YouTubeChannelInfo getYoutubeChannel() { if (youtubeChannelBuilder_ == null) { if (attributeCase_ == 10) { return (com.google.ads.googleads.v17.common.YouTubeChannelInfo) attribute_; } return com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance(); } else { if (attributeCase_ == 10) { return youtubeChannelBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance(); } } /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; */ public Builder setYoutubeChannel(com.google.ads.googleads.v17.common.YouTubeChannelInfo value) { if (youtubeChannelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attribute_ = value; onChanged(); } else { youtubeChannelBuilder_.setMessage(value); } attributeCase_ = 10; return this; } /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; */ public Builder setYoutubeChannel( com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder builderForValue) { if (youtubeChannelBuilder_ == null) { attribute_ = builderForValue.build(); onChanged(); } else { youtubeChannelBuilder_.setMessage(builderForValue.build()); } attributeCase_ = 10; return this; } /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; */ public Builder mergeYoutubeChannel(com.google.ads.googleads.v17.common.YouTubeChannelInfo value) { if (youtubeChannelBuilder_ == null) { if (attributeCase_ == 10 && attribute_ != com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance()) { attribute_ = com.google.ads.googleads.v17.common.YouTubeChannelInfo.newBuilder((com.google.ads.googleads.v17.common.YouTubeChannelInfo) attribute_) .mergeFrom(value).buildPartial(); } else { attribute_ = value; } onChanged(); } else { if (attributeCase_ == 10) { youtubeChannelBuilder_.mergeFrom(value); } else { youtubeChannelBuilder_.setMessage(value); } } attributeCase_ = 10; return this; } /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; */ public Builder clearYoutubeChannel() { if (youtubeChannelBuilder_ == null) { if (attributeCase_ == 10) { attributeCase_ = 0; attribute_ = null; onChanged(); } } else { if (attributeCase_ == 10) { attributeCase_ = 0; attribute_ = null; } youtubeChannelBuilder_.clear(); } return this; } /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; */ public com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder getYoutubeChannelBuilder() { return getYoutubeChannelFieldBuilder().getBuilder(); } /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; */ @java.lang.Override public com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() { if ((attributeCase_ == 10) && (youtubeChannelBuilder_ != null)) { return youtubeChannelBuilder_.getMessageOrBuilder(); } else { if (attributeCase_ == 10) { return (com.google.ads.googleads.v17.common.YouTubeChannelInfo) attribute_; } return com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance(); } } /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.YouTubeChannelInfo, com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder> getYoutubeChannelFieldBuilder() { if (youtubeChannelBuilder_ == null) { if (!(attributeCase_ == 10)) { attribute_ = com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance(); } youtubeChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.YouTubeChannelInfo, com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder>( (com.google.ads.googleads.v17.common.YouTubeChannelInfo) attribute_, getParentForChildren(), isClean()); attribute_ = null; } attributeCase_ = 10; onChanged(); return youtubeChannelBuilder_; } @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.v17.services.AudienceInsightsAttribute) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.AudienceInsightsAttribute) private static final com.google.ads.googleads.v17.services.AudienceInsightsAttribute DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.AudienceInsightsAttribute(); } public static com.google.ads.googleads.v17.services.AudienceInsightsAttribute getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AudienceInsightsAttribute parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsAttribute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy