
com.google.ads.googleads.v18.services.InsightsAudience Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v18 Show documentation
Show all versions of google-ads-stubs-v18 Show documentation
Stubs for GAAPI version google-ads-stubs-v18
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v18/services/audience_insights_service.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v18.services;
/**
*
* A set of users, defined by various characteristics, for which insights can
* be requested in AudienceInsightsService.
*
*
* Protobuf type {@code google.ads.googleads.v18.services.InsightsAudience}
*/
public final class InsightsAudience extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.services.InsightsAudience)
InsightsAudienceOrBuilder {
private static final long serialVersionUID = 0L;
// Use InsightsAudience.newBuilder() to construct.
private InsightsAudience(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InsightsAudience() {
countryLocations_ = java.util.Collections.emptyList();
subCountryLocations_ = java.util.Collections.emptyList();
ageRanges_ = java.util.Collections.emptyList();
incomeRanges_ = java.util.Collections.emptyList();
dynamicLineups_ = java.util.Collections.emptyList();
topicAudienceCombinations_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InsightsAudience();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v18_services_InsightsAudience_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v18_services_InsightsAudience_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.services.InsightsAudience.class, com.google.ads.googleads.v18.services.InsightsAudience.Builder.class);
}
private int bitField0_;
public static final int COUNTRY_LOCATIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List countryLocations_;
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public java.util.List getCountryLocationsList() {
return countryLocations_;
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.LocationInfoOrBuilder>
getCountryLocationsOrBuilderList() {
return countryLocations_;
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public int getCountryLocationsCount() {
return countryLocations_.size();
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.LocationInfo getCountryLocations(int index) {
return countryLocations_.get(index);
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.LocationInfoOrBuilder getCountryLocationsOrBuilder(
int index) {
return countryLocations_.get(index);
}
public static final int SUB_COUNTRY_LOCATIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List subCountryLocations_;
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
@java.lang.Override
public java.util.List getSubCountryLocationsList() {
return subCountryLocations_;
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.LocationInfoOrBuilder>
getSubCountryLocationsOrBuilderList() {
return subCountryLocations_;
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
@java.lang.Override
public int getSubCountryLocationsCount() {
return subCountryLocations_.size();
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.LocationInfo getSubCountryLocations(int index) {
return subCountryLocations_.get(index);
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.LocationInfoOrBuilder getSubCountryLocationsOrBuilder(
int index) {
return subCountryLocations_.get(index);
}
public static final int GENDER_FIELD_NUMBER = 3;
private com.google.ads.googleads.v18.common.GenderInfo gender_;
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
* @return Whether the gender field is set.
*/
@java.lang.Override
public boolean hasGender() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
* @return The gender.
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.GenderInfo getGender() {
return gender_ == null ? com.google.ads.googleads.v18.common.GenderInfo.getDefaultInstance() : gender_;
}
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.GenderInfoOrBuilder getGenderOrBuilder() {
return gender_ == null ? com.google.ads.googleads.v18.common.GenderInfo.getDefaultInstance() : gender_;
}
public static final int AGE_RANGES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List ageRanges_;
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
@java.lang.Override
public java.util.List getAgeRangesList() {
return ageRanges_;
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.AgeRangeInfoOrBuilder>
getAgeRangesOrBuilderList() {
return ageRanges_;
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
@java.lang.Override
public int getAgeRangesCount() {
return ageRanges_.size();
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AgeRangeInfo getAgeRanges(int index) {
return ageRanges_.get(index);
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AgeRangeInfoOrBuilder getAgeRangesOrBuilder(
int index) {
return ageRanges_.get(index);
}
public static final int PARENTAL_STATUS_FIELD_NUMBER = 5;
private com.google.ads.googleads.v18.common.ParentalStatusInfo parentalStatus_;
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
* @return Whether the parentalStatus field is set.
*/
@java.lang.Override
public boolean hasParentalStatus() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
* @return The parentalStatus.
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.ParentalStatusInfo getParentalStatus() {
return parentalStatus_ == null ? com.google.ads.googleads.v18.common.ParentalStatusInfo.getDefaultInstance() : parentalStatus_;
}
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.ParentalStatusInfoOrBuilder getParentalStatusOrBuilder() {
return parentalStatus_ == null ? com.google.ads.googleads.v18.common.ParentalStatusInfo.getDefaultInstance() : parentalStatus_;
}
public static final int INCOME_RANGES_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List incomeRanges_;
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
@java.lang.Override
public java.util.List getIncomeRangesList() {
return incomeRanges_;
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.IncomeRangeInfoOrBuilder>
getIncomeRangesOrBuilderList() {
return incomeRanges_;
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
@java.lang.Override
public int getIncomeRangesCount() {
return incomeRanges_.size();
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.IncomeRangeInfo getIncomeRanges(int index) {
return incomeRanges_.get(index);
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.IncomeRangeInfoOrBuilder getIncomeRangesOrBuilder(
int index) {
return incomeRanges_.get(index);
}
public static final int DYNAMIC_LINEUPS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List dynamicLineups_;
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
@java.lang.Override
public java.util.List getDynamicLineupsList() {
return dynamicLineups_;
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineupOrBuilder>
getDynamicLineupsOrBuilderList() {
return dynamicLineups_;
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
@java.lang.Override
public int getDynamicLineupsCount() {
return dynamicLineups_.size();
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup getDynamicLineups(int index) {
return dynamicLineups_.get(index);
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineupOrBuilder getDynamicLineupsOrBuilder(
int index) {
return dynamicLineups_.get(index);
}
public static final int TOPIC_AUDIENCE_COMBINATIONS_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private java.util.List topicAudienceCombinations_;
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
@java.lang.Override
public java.util.List getTopicAudienceCombinationsList() {
return topicAudienceCombinations_;
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroupOrBuilder>
getTopicAudienceCombinationsOrBuilderList() {
return topicAudienceCombinations_;
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
@java.lang.Override
public int getTopicAudienceCombinationsCount() {
return topicAudienceCombinations_.size();
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup getTopicAudienceCombinations(int index) {
return topicAudienceCombinations_.get(index);
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroupOrBuilder getTopicAudienceCombinationsOrBuilder(
int index) {
return topicAudienceCombinations_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < countryLocations_.size(); i++) {
output.writeMessage(1, countryLocations_.get(i));
}
for (int i = 0; i < subCountryLocations_.size(); i++) {
output.writeMessage(2, subCountryLocations_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getGender());
}
for (int i = 0; i < ageRanges_.size(); i++) {
output.writeMessage(4, ageRanges_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getParentalStatus());
}
for (int i = 0; i < incomeRanges_.size(); i++) {
output.writeMessage(6, incomeRanges_.get(i));
}
for (int i = 0; i < dynamicLineups_.size(); i++) {
output.writeMessage(7, dynamicLineups_.get(i));
}
for (int i = 0; i < topicAudienceCombinations_.size(); i++) {
output.writeMessage(8, topicAudienceCombinations_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < countryLocations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, countryLocations_.get(i));
}
for (int i = 0; i < subCountryLocations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, subCountryLocations_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getGender());
}
for (int i = 0; i < ageRanges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, ageRanges_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getParentalStatus());
}
for (int i = 0; i < incomeRanges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, incomeRanges_.get(i));
}
for (int i = 0; i < dynamicLineups_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, dynamicLineups_.get(i));
}
for (int i = 0; i < topicAudienceCombinations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, topicAudienceCombinations_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v18.services.InsightsAudience)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.services.InsightsAudience other = (com.google.ads.googleads.v18.services.InsightsAudience) obj;
if (!getCountryLocationsList()
.equals(other.getCountryLocationsList())) return false;
if (!getSubCountryLocationsList()
.equals(other.getSubCountryLocationsList())) return false;
if (hasGender() != other.hasGender()) return false;
if (hasGender()) {
if (!getGender()
.equals(other.getGender())) return false;
}
if (!getAgeRangesList()
.equals(other.getAgeRangesList())) return false;
if (hasParentalStatus() != other.hasParentalStatus()) return false;
if (hasParentalStatus()) {
if (!getParentalStatus()
.equals(other.getParentalStatus())) return false;
}
if (!getIncomeRangesList()
.equals(other.getIncomeRangesList())) return false;
if (!getDynamicLineupsList()
.equals(other.getDynamicLineupsList())) return false;
if (!getTopicAudienceCombinationsList()
.equals(other.getTopicAudienceCombinationsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getCountryLocationsCount() > 0) {
hash = (37 * hash) + COUNTRY_LOCATIONS_FIELD_NUMBER;
hash = (53 * hash) + getCountryLocationsList().hashCode();
}
if (getSubCountryLocationsCount() > 0) {
hash = (37 * hash) + SUB_COUNTRY_LOCATIONS_FIELD_NUMBER;
hash = (53 * hash) + getSubCountryLocationsList().hashCode();
}
if (hasGender()) {
hash = (37 * hash) + GENDER_FIELD_NUMBER;
hash = (53 * hash) + getGender().hashCode();
}
if (getAgeRangesCount() > 0) {
hash = (37 * hash) + AGE_RANGES_FIELD_NUMBER;
hash = (53 * hash) + getAgeRangesList().hashCode();
}
if (hasParentalStatus()) {
hash = (37 * hash) + PARENTAL_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getParentalStatus().hashCode();
}
if (getIncomeRangesCount() > 0) {
hash = (37 * hash) + INCOME_RANGES_FIELD_NUMBER;
hash = (53 * hash) + getIncomeRangesList().hashCode();
}
if (getDynamicLineupsCount() > 0) {
hash = (37 * hash) + DYNAMIC_LINEUPS_FIELD_NUMBER;
hash = (53 * hash) + getDynamicLineupsList().hashCode();
}
if (getTopicAudienceCombinationsCount() > 0) {
hash = (37 * hash) + TOPIC_AUDIENCE_COMBINATIONS_FIELD_NUMBER;
hash = (53 * hash) + getTopicAudienceCombinationsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.services.InsightsAudience parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.InsightsAudience 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.v18.services.InsightsAudience parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.InsightsAudience 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.v18.services.InsightsAudience parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.InsightsAudience parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.services.InsightsAudience parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.services.InsightsAudience 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.v18.services.InsightsAudience parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.services.InsightsAudience 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.v18.services.InsightsAudience parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.services.InsightsAudience 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.v18.services.InsightsAudience 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;
}
/**
*
* A set of users, defined by various characteristics, for which insights can
* be requested in AudienceInsightsService.
*
*
* Protobuf type {@code google.ads.googleads.v18.services.InsightsAudience}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.services.InsightsAudience)
com.google.ads.googleads.v18.services.InsightsAudienceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v18_services_InsightsAudience_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v18_services_InsightsAudience_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.services.InsightsAudience.class, com.google.ads.googleads.v18.services.InsightsAudience.Builder.class);
}
// Construct using com.google.ads.googleads.v18.services.InsightsAudience.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCountryLocationsFieldBuilder();
getSubCountryLocationsFieldBuilder();
getGenderFieldBuilder();
getAgeRangesFieldBuilder();
getParentalStatusFieldBuilder();
getIncomeRangesFieldBuilder();
getDynamicLineupsFieldBuilder();
getTopicAudienceCombinationsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (countryLocationsBuilder_ == null) {
countryLocations_ = java.util.Collections.emptyList();
} else {
countryLocations_ = null;
countryLocationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (subCountryLocationsBuilder_ == null) {
subCountryLocations_ = java.util.Collections.emptyList();
} else {
subCountryLocations_ = null;
subCountryLocationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
gender_ = null;
if (genderBuilder_ != null) {
genderBuilder_.dispose();
genderBuilder_ = null;
}
if (ageRangesBuilder_ == null) {
ageRanges_ = java.util.Collections.emptyList();
} else {
ageRanges_ = null;
ageRangesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
parentalStatus_ = null;
if (parentalStatusBuilder_ != null) {
parentalStatusBuilder_.dispose();
parentalStatusBuilder_ = null;
}
if (incomeRangesBuilder_ == null) {
incomeRanges_ = java.util.Collections.emptyList();
} else {
incomeRanges_ = null;
incomeRangesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (dynamicLineupsBuilder_ == null) {
dynamicLineups_ = java.util.Collections.emptyList();
} else {
dynamicLineups_ = null;
dynamicLineupsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (topicAudienceCombinationsBuilder_ == null) {
topicAudienceCombinations_ = java.util.Collections.emptyList();
} else {
topicAudienceCombinations_ = null;
topicAudienceCombinationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v18_services_InsightsAudience_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.services.InsightsAudience getDefaultInstanceForType() {
return com.google.ads.googleads.v18.services.InsightsAudience.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.services.InsightsAudience build() {
com.google.ads.googleads.v18.services.InsightsAudience result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.services.InsightsAudience buildPartial() {
com.google.ads.googleads.v18.services.InsightsAudience result = new com.google.ads.googleads.v18.services.InsightsAudience(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v18.services.InsightsAudience result) {
if (countryLocationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
countryLocations_ = java.util.Collections.unmodifiableList(countryLocations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.countryLocations_ = countryLocations_;
} else {
result.countryLocations_ = countryLocationsBuilder_.build();
}
if (subCountryLocationsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
subCountryLocations_ = java.util.Collections.unmodifiableList(subCountryLocations_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.subCountryLocations_ = subCountryLocations_;
} else {
result.subCountryLocations_ = subCountryLocationsBuilder_.build();
}
if (ageRangesBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
ageRanges_ = java.util.Collections.unmodifiableList(ageRanges_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.ageRanges_ = ageRanges_;
} else {
result.ageRanges_ = ageRangesBuilder_.build();
}
if (incomeRangesBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
incomeRanges_ = java.util.Collections.unmodifiableList(incomeRanges_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.incomeRanges_ = incomeRanges_;
} else {
result.incomeRanges_ = incomeRangesBuilder_.build();
}
if (dynamicLineupsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
dynamicLineups_ = java.util.Collections.unmodifiableList(dynamicLineups_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.dynamicLineups_ = dynamicLineups_;
} else {
result.dynamicLineups_ = dynamicLineupsBuilder_.build();
}
if (topicAudienceCombinationsBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
topicAudienceCombinations_ = java.util.Collections.unmodifiableList(topicAudienceCombinations_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.topicAudienceCombinations_ = topicAudienceCombinations_;
} else {
result.topicAudienceCombinations_ = topicAudienceCombinationsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v18.services.InsightsAudience result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.gender_ = genderBuilder_ == null
? gender_
: genderBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.parentalStatus_ = parentalStatusBuilder_ == null
? parentalStatus_
: parentalStatusBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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.v18.services.InsightsAudience) {
return mergeFrom((com.google.ads.googleads.v18.services.InsightsAudience)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.services.InsightsAudience other) {
if (other == com.google.ads.googleads.v18.services.InsightsAudience.getDefaultInstance()) return this;
if (countryLocationsBuilder_ == null) {
if (!other.countryLocations_.isEmpty()) {
if (countryLocations_.isEmpty()) {
countryLocations_ = other.countryLocations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCountryLocationsIsMutable();
countryLocations_.addAll(other.countryLocations_);
}
onChanged();
}
} else {
if (!other.countryLocations_.isEmpty()) {
if (countryLocationsBuilder_.isEmpty()) {
countryLocationsBuilder_.dispose();
countryLocationsBuilder_ = null;
countryLocations_ = other.countryLocations_;
bitField0_ = (bitField0_ & ~0x00000001);
countryLocationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCountryLocationsFieldBuilder() : null;
} else {
countryLocationsBuilder_.addAllMessages(other.countryLocations_);
}
}
}
if (subCountryLocationsBuilder_ == null) {
if (!other.subCountryLocations_.isEmpty()) {
if (subCountryLocations_.isEmpty()) {
subCountryLocations_ = other.subCountryLocations_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSubCountryLocationsIsMutable();
subCountryLocations_.addAll(other.subCountryLocations_);
}
onChanged();
}
} else {
if (!other.subCountryLocations_.isEmpty()) {
if (subCountryLocationsBuilder_.isEmpty()) {
subCountryLocationsBuilder_.dispose();
subCountryLocationsBuilder_ = null;
subCountryLocations_ = other.subCountryLocations_;
bitField0_ = (bitField0_ & ~0x00000002);
subCountryLocationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSubCountryLocationsFieldBuilder() : null;
} else {
subCountryLocationsBuilder_.addAllMessages(other.subCountryLocations_);
}
}
}
if (other.hasGender()) {
mergeGender(other.getGender());
}
if (ageRangesBuilder_ == null) {
if (!other.ageRanges_.isEmpty()) {
if (ageRanges_.isEmpty()) {
ageRanges_ = other.ageRanges_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAgeRangesIsMutable();
ageRanges_.addAll(other.ageRanges_);
}
onChanged();
}
} else {
if (!other.ageRanges_.isEmpty()) {
if (ageRangesBuilder_.isEmpty()) {
ageRangesBuilder_.dispose();
ageRangesBuilder_ = null;
ageRanges_ = other.ageRanges_;
bitField0_ = (bitField0_ & ~0x00000008);
ageRangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAgeRangesFieldBuilder() : null;
} else {
ageRangesBuilder_.addAllMessages(other.ageRanges_);
}
}
}
if (other.hasParentalStatus()) {
mergeParentalStatus(other.getParentalStatus());
}
if (incomeRangesBuilder_ == null) {
if (!other.incomeRanges_.isEmpty()) {
if (incomeRanges_.isEmpty()) {
incomeRanges_ = other.incomeRanges_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureIncomeRangesIsMutable();
incomeRanges_.addAll(other.incomeRanges_);
}
onChanged();
}
} else {
if (!other.incomeRanges_.isEmpty()) {
if (incomeRangesBuilder_.isEmpty()) {
incomeRangesBuilder_.dispose();
incomeRangesBuilder_ = null;
incomeRanges_ = other.incomeRanges_;
bitField0_ = (bitField0_ & ~0x00000020);
incomeRangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIncomeRangesFieldBuilder() : null;
} else {
incomeRangesBuilder_.addAllMessages(other.incomeRanges_);
}
}
}
if (dynamicLineupsBuilder_ == null) {
if (!other.dynamicLineups_.isEmpty()) {
if (dynamicLineups_.isEmpty()) {
dynamicLineups_ = other.dynamicLineups_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureDynamicLineupsIsMutable();
dynamicLineups_.addAll(other.dynamicLineups_);
}
onChanged();
}
} else {
if (!other.dynamicLineups_.isEmpty()) {
if (dynamicLineupsBuilder_.isEmpty()) {
dynamicLineupsBuilder_.dispose();
dynamicLineupsBuilder_ = null;
dynamicLineups_ = other.dynamicLineups_;
bitField0_ = (bitField0_ & ~0x00000040);
dynamicLineupsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDynamicLineupsFieldBuilder() : null;
} else {
dynamicLineupsBuilder_.addAllMessages(other.dynamicLineups_);
}
}
}
if (topicAudienceCombinationsBuilder_ == null) {
if (!other.topicAudienceCombinations_.isEmpty()) {
if (topicAudienceCombinations_.isEmpty()) {
topicAudienceCombinations_ = other.topicAudienceCombinations_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureTopicAudienceCombinationsIsMutable();
topicAudienceCombinations_.addAll(other.topicAudienceCombinations_);
}
onChanged();
}
} else {
if (!other.topicAudienceCombinations_.isEmpty()) {
if (topicAudienceCombinationsBuilder_.isEmpty()) {
topicAudienceCombinationsBuilder_.dispose();
topicAudienceCombinationsBuilder_ = null;
topicAudienceCombinations_ = other.topicAudienceCombinations_;
bitField0_ = (bitField0_ & ~0x00000080);
topicAudienceCombinationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTopicAudienceCombinationsFieldBuilder() : null;
} else {
topicAudienceCombinationsBuilder_.addAllMessages(other.topicAudienceCombinations_);
}
}
}
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: {
com.google.ads.googleads.v18.common.LocationInfo m =
input.readMessage(
com.google.ads.googleads.v18.common.LocationInfo.parser(),
extensionRegistry);
if (countryLocationsBuilder_ == null) {
ensureCountryLocationsIsMutable();
countryLocations_.add(m);
} else {
countryLocationsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.google.ads.googleads.v18.common.LocationInfo m =
input.readMessage(
com.google.ads.googleads.v18.common.LocationInfo.parser(),
extensionRegistry);
if (subCountryLocationsBuilder_ == null) {
ensureSubCountryLocationsIsMutable();
subCountryLocations_.add(m);
} else {
subCountryLocationsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
input.readMessage(
getGenderFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
com.google.ads.googleads.v18.common.AgeRangeInfo m =
input.readMessage(
com.google.ads.googleads.v18.common.AgeRangeInfo.parser(),
extensionRegistry);
if (ageRangesBuilder_ == null) {
ensureAgeRangesIsMutable();
ageRanges_.add(m);
} else {
ageRangesBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
input.readMessage(
getParentalStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
com.google.ads.googleads.v18.common.IncomeRangeInfo m =
input.readMessage(
com.google.ads.googleads.v18.common.IncomeRangeInfo.parser(),
extensionRegistry);
if (incomeRangesBuilder_ == null) {
ensureIncomeRangesIsMutable();
incomeRanges_.add(m);
} else {
incomeRangesBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup m =
input.readMessage(
com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.parser(),
extensionRegistry);
if (dynamicLineupsBuilder_ == null) {
ensureDynamicLineupsIsMutable();
dynamicLineups_.add(m);
} else {
dynamicLineupsBuilder_.addMessage(m);
}
break;
} // case 58
case 66: {
com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup m =
input.readMessage(
com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.parser(),
extensionRegistry);
if (topicAudienceCombinationsBuilder_ == null) {
ensureTopicAudienceCombinationsIsMutable();
topicAudienceCombinations_.add(m);
} else {
topicAudienceCombinationsBuilder_.addMessage(m);
}
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 bitField0_;
private java.util.List countryLocations_ =
java.util.Collections.emptyList();
private void ensureCountryLocationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
countryLocations_ = new java.util.ArrayList(countryLocations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.LocationInfo, com.google.ads.googleads.v18.common.LocationInfo.Builder, com.google.ads.googleads.v18.common.LocationInfoOrBuilder> countryLocationsBuilder_;
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public java.util.List getCountryLocationsList() {
if (countryLocationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(countryLocations_);
} else {
return countryLocationsBuilder_.getMessageList();
}
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public int getCountryLocationsCount() {
if (countryLocationsBuilder_ == null) {
return countryLocations_.size();
} else {
return countryLocationsBuilder_.getCount();
}
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v18.common.LocationInfo getCountryLocations(int index) {
if (countryLocationsBuilder_ == null) {
return countryLocations_.get(index);
} else {
return countryLocationsBuilder_.getMessage(index);
}
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setCountryLocations(
int index, com.google.ads.googleads.v18.common.LocationInfo value) {
if (countryLocationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountryLocationsIsMutable();
countryLocations_.set(index, value);
onChanged();
} else {
countryLocationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setCountryLocations(
int index, com.google.ads.googleads.v18.common.LocationInfo.Builder builderForValue) {
if (countryLocationsBuilder_ == null) {
ensureCountryLocationsIsMutable();
countryLocations_.set(index, builderForValue.build());
onChanged();
} else {
countryLocationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addCountryLocations(com.google.ads.googleads.v18.common.LocationInfo value) {
if (countryLocationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountryLocationsIsMutable();
countryLocations_.add(value);
onChanged();
} else {
countryLocationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addCountryLocations(
int index, com.google.ads.googleads.v18.common.LocationInfo value) {
if (countryLocationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountryLocationsIsMutable();
countryLocations_.add(index, value);
onChanged();
} else {
countryLocationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addCountryLocations(
com.google.ads.googleads.v18.common.LocationInfo.Builder builderForValue) {
if (countryLocationsBuilder_ == null) {
ensureCountryLocationsIsMutable();
countryLocations_.add(builderForValue.build());
onChanged();
} else {
countryLocationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addCountryLocations(
int index, com.google.ads.googleads.v18.common.LocationInfo.Builder builderForValue) {
if (countryLocationsBuilder_ == null) {
ensureCountryLocationsIsMutable();
countryLocations_.add(index, builderForValue.build());
onChanged();
} else {
countryLocationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addAllCountryLocations(
java.lang.Iterable extends com.google.ads.googleads.v18.common.LocationInfo> values) {
if (countryLocationsBuilder_ == null) {
ensureCountryLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, countryLocations_);
onChanged();
} else {
countryLocationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearCountryLocations() {
if (countryLocationsBuilder_ == null) {
countryLocations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
countryLocationsBuilder_.clear();
}
return this;
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder removeCountryLocations(int index) {
if (countryLocationsBuilder_ == null) {
ensureCountryLocationsIsMutable();
countryLocations_.remove(index);
onChanged();
} else {
countryLocationsBuilder_.remove(index);
}
return this;
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v18.common.LocationInfo.Builder getCountryLocationsBuilder(
int index) {
return getCountryLocationsFieldBuilder().getBuilder(index);
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v18.common.LocationInfoOrBuilder getCountryLocationsOrBuilder(
int index) {
if (countryLocationsBuilder_ == null) {
return countryLocations_.get(index); } else {
return countryLocationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public java.util.List extends com.google.ads.googleads.v18.common.LocationInfoOrBuilder>
getCountryLocationsOrBuilderList() {
if (countryLocationsBuilder_ != null) {
return countryLocationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(countryLocations_);
}
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v18.common.LocationInfo.Builder addCountryLocationsBuilder() {
return getCountryLocationsFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.LocationInfo.getDefaultInstance());
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v18.common.LocationInfo.Builder addCountryLocationsBuilder(
int index) {
return getCountryLocationsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.LocationInfo.getDefaultInstance());
}
/**
*
* Required. The countries for the audience.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo country_locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public java.util.List
getCountryLocationsBuilderList() {
return getCountryLocationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.LocationInfo, com.google.ads.googleads.v18.common.LocationInfo.Builder, com.google.ads.googleads.v18.common.LocationInfoOrBuilder>
getCountryLocationsFieldBuilder() {
if (countryLocationsBuilder_ == null) {
countryLocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.LocationInfo, com.google.ads.googleads.v18.common.LocationInfo.Builder, com.google.ads.googleads.v18.common.LocationInfoOrBuilder>(
countryLocations_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
countryLocations_ = null;
}
return countryLocationsBuilder_;
}
private java.util.List subCountryLocations_ =
java.util.Collections.emptyList();
private void ensureSubCountryLocationsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
subCountryLocations_ = new java.util.ArrayList(subCountryLocations_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.LocationInfo, com.google.ads.googleads.v18.common.LocationInfo.Builder, com.google.ads.googleads.v18.common.LocationInfoOrBuilder> subCountryLocationsBuilder_;
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public java.util.List getSubCountryLocationsList() {
if (subCountryLocationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(subCountryLocations_);
} else {
return subCountryLocationsBuilder_.getMessageList();
}
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public int getSubCountryLocationsCount() {
if (subCountryLocationsBuilder_ == null) {
return subCountryLocations_.size();
} else {
return subCountryLocationsBuilder_.getCount();
}
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public com.google.ads.googleads.v18.common.LocationInfo getSubCountryLocations(int index) {
if (subCountryLocationsBuilder_ == null) {
return subCountryLocations_.get(index);
} else {
return subCountryLocationsBuilder_.getMessage(index);
}
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public Builder setSubCountryLocations(
int index, com.google.ads.googleads.v18.common.LocationInfo value) {
if (subCountryLocationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubCountryLocationsIsMutable();
subCountryLocations_.set(index, value);
onChanged();
} else {
subCountryLocationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public Builder setSubCountryLocations(
int index, com.google.ads.googleads.v18.common.LocationInfo.Builder builderForValue) {
if (subCountryLocationsBuilder_ == null) {
ensureSubCountryLocationsIsMutable();
subCountryLocations_.set(index, builderForValue.build());
onChanged();
} else {
subCountryLocationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public Builder addSubCountryLocations(com.google.ads.googleads.v18.common.LocationInfo value) {
if (subCountryLocationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubCountryLocationsIsMutable();
subCountryLocations_.add(value);
onChanged();
} else {
subCountryLocationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public Builder addSubCountryLocations(
int index, com.google.ads.googleads.v18.common.LocationInfo value) {
if (subCountryLocationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubCountryLocationsIsMutable();
subCountryLocations_.add(index, value);
onChanged();
} else {
subCountryLocationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public Builder addSubCountryLocations(
com.google.ads.googleads.v18.common.LocationInfo.Builder builderForValue) {
if (subCountryLocationsBuilder_ == null) {
ensureSubCountryLocationsIsMutable();
subCountryLocations_.add(builderForValue.build());
onChanged();
} else {
subCountryLocationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public Builder addSubCountryLocations(
int index, com.google.ads.googleads.v18.common.LocationInfo.Builder builderForValue) {
if (subCountryLocationsBuilder_ == null) {
ensureSubCountryLocationsIsMutable();
subCountryLocations_.add(index, builderForValue.build());
onChanged();
} else {
subCountryLocationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public Builder addAllSubCountryLocations(
java.lang.Iterable extends com.google.ads.googleads.v18.common.LocationInfo> values) {
if (subCountryLocationsBuilder_ == null) {
ensureSubCountryLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, subCountryLocations_);
onChanged();
} else {
subCountryLocationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public Builder clearSubCountryLocations() {
if (subCountryLocationsBuilder_ == null) {
subCountryLocations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
subCountryLocationsBuilder_.clear();
}
return this;
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public Builder removeSubCountryLocations(int index) {
if (subCountryLocationsBuilder_ == null) {
ensureSubCountryLocationsIsMutable();
subCountryLocations_.remove(index);
onChanged();
} else {
subCountryLocationsBuilder_.remove(index);
}
return this;
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public com.google.ads.googleads.v18.common.LocationInfo.Builder getSubCountryLocationsBuilder(
int index) {
return getSubCountryLocationsFieldBuilder().getBuilder(index);
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public com.google.ads.googleads.v18.common.LocationInfoOrBuilder getSubCountryLocationsOrBuilder(
int index) {
if (subCountryLocationsBuilder_ == null) {
return subCountryLocations_.get(index); } else {
return subCountryLocationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public java.util.List extends com.google.ads.googleads.v18.common.LocationInfoOrBuilder>
getSubCountryLocationsOrBuilderList() {
if (subCountryLocationsBuilder_ != null) {
return subCountryLocationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(subCountryLocations_);
}
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public com.google.ads.googleads.v18.common.LocationInfo.Builder addSubCountryLocationsBuilder() {
return getSubCountryLocationsFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.LocationInfo.getDefaultInstance());
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public com.google.ads.googleads.v18.common.LocationInfo.Builder addSubCountryLocationsBuilder(
int index) {
return getSubCountryLocationsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.LocationInfo.getDefaultInstance());
}
/**
*
* Sub-country geographic location attributes. If present, each of these
* must be contained in one of the countries in this audience. If absent, the
* audience is geographically to the country_locations and no further.
*
*
* repeated .google.ads.googleads.v18.common.LocationInfo sub_country_locations = 2;
*/
public java.util.List
getSubCountryLocationsBuilderList() {
return getSubCountryLocationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.LocationInfo, com.google.ads.googleads.v18.common.LocationInfo.Builder, com.google.ads.googleads.v18.common.LocationInfoOrBuilder>
getSubCountryLocationsFieldBuilder() {
if (subCountryLocationsBuilder_ == null) {
subCountryLocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.LocationInfo, com.google.ads.googleads.v18.common.LocationInfo.Builder, com.google.ads.googleads.v18.common.LocationInfoOrBuilder>(
subCountryLocations_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
subCountryLocations_ = null;
}
return subCountryLocationsBuilder_;
}
private com.google.ads.googleads.v18.common.GenderInfo gender_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.common.GenderInfo, com.google.ads.googleads.v18.common.GenderInfo.Builder, com.google.ads.googleads.v18.common.GenderInfoOrBuilder> genderBuilder_;
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
* @return Whether the gender field is set.
*/
public boolean hasGender() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
* @return The gender.
*/
public com.google.ads.googleads.v18.common.GenderInfo getGender() {
if (genderBuilder_ == null) {
return gender_ == null ? com.google.ads.googleads.v18.common.GenderInfo.getDefaultInstance() : gender_;
} else {
return genderBuilder_.getMessage();
}
}
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
*/
public Builder setGender(com.google.ads.googleads.v18.common.GenderInfo value) {
if (genderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gender_ = value;
} else {
genderBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
*/
public Builder setGender(
com.google.ads.googleads.v18.common.GenderInfo.Builder builderForValue) {
if (genderBuilder_ == null) {
gender_ = builderForValue.build();
} else {
genderBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
*/
public Builder mergeGender(com.google.ads.googleads.v18.common.GenderInfo value) {
if (genderBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
gender_ != null &&
gender_ != com.google.ads.googleads.v18.common.GenderInfo.getDefaultInstance()) {
getGenderBuilder().mergeFrom(value);
} else {
gender_ = value;
}
} else {
genderBuilder_.mergeFrom(value);
}
if (gender_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
*/
public Builder clearGender() {
bitField0_ = (bitField0_ & ~0x00000004);
gender_ = null;
if (genderBuilder_ != null) {
genderBuilder_.dispose();
genderBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
*/
public com.google.ads.googleads.v18.common.GenderInfo.Builder getGenderBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getGenderFieldBuilder().getBuilder();
}
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
*/
public com.google.ads.googleads.v18.common.GenderInfoOrBuilder getGenderOrBuilder() {
if (genderBuilder_ != null) {
return genderBuilder_.getMessageOrBuilder();
} else {
return gender_ == null ?
com.google.ads.googleads.v18.common.GenderInfo.getDefaultInstance() : gender_;
}
}
/**
*
* Gender for the audience. If absent, the audience does not restrict by
* gender.
*
*
* .google.ads.googleads.v18.common.GenderInfo gender = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.common.GenderInfo, com.google.ads.googleads.v18.common.GenderInfo.Builder, com.google.ads.googleads.v18.common.GenderInfoOrBuilder>
getGenderFieldBuilder() {
if (genderBuilder_ == null) {
genderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.common.GenderInfo, com.google.ads.googleads.v18.common.GenderInfo.Builder, com.google.ads.googleads.v18.common.GenderInfoOrBuilder>(
getGender(),
getParentForChildren(),
isClean());
gender_ = null;
}
return genderBuilder_;
}
private java.util.List ageRanges_ =
java.util.Collections.emptyList();
private void ensureAgeRangesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
ageRanges_ = new java.util.ArrayList(ageRanges_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AgeRangeInfo, com.google.ads.googleads.v18.common.AgeRangeInfo.Builder, com.google.ads.googleads.v18.common.AgeRangeInfoOrBuilder> ageRangesBuilder_;
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public java.util.List getAgeRangesList() {
if (ageRangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(ageRanges_);
} else {
return ageRangesBuilder_.getMessageList();
}
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public int getAgeRangesCount() {
if (ageRangesBuilder_ == null) {
return ageRanges_.size();
} else {
return ageRangesBuilder_.getCount();
}
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public com.google.ads.googleads.v18.common.AgeRangeInfo getAgeRanges(int index) {
if (ageRangesBuilder_ == null) {
return ageRanges_.get(index);
} else {
return ageRangesBuilder_.getMessage(index);
}
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public Builder setAgeRanges(
int index, com.google.ads.googleads.v18.common.AgeRangeInfo value) {
if (ageRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAgeRangesIsMutable();
ageRanges_.set(index, value);
onChanged();
} else {
ageRangesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public Builder setAgeRanges(
int index, com.google.ads.googleads.v18.common.AgeRangeInfo.Builder builderForValue) {
if (ageRangesBuilder_ == null) {
ensureAgeRangesIsMutable();
ageRanges_.set(index, builderForValue.build());
onChanged();
} else {
ageRangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public Builder addAgeRanges(com.google.ads.googleads.v18.common.AgeRangeInfo value) {
if (ageRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAgeRangesIsMutable();
ageRanges_.add(value);
onChanged();
} else {
ageRangesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public Builder addAgeRanges(
int index, com.google.ads.googleads.v18.common.AgeRangeInfo value) {
if (ageRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAgeRangesIsMutable();
ageRanges_.add(index, value);
onChanged();
} else {
ageRangesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public Builder addAgeRanges(
com.google.ads.googleads.v18.common.AgeRangeInfo.Builder builderForValue) {
if (ageRangesBuilder_ == null) {
ensureAgeRangesIsMutable();
ageRanges_.add(builderForValue.build());
onChanged();
} else {
ageRangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public Builder addAgeRanges(
int index, com.google.ads.googleads.v18.common.AgeRangeInfo.Builder builderForValue) {
if (ageRangesBuilder_ == null) {
ensureAgeRangesIsMutable();
ageRanges_.add(index, builderForValue.build());
onChanged();
} else {
ageRangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public Builder addAllAgeRanges(
java.lang.Iterable extends com.google.ads.googleads.v18.common.AgeRangeInfo> values) {
if (ageRangesBuilder_ == null) {
ensureAgeRangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ageRanges_);
onChanged();
} else {
ageRangesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public Builder clearAgeRanges() {
if (ageRangesBuilder_ == null) {
ageRanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
ageRangesBuilder_.clear();
}
return this;
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public Builder removeAgeRanges(int index) {
if (ageRangesBuilder_ == null) {
ensureAgeRangesIsMutable();
ageRanges_.remove(index);
onChanged();
} else {
ageRangesBuilder_.remove(index);
}
return this;
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public com.google.ads.googleads.v18.common.AgeRangeInfo.Builder getAgeRangesBuilder(
int index) {
return getAgeRangesFieldBuilder().getBuilder(index);
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public com.google.ads.googleads.v18.common.AgeRangeInfoOrBuilder getAgeRangesOrBuilder(
int index) {
if (ageRangesBuilder_ == null) {
return ageRanges_.get(index); } else {
return ageRangesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public java.util.List extends com.google.ads.googleads.v18.common.AgeRangeInfoOrBuilder>
getAgeRangesOrBuilderList() {
if (ageRangesBuilder_ != null) {
return ageRangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ageRanges_);
}
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public com.google.ads.googleads.v18.common.AgeRangeInfo.Builder addAgeRangesBuilder() {
return getAgeRangesFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.AgeRangeInfo.getDefaultInstance());
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public com.google.ads.googleads.v18.common.AgeRangeInfo.Builder addAgeRangesBuilder(
int index) {
return getAgeRangesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.AgeRangeInfo.getDefaultInstance());
}
/**
*
* Age ranges for the audience. If absent, the audience represents all people
* over 18 that match the other attributes.
*
*
* repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 4;
*/
public java.util.List
getAgeRangesBuilderList() {
return getAgeRangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AgeRangeInfo, com.google.ads.googleads.v18.common.AgeRangeInfo.Builder, com.google.ads.googleads.v18.common.AgeRangeInfoOrBuilder>
getAgeRangesFieldBuilder() {
if (ageRangesBuilder_ == null) {
ageRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AgeRangeInfo, com.google.ads.googleads.v18.common.AgeRangeInfo.Builder, com.google.ads.googleads.v18.common.AgeRangeInfoOrBuilder>(
ageRanges_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
ageRanges_ = null;
}
return ageRangesBuilder_;
}
private com.google.ads.googleads.v18.common.ParentalStatusInfo parentalStatus_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.common.ParentalStatusInfo, com.google.ads.googleads.v18.common.ParentalStatusInfo.Builder, com.google.ads.googleads.v18.common.ParentalStatusInfoOrBuilder> parentalStatusBuilder_;
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
* @return Whether the parentalStatus field is set.
*/
public boolean hasParentalStatus() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
* @return The parentalStatus.
*/
public com.google.ads.googleads.v18.common.ParentalStatusInfo getParentalStatus() {
if (parentalStatusBuilder_ == null) {
return parentalStatus_ == null ? com.google.ads.googleads.v18.common.ParentalStatusInfo.getDefaultInstance() : parentalStatus_;
} else {
return parentalStatusBuilder_.getMessage();
}
}
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
*/
public Builder setParentalStatus(com.google.ads.googleads.v18.common.ParentalStatusInfo value) {
if (parentalStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parentalStatus_ = value;
} else {
parentalStatusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
*/
public Builder setParentalStatus(
com.google.ads.googleads.v18.common.ParentalStatusInfo.Builder builderForValue) {
if (parentalStatusBuilder_ == null) {
parentalStatus_ = builderForValue.build();
} else {
parentalStatusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
*/
public Builder mergeParentalStatus(com.google.ads.googleads.v18.common.ParentalStatusInfo value) {
if (parentalStatusBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
parentalStatus_ != null &&
parentalStatus_ != com.google.ads.googleads.v18.common.ParentalStatusInfo.getDefaultInstance()) {
getParentalStatusBuilder().mergeFrom(value);
} else {
parentalStatus_ = value;
}
} else {
parentalStatusBuilder_.mergeFrom(value);
}
if (parentalStatus_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
*/
public Builder clearParentalStatus() {
bitField0_ = (bitField0_ & ~0x00000010);
parentalStatus_ = null;
if (parentalStatusBuilder_ != null) {
parentalStatusBuilder_.dispose();
parentalStatusBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
*/
public com.google.ads.googleads.v18.common.ParentalStatusInfo.Builder getParentalStatusBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getParentalStatusFieldBuilder().getBuilder();
}
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
*/
public com.google.ads.googleads.v18.common.ParentalStatusInfoOrBuilder getParentalStatusOrBuilder() {
if (parentalStatusBuilder_ != null) {
return parentalStatusBuilder_.getMessageOrBuilder();
} else {
return parentalStatus_ == null ?
com.google.ads.googleads.v18.common.ParentalStatusInfo.getDefaultInstance() : parentalStatus_;
}
}
/**
*
* Parental status for the audience. If absent, the audience does not
* restrict by parental status.
*
*
* .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.common.ParentalStatusInfo, com.google.ads.googleads.v18.common.ParentalStatusInfo.Builder, com.google.ads.googleads.v18.common.ParentalStatusInfoOrBuilder>
getParentalStatusFieldBuilder() {
if (parentalStatusBuilder_ == null) {
parentalStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.common.ParentalStatusInfo, com.google.ads.googleads.v18.common.ParentalStatusInfo.Builder, com.google.ads.googleads.v18.common.ParentalStatusInfoOrBuilder>(
getParentalStatus(),
getParentForChildren(),
isClean());
parentalStatus_ = null;
}
return parentalStatusBuilder_;
}
private java.util.List incomeRanges_ =
java.util.Collections.emptyList();
private void ensureIncomeRangesIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
incomeRanges_ = new java.util.ArrayList(incomeRanges_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.IncomeRangeInfo, com.google.ads.googleads.v18.common.IncomeRangeInfo.Builder, com.google.ads.googleads.v18.common.IncomeRangeInfoOrBuilder> incomeRangesBuilder_;
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public java.util.List getIncomeRangesList() {
if (incomeRangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(incomeRanges_);
} else {
return incomeRangesBuilder_.getMessageList();
}
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public int getIncomeRangesCount() {
if (incomeRangesBuilder_ == null) {
return incomeRanges_.size();
} else {
return incomeRangesBuilder_.getCount();
}
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public com.google.ads.googleads.v18.common.IncomeRangeInfo getIncomeRanges(int index) {
if (incomeRangesBuilder_ == null) {
return incomeRanges_.get(index);
} else {
return incomeRangesBuilder_.getMessage(index);
}
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public Builder setIncomeRanges(
int index, com.google.ads.googleads.v18.common.IncomeRangeInfo value) {
if (incomeRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncomeRangesIsMutable();
incomeRanges_.set(index, value);
onChanged();
} else {
incomeRangesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public Builder setIncomeRanges(
int index, com.google.ads.googleads.v18.common.IncomeRangeInfo.Builder builderForValue) {
if (incomeRangesBuilder_ == null) {
ensureIncomeRangesIsMutable();
incomeRanges_.set(index, builderForValue.build());
onChanged();
} else {
incomeRangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public Builder addIncomeRanges(com.google.ads.googleads.v18.common.IncomeRangeInfo value) {
if (incomeRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncomeRangesIsMutable();
incomeRanges_.add(value);
onChanged();
} else {
incomeRangesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public Builder addIncomeRanges(
int index, com.google.ads.googleads.v18.common.IncomeRangeInfo value) {
if (incomeRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncomeRangesIsMutable();
incomeRanges_.add(index, value);
onChanged();
} else {
incomeRangesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public Builder addIncomeRanges(
com.google.ads.googleads.v18.common.IncomeRangeInfo.Builder builderForValue) {
if (incomeRangesBuilder_ == null) {
ensureIncomeRangesIsMutable();
incomeRanges_.add(builderForValue.build());
onChanged();
} else {
incomeRangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public Builder addIncomeRanges(
int index, com.google.ads.googleads.v18.common.IncomeRangeInfo.Builder builderForValue) {
if (incomeRangesBuilder_ == null) {
ensureIncomeRangesIsMutable();
incomeRanges_.add(index, builderForValue.build());
onChanged();
} else {
incomeRangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public Builder addAllIncomeRanges(
java.lang.Iterable extends com.google.ads.googleads.v18.common.IncomeRangeInfo> values) {
if (incomeRangesBuilder_ == null) {
ensureIncomeRangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, incomeRanges_);
onChanged();
} else {
incomeRangesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public Builder clearIncomeRanges() {
if (incomeRangesBuilder_ == null) {
incomeRanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
incomeRangesBuilder_.clear();
}
return this;
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public Builder removeIncomeRanges(int index) {
if (incomeRangesBuilder_ == null) {
ensureIncomeRangesIsMutable();
incomeRanges_.remove(index);
onChanged();
} else {
incomeRangesBuilder_.remove(index);
}
return this;
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public com.google.ads.googleads.v18.common.IncomeRangeInfo.Builder getIncomeRangesBuilder(
int index) {
return getIncomeRangesFieldBuilder().getBuilder(index);
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public com.google.ads.googleads.v18.common.IncomeRangeInfoOrBuilder getIncomeRangesOrBuilder(
int index) {
if (incomeRangesBuilder_ == null) {
return incomeRanges_.get(index); } else {
return incomeRangesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public java.util.List extends com.google.ads.googleads.v18.common.IncomeRangeInfoOrBuilder>
getIncomeRangesOrBuilderList() {
if (incomeRangesBuilder_ != null) {
return incomeRangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(incomeRanges_);
}
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public com.google.ads.googleads.v18.common.IncomeRangeInfo.Builder addIncomeRangesBuilder() {
return getIncomeRangesFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.IncomeRangeInfo.getDefaultInstance());
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public com.google.ads.googleads.v18.common.IncomeRangeInfo.Builder addIncomeRangesBuilder(
int index) {
return getIncomeRangesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.IncomeRangeInfo.getDefaultInstance());
}
/**
*
* Household income percentile ranges for the audience. If absent, the
* audience does not restrict by household income range.
*
*
* repeated .google.ads.googleads.v18.common.IncomeRangeInfo income_ranges = 6;
*/
public java.util.List
getIncomeRangesBuilderList() {
return getIncomeRangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.IncomeRangeInfo, com.google.ads.googleads.v18.common.IncomeRangeInfo.Builder, com.google.ads.googleads.v18.common.IncomeRangeInfoOrBuilder>
getIncomeRangesFieldBuilder() {
if (incomeRangesBuilder_ == null) {
incomeRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.IncomeRangeInfo, com.google.ads.googleads.v18.common.IncomeRangeInfo.Builder, com.google.ads.googleads.v18.common.IncomeRangeInfoOrBuilder>(
incomeRanges_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
incomeRanges_ = null;
}
return incomeRangesBuilder_;
}
private java.util.List dynamicLineups_ =
java.util.Collections.emptyList();
private void ensureDynamicLineupsIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
dynamicLineups_ = new java.util.ArrayList(dynamicLineups_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup, com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.Builder, com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineupOrBuilder> dynamicLineupsBuilder_;
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public java.util.List getDynamicLineupsList() {
if (dynamicLineupsBuilder_ == null) {
return java.util.Collections.unmodifiableList(dynamicLineups_);
} else {
return dynamicLineupsBuilder_.getMessageList();
}
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public int getDynamicLineupsCount() {
if (dynamicLineupsBuilder_ == null) {
return dynamicLineups_.size();
} else {
return dynamicLineupsBuilder_.getCount();
}
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup getDynamicLineups(int index) {
if (dynamicLineupsBuilder_ == null) {
return dynamicLineups_.get(index);
} else {
return dynamicLineupsBuilder_.getMessage(index);
}
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public Builder setDynamicLineups(
int index, com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup value) {
if (dynamicLineupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDynamicLineupsIsMutable();
dynamicLineups_.set(index, value);
onChanged();
} else {
dynamicLineupsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public Builder setDynamicLineups(
int index, com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.Builder builderForValue) {
if (dynamicLineupsBuilder_ == null) {
ensureDynamicLineupsIsMutable();
dynamicLineups_.set(index, builderForValue.build());
onChanged();
} else {
dynamicLineupsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public Builder addDynamicLineups(com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup value) {
if (dynamicLineupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDynamicLineupsIsMutable();
dynamicLineups_.add(value);
onChanged();
} else {
dynamicLineupsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public Builder addDynamicLineups(
int index, com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup value) {
if (dynamicLineupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDynamicLineupsIsMutable();
dynamicLineups_.add(index, value);
onChanged();
} else {
dynamicLineupsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public Builder addDynamicLineups(
com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.Builder builderForValue) {
if (dynamicLineupsBuilder_ == null) {
ensureDynamicLineupsIsMutable();
dynamicLineups_.add(builderForValue.build());
onChanged();
} else {
dynamicLineupsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public Builder addDynamicLineups(
int index, com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.Builder builderForValue) {
if (dynamicLineupsBuilder_ == null) {
ensureDynamicLineupsIsMutable();
dynamicLineups_.add(index, builderForValue.build());
onChanged();
} else {
dynamicLineupsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public Builder addAllDynamicLineups(
java.lang.Iterable extends com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup> values) {
if (dynamicLineupsBuilder_ == null) {
ensureDynamicLineupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dynamicLineups_);
onChanged();
} else {
dynamicLineupsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public Builder clearDynamicLineups() {
if (dynamicLineupsBuilder_ == null) {
dynamicLineups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
dynamicLineupsBuilder_.clear();
}
return this;
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public Builder removeDynamicLineups(int index) {
if (dynamicLineupsBuilder_ == null) {
ensureDynamicLineupsIsMutable();
dynamicLineups_.remove(index);
onChanged();
} else {
dynamicLineupsBuilder_.remove(index);
}
return this;
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.Builder getDynamicLineupsBuilder(
int index) {
return getDynamicLineupsFieldBuilder().getBuilder(index);
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineupOrBuilder getDynamicLineupsOrBuilder(
int index) {
if (dynamicLineupsBuilder_ == null) {
return dynamicLineups_.get(index); } else {
return dynamicLineupsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public java.util.List extends com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineupOrBuilder>
getDynamicLineupsOrBuilderList() {
if (dynamicLineupsBuilder_ != null) {
return dynamicLineupsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dynamicLineups_);
}
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.Builder addDynamicLineupsBuilder() {
return getDynamicLineupsFieldBuilder().addBuilder(
com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.getDefaultInstance());
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.Builder addDynamicLineupsBuilder(
int index) {
return getDynamicLineupsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.getDefaultInstance());
}
/**
*
* Dynamic lineups representing the YouTube content viewed by the audience.
*
*
* repeated .google.ads.googleads.v18.services.AudienceInsightsDynamicLineup dynamic_lineups = 7;
*/
public java.util.List
getDynamicLineupsBuilderList() {
return getDynamicLineupsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup, com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.Builder, com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineupOrBuilder>
getDynamicLineupsFieldBuilder() {
if (dynamicLineupsBuilder_ == null) {
dynamicLineupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup, com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineup.Builder, com.google.ads.googleads.v18.services.AudienceInsightsDynamicLineupOrBuilder>(
dynamicLineups_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
dynamicLineups_ = null;
}
return dynamicLineupsBuilder_;
}
private java.util.List topicAudienceCombinations_ =
java.util.Collections.emptyList();
private void ensureTopicAudienceCombinationsIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
topicAudienceCombinations_ = new java.util.ArrayList(topicAudienceCombinations_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup, com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.Builder, com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroupOrBuilder> topicAudienceCombinationsBuilder_;
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public java.util.List getTopicAudienceCombinationsList() {
if (topicAudienceCombinationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(topicAudienceCombinations_);
} else {
return topicAudienceCombinationsBuilder_.getMessageList();
}
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public int getTopicAudienceCombinationsCount() {
if (topicAudienceCombinationsBuilder_ == null) {
return topicAudienceCombinations_.size();
} else {
return topicAudienceCombinationsBuilder_.getCount();
}
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup getTopicAudienceCombinations(int index) {
if (topicAudienceCombinationsBuilder_ == null) {
return topicAudienceCombinations_.get(index);
} else {
return topicAudienceCombinationsBuilder_.getMessage(index);
}
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public Builder setTopicAudienceCombinations(
int index, com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup value) {
if (topicAudienceCombinationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopicAudienceCombinationsIsMutable();
topicAudienceCombinations_.set(index, value);
onChanged();
} else {
topicAudienceCombinationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public Builder setTopicAudienceCombinations(
int index, com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.Builder builderForValue) {
if (topicAudienceCombinationsBuilder_ == null) {
ensureTopicAudienceCombinationsIsMutable();
topicAudienceCombinations_.set(index, builderForValue.build());
onChanged();
} else {
topicAudienceCombinationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public Builder addTopicAudienceCombinations(com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup value) {
if (topicAudienceCombinationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopicAudienceCombinationsIsMutable();
topicAudienceCombinations_.add(value);
onChanged();
} else {
topicAudienceCombinationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public Builder addTopicAudienceCombinations(
int index, com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup value) {
if (topicAudienceCombinationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopicAudienceCombinationsIsMutable();
topicAudienceCombinations_.add(index, value);
onChanged();
} else {
topicAudienceCombinationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public Builder addTopicAudienceCombinations(
com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.Builder builderForValue) {
if (topicAudienceCombinationsBuilder_ == null) {
ensureTopicAudienceCombinationsIsMutable();
topicAudienceCombinations_.add(builderForValue.build());
onChanged();
} else {
topicAudienceCombinationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public Builder addTopicAudienceCombinations(
int index, com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.Builder builderForValue) {
if (topicAudienceCombinationsBuilder_ == null) {
ensureTopicAudienceCombinationsIsMutable();
topicAudienceCombinations_.add(index, builderForValue.build());
onChanged();
} else {
topicAudienceCombinationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public Builder addAllTopicAudienceCombinations(
java.lang.Iterable extends com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup> values) {
if (topicAudienceCombinationsBuilder_ == null) {
ensureTopicAudienceCombinationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, topicAudienceCombinations_);
onChanged();
} else {
topicAudienceCombinationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public Builder clearTopicAudienceCombinations() {
if (topicAudienceCombinationsBuilder_ == null) {
topicAudienceCombinations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
topicAudienceCombinationsBuilder_.clear();
}
return this;
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public Builder removeTopicAudienceCombinations(int index) {
if (topicAudienceCombinationsBuilder_ == null) {
ensureTopicAudienceCombinationsIsMutable();
topicAudienceCombinations_.remove(index);
onChanged();
} else {
topicAudienceCombinationsBuilder_.remove(index);
}
return this;
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.Builder getTopicAudienceCombinationsBuilder(
int index) {
return getTopicAudienceCombinationsFieldBuilder().getBuilder(index);
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroupOrBuilder getTopicAudienceCombinationsOrBuilder(
int index) {
if (topicAudienceCombinationsBuilder_ == null) {
return topicAudienceCombinations_.get(index); } else {
return topicAudienceCombinationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public java.util.List extends com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroupOrBuilder>
getTopicAudienceCombinationsOrBuilderList() {
if (topicAudienceCombinationsBuilder_ != null) {
return topicAudienceCombinationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(topicAudienceCombinations_);
}
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.Builder addTopicAudienceCombinationsBuilder() {
return getTopicAudienceCombinationsFieldBuilder().addBuilder(
com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.getDefaultInstance());
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.Builder addTopicAudienceCombinationsBuilder(
int index) {
return getTopicAudienceCombinationsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.getDefaultInstance());
}
/**
*
* A combination of entity, category and user interest attributes defining the
* audience. The combination has a logical AND-of-ORs structure: Attributes
* within each InsightsAudienceAttributeGroup are combined with OR, and
* the combinations themselves are combined together with AND. For example,
* the expression (Entity OR Affinity) AND (In-Market OR Category) can be
* formed using two InsightsAudienceAttributeGroups with two Attributes
* each.
*
*
* repeated .google.ads.googleads.v18.services.InsightsAudienceAttributeGroup topic_audience_combinations = 8;
*/
public java.util.List
getTopicAudienceCombinationsBuilderList() {
return getTopicAudienceCombinationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup, com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.Builder, com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroupOrBuilder>
getTopicAudienceCombinationsFieldBuilder() {
if (topicAudienceCombinationsBuilder_ == null) {
topicAudienceCombinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup, com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroup.Builder, com.google.ads.googleads.v18.services.InsightsAudienceAttributeGroupOrBuilder>(
topicAudienceCombinations_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
topicAudienceCombinations_ = null;
}
return topicAudienceCombinationsBuilder_;
}
@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.v18.services.InsightsAudience)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.services.InsightsAudience)
private static final com.google.ads.googleads.v18.services.InsightsAudience DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.services.InsightsAudience();
}
public static com.google.ads.googleads.v18.services.InsightsAudience getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InsightsAudience 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.v18.services.InsightsAudience getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy