com.google.ads.googleads.v10.resources.CampaignCriterion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/resources/campaign_criterion.proto
package com.google.ads.googleads.v10.resources;
/**
*
* A campaign criterion.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.CampaignCriterion}
*/
public final class CampaignCriterion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.CampaignCriterion)
CampaignCriterionOrBuilder {
private static final long serialVersionUID = 0L;
// Use CampaignCriterion.newBuilder() to construct.
private CampaignCriterion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CampaignCriterion() {
resourceName_ = "";
campaign_ = "";
displayName_ = "";
type_ = 0;
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CampaignCriterion();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignCriterionProto.internal_static_google_ads_googleads_v10_resources_CampaignCriterion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignCriterionProto.internal_static_google_ads_googleads_v10_resources_CampaignCriterion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.CampaignCriterion.class, com.google.ads.googleads.v10.resources.CampaignCriterion.Builder.class);
}
private int bitField0_;
private int criterionCase_ = 0;
private java.lang.Object criterion_;
public enum CriterionCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
KEYWORD(8),
PLACEMENT(9),
MOBILE_APP_CATEGORY(10),
MOBILE_APPLICATION(11),
LOCATION(12),
DEVICE(13),
AD_SCHEDULE(15),
AGE_RANGE(16),
GENDER(17),
INCOME_RANGE(18),
PARENTAL_STATUS(19),
USER_LIST(22),
YOUTUBE_VIDEO(20),
YOUTUBE_CHANNEL(21),
PROXIMITY(23),
TOPIC(24),
LISTING_SCOPE(25),
LANGUAGE(26),
IP_BLOCK(27),
CONTENT_LABEL(28),
CARRIER(29),
USER_INTEREST(30),
WEBPAGE(31),
OPERATING_SYSTEM_VERSION(32),
MOBILE_DEVICE(33),
LOCATION_GROUP(34),
CUSTOM_AFFINITY(36),
CUSTOM_AUDIENCE(41),
COMBINED_AUDIENCE(42),
KEYWORD_THEME(45),
CRITERION_NOT_SET(0);
private final int value;
private CriterionCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CriterionCase valueOf(int value) {
return forNumber(value);
}
public static CriterionCase forNumber(int value) {
switch (value) {
case 8: return KEYWORD;
case 9: return PLACEMENT;
case 10: return MOBILE_APP_CATEGORY;
case 11: return MOBILE_APPLICATION;
case 12: return LOCATION;
case 13: return DEVICE;
case 15: return AD_SCHEDULE;
case 16: return AGE_RANGE;
case 17: return GENDER;
case 18: return INCOME_RANGE;
case 19: return PARENTAL_STATUS;
case 22: return USER_LIST;
case 20: return YOUTUBE_VIDEO;
case 21: return YOUTUBE_CHANNEL;
case 23: return PROXIMITY;
case 24: return TOPIC;
case 25: return LISTING_SCOPE;
case 26: return LANGUAGE;
case 27: return IP_BLOCK;
case 28: return CONTENT_LABEL;
case 29: return CARRIER;
case 30: return USER_INTEREST;
case 31: return WEBPAGE;
case 32: return OPERATING_SYSTEM_VERSION;
case 33: return MOBILE_DEVICE;
case 34: return LOCATION_GROUP;
case 36: return CUSTOM_AFFINITY;
case 41: return CUSTOM_AUDIENCE;
case 42: return COMBINED_AUDIENCE;
case 45: return KEYWORD_THEME;
case 0: return CRITERION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public CriterionCase
getCriterionCase() {
return CriterionCase.forNumber(
criterionCase_);
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceName_;
/**
*
* Immutable. The resource name of the campaign criterion.
* Campaign criterion resource names have the form:
* `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
}
}
/**
*
* Immutable. The resource name of the campaign criterion.
* Campaign criterion resource names have the form:
* `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CAMPAIGN_FIELD_NUMBER = 37;
private volatile java.lang.Object campaign_;
/**
*
* Immutable. The campaign to which the criterion belongs.
*
*
* optional string campaign = 37 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the campaign field is set.
*/
@java.lang.Override
public boolean hasCampaign() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Immutable. The campaign to which the criterion belongs.
*
*
* optional string campaign = 37 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The campaign.
*/
@java.lang.Override
public java.lang.String getCampaign() {
java.lang.Object ref = campaign_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
campaign_ = s;
return s;
}
}
/**
*
* Immutable. The campaign to which the criterion belongs.
*
*
* optional string campaign = 37 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for campaign.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCampaignBytes() {
java.lang.Object ref = campaign_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaign_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CRITERION_ID_FIELD_NUMBER = 38;
private long criterionId_;
/**
*
* Output only. The ID of the criterion.
* This field is ignored during mutate.
*
*
* optional int64 criterion_id = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the criterionId field is set.
*/
@java.lang.Override
public boolean hasCriterionId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The ID of the criterion.
* This field is ignored during mutate.
*
*
* optional int64 criterion_id = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The criterionId.
*/
@java.lang.Override
public long getCriterionId() {
return criterionId_;
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 43;
private volatile java.lang.Object displayName_;
/**
*
* Output only. The display name of the criterion.
* This field is ignored for mutates.
*
*
* string display_name = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
}
}
/**
*
* Output only. The display name of the criterion.
* This field is ignored for mutates.
*
*
* string display_name = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BID_MODIFIER_FIELD_NUMBER = 39;
private float bidModifier_;
/**
*
* The modifier for the bids when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
* Use 0 to opt out of a Device type.
*
*
* optional float bid_modifier = 39;
* @return Whether the bidModifier field is set.
*/
@java.lang.Override
public boolean hasBidModifier() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The modifier for the bids when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
* Use 0 to opt out of a Device type.
*
*
* optional float bid_modifier = 39;
* @return The bidModifier.
*/
@java.lang.Override
public float getBidModifier() {
return bidModifier_;
}
public static final int NEGATIVE_FIELD_NUMBER = 40;
private boolean negative_;
/**
*
* Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
*
*
* optional bool negative = 40 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the negative field is set.
*/
@java.lang.Override
public boolean hasNegative() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
*
*
* optional bool negative = 40 [(.google.api.field_behavior) = IMMUTABLE];
* @return The negative.
*/
@java.lang.Override
public boolean getNegative() {
return negative_;
}
public static final int TYPE_FIELD_NUMBER = 6;
private int type_;
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The type.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType getType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType result = com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType.valueOf(type_);
return result == null ? com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType.UNRECOGNIZED : result;
}
public static final int STATUS_FIELD_NUMBER = 35;
private int status_;
/**
*
* The status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35;
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus result = com.google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus.UNRECOGNIZED : result;
}
public static final int KEYWORD_FIELD_NUMBER = 8;
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the keyword field is set.
*/
@java.lang.Override
public boolean hasKeyword() {
return criterionCase_ == 8;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The keyword.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordInfo getKeyword() {
if (criterionCase_ == 8) {
return (com.google.ads.googleads.v10.common.KeywordInfo) criterion_;
}
return com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance();
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getKeywordOrBuilder() {
if (criterionCase_ == 8) {
return (com.google.ads.googleads.v10.common.KeywordInfo) criterion_;
}
return com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance();
}
public static final int PLACEMENT_FIELD_NUMBER = 9;
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the placement field is set.
*/
@java.lang.Override
public boolean hasPlacement() {
return criterionCase_ == 9;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return The placement.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PlacementInfo getPlacement() {
if (criterionCase_ == 9) {
return (com.google.ads.googleads.v10.common.PlacementInfo) criterion_;
}
return com.google.ads.googleads.v10.common.PlacementInfo.getDefaultInstance();
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PlacementInfoOrBuilder getPlacementOrBuilder() {
if (criterionCase_ == 9) {
return (com.google.ads.googleads.v10.common.PlacementInfo) criterion_;
}
return com.google.ads.googleads.v10.common.PlacementInfo.getDefaultInstance();
}
public static final int MOBILE_APP_CATEGORY_FIELD_NUMBER = 10;
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileAppCategory field is set.
*/
@java.lang.Override
public boolean hasMobileAppCategory() {
return criterionCase_ == 10;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileAppCategory.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileAppCategoryInfo getMobileAppCategory() {
if (criterionCase_ == 10) {
return (com.google.ads.googleads.v10.common.MobileAppCategoryInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileAppCategoryInfo.getDefaultInstance();
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() {
if (criterionCase_ == 10) {
return (com.google.ads.googleads.v10.common.MobileAppCategoryInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileAppCategoryInfo.getDefaultInstance();
}
public static final int MOBILE_APPLICATION_FIELD_NUMBER = 11;
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileApplication field is set.
*/
@java.lang.Override
public boolean hasMobileApplication() {
return criterionCase_ == 11;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileApplication.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileApplicationInfo getMobileApplication() {
if (criterionCase_ == 11) {
return (com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileApplicationInfo.getDefaultInstance();
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileApplicationInfoOrBuilder getMobileApplicationOrBuilder() {
if (criterionCase_ == 11) {
return (com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileApplicationInfo.getDefaultInstance();
}
public static final int LOCATION_FIELD_NUMBER = 12;
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the location field is set.
*/
@java.lang.Override
public boolean hasLocation() {
return criterionCase_ == 12;
}
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return The location.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LocationInfo getLocation() {
if (criterionCase_ == 12) {
return (com.google.ads.googleads.v10.common.LocationInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LocationInfo.getDefaultInstance();
}
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LocationInfoOrBuilder getLocationOrBuilder() {
if (criterionCase_ == 12) {
return (com.google.ads.googleads.v10.common.LocationInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LocationInfo.getDefaultInstance();
}
public static final int DEVICE_FIELD_NUMBER = 13;
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the device field is set.
*/
@java.lang.Override
public boolean hasDevice() {
return criterionCase_ == 13;
}
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @return The device.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.DeviceInfo getDevice() {
if (criterionCase_ == 13) {
return (com.google.ads.googleads.v10.common.DeviceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.DeviceInfo.getDefaultInstance();
}
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.DeviceInfoOrBuilder getDeviceOrBuilder() {
if (criterionCase_ == 13) {
return (com.google.ads.googleads.v10.common.DeviceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.DeviceInfo.getDefaultInstance();
}
public static final int AD_SCHEDULE_FIELD_NUMBER = 15;
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the adSchedule field is set.
*/
@java.lang.Override
public boolean hasAdSchedule() {
return criterionCase_ == 15;
}
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
* @return The adSchedule.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AdScheduleInfo getAdSchedule() {
if (criterionCase_ == 15) {
return (com.google.ads.googleads.v10.common.AdScheduleInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AdScheduleInfo.getDefaultInstance();
}
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder getAdScheduleOrBuilder() {
if (criterionCase_ == 15) {
return (com.google.ads.googleads.v10.common.AdScheduleInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AdScheduleInfo.getDefaultInstance();
}
public static final int AGE_RANGE_FIELD_NUMBER = 16;
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the ageRange field is set.
*/
@java.lang.Override
public boolean hasAgeRange() {
return criterionCase_ == 16;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
* @return The ageRange.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AgeRangeInfo getAgeRange() {
if (criterionCase_ == 16) {
return (com.google.ads.googleads.v10.common.AgeRangeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AgeRangeInfo.getDefaultInstance();
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AgeRangeInfoOrBuilder getAgeRangeOrBuilder() {
if (criterionCase_ == 16) {
return (com.google.ads.googleads.v10.common.AgeRangeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AgeRangeInfo.getDefaultInstance();
}
public static final int GENDER_FIELD_NUMBER = 17;
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the gender field is set.
*/
@java.lang.Override
public boolean hasGender() {
return criterionCase_ == 17;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
* @return The gender.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.GenderInfo getGender() {
if (criterionCase_ == 17) {
return (com.google.ads.googleads.v10.common.GenderInfo) criterion_;
}
return com.google.ads.googleads.v10.common.GenderInfo.getDefaultInstance();
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.GenderInfoOrBuilder getGenderOrBuilder() {
if (criterionCase_ == 17) {
return (com.google.ads.googleads.v10.common.GenderInfo) criterion_;
}
return com.google.ads.googleads.v10.common.GenderInfo.getDefaultInstance();
}
public static final int INCOME_RANGE_FIELD_NUMBER = 18;
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the incomeRange field is set.
*/
@java.lang.Override
public boolean hasIncomeRange() {
return criterionCase_ == 18;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
* @return The incomeRange.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.IncomeRangeInfo getIncomeRange() {
if (criterionCase_ == 18) {
return (com.google.ads.googleads.v10.common.IncomeRangeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.IncomeRangeInfo.getDefaultInstance();
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.IncomeRangeInfoOrBuilder getIncomeRangeOrBuilder() {
if (criterionCase_ == 18) {
return (com.google.ads.googleads.v10.common.IncomeRangeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.IncomeRangeInfo.getDefaultInstance();
}
public static final int PARENTAL_STATUS_FIELD_NUMBER = 19;
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the parentalStatus field is set.
*/
@java.lang.Override
public boolean hasParentalStatus() {
return criterionCase_ == 19;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
* @return The parentalStatus.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ParentalStatusInfo getParentalStatus() {
if (criterionCase_ == 19) {
return (com.google.ads.googleads.v10.common.ParentalStatusInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ParentalStatusInfo.getDefaultInstance();
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ParentalStatusInfoOrBuilder getParentalStatusOrBuilder() {
if (criterionCase_ == 19) {
return (com.google.ads.googleads.v10.common.ParentalStatusInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ParentalStatusInfo.getDefaultInstance();
}
public static final int USER_LIST_FIELD_NUMBER = 22;
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the userList field is set.
*/
@java.lang.Override
public boolean hasUserList() {
return criterionCase_ == 22;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @return The userList.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListInfo getUserList() {
if (criterionCase_ == 22) {
return (com.google.ads.googleads.v10.common.UserListInfo) criterion_;
}
return com.google.ads.googleads.v10.common.UserListInfo.getDefaultInstance();
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListInfoOrBuilder getUserListOrBuilder() {
if (criterionCase_ == 22) {
return (com.google.ads.googleads.v10.common.UserListInfo) criterion_;
}
return com.google.ads.googleads.v10.common.UserListInfo.getDefaultInstance();
}
public static final int YOUTUBE_VIDEO_FIELD_NUMBER = 20;
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeVideo field is set.
*/
@java.lang.Override
public boolean hasYoutubeVideo() {
return criterionCase_ == 20;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeVideo.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeVideoInfo getYoutubeVideo() {
if (criterionCase_ == 20) {
return (com.google.ads.googleads.v10.common.YouTubeVideoInfo) criterion_;
}
return com.google.ads.googleads.v10.common.YouTubeVideoInfo.getDefaultInstance();
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeVideoInfoOrBuilder getYoutubeVideoOrBuilder() {
if (criterionCase_ == 20) {
return (com.google.ads.googleads.v10.common.YouTubeVideoInfo) criterion_;
}
return com.google.ads.googleads.v10.common.YouTubeVideoInfo.getDefaultInstance();
}
public static final int YOUTUBE_CHANNEL_FIELD_NUMBER = 21;
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeChannel field is set.
*/
@java.lang.Override
public boolean hasYoutubeChannel() {
return criterionCase_ == 21;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeChannel.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeChannelInfo getYoutubeChannel() {
if (criterionCase_ == 21) {
return (com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.YouTubeChannelInfo.getDefaultInstance();
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() {
if (criterionCase_ == 21) {
return (com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.YouTubeChannelInfo.getDefaultInstance();
}
public static final int PROXIMITY_FIELD_NUMBER = 23;
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the proximity field is set.
*/
@java.lang.Override
public boolean hasProximity() {
return criterionCase_ == 23;
}
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
* @return The proximity.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ProximityInfo getProximity() {
if (criterionCase_ == 23) {
return (com.google.ads.googleads.v10.common.ProximityInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance();
}
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ProximityInfoOrBuilder getProximityOrBuilder() {
if (criterionCase_ == 23) {
return (com.google.ads.googleads.v10.common.ProximityInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance();
}
public static final int TOPIC_FIELD_NUMBER = 24;
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the topic field is set.
*/
@java.lang.Override
public boolean hasTopic() {
return criterionCase_ == 24;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
* @return The topic.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TopicInfo getTopic() {
if (criterionCase_ == 24) {
return (com.google.ads.googleads.v10.common.TopicInfo) criterion_;
}
return com.google.ads.googleads.v10.common.TopicInfo.getDefaultInstance();
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TopicInfoOrBuilder getTopicOrBuilder() {
if (criterionCase_ == 24) {
return (com.google.ads.googleads.v10.common.TopicInfo) criterion_;
}
return com.google.ads.googleads.v10.common.TopicInfo.getDefaultInstance();
}
public static final int LISTING_SCOPE_FIELD_NUMBER = 25;
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the listingScope field is set.
*/
@java.lang.Override
public boolean hasListingScope() {
return criterionCase_ == 25;
}
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
* @return The listingScope.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ListingScopeInfo getListingScope() {
if (criterionCase_ == 25) {
return (com.google.ads.googleads.v10.common.ListingScopeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ListingScopeInfo.getDefaultInstance();
}
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ListingScopeInfoOrBuilder getListingScopeOrBuilder() {
if (criterionCase_ == 25) {
return (com.google.ads.googleads.v10.common.ListingScopeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ListingScopeInfo.getDefaultInstance();
}
public static final int LANGUAGE_FIELD_NUMBER = 26;
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the language field is set.
*/
@java.lang.Override
public boolean hasLanguage() {
return criterionCase_ == 26;
}
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
* @return The language.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LanguageInfo getLanguage() {
if (criterionCase_ == 26) {
return (com.google.ads.googleads.v10.common.LanguageInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LanguageInfo.getDefaultInstance();
}
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LanguageInfoOrBuilder getLanguageOrBuilder() {
if (criterionCase_ == 26) {
return (com.google.ads.googleads.v10.common.LanguageInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LanguageInfo.getDefaultInstance();
}
public static final int IP_BLOCK_FIELD_NUMBER = 27;
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the ipBlock field is set.
*/
@java.lang.Override
public boolean hasIpBlock() {
return criterionCase_ == 27;
}
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
* @return The ipBlock.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.IpBlockInfo getIpBlock() {
if (criterionCase_ == 27) {
return (com.google.ads.googleads.v10.common.IpBlockInfo) criterion_;
}
return com.google.ads.googleads.v10.common.IpBlockInfo.getDefaultInstance();
}
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.IpBlockInfoOrBuilder getIpBlockOrBuilder() {
if (criterionCase_ == 27) {
return (com.google.ads.googleads.v10.common.IpBlockInfo) criterion_;
}
return com.google.ads.googleads.v10.common.IpBlockInfo.getDefaultInstance();
}
public static final int CONTENT_LABEL_FIELD_NUMBER = 28;
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the contentLabel field is set.
*/
@java.lang.Override
public boolean hasContentLabel() {
return criterionCase_ == 28;
}
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
* @return The contentLabel.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ContentLabelInfo getContentLabel() {
if (criterionCase_ == 28) {
return (com.google.ads.googleads.v10.common.ContentLabelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ContentLabelInfo.getDefaultInstance();
}
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ContentLabelInfoOrBuilder getContentLabelOrBuilder() {
if (criterionCase_ == 28) {
return (com.google.ads.googleads.v10.common.ContentLabelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ContentLabelInfo.getDefaultInstance();
}
public static final int CARRIER_FIELD_NUMBER = 29;
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the carrier field is set.
*/
@java.lang.Override
public boolean hasCarrier() {
return criterionCase_ == 29;
}
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
* @return The carrier.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CarrierInfo getCarrier() {
if (criterionCase_ == 29) {
return (com.google.ads.googleads.v10.common.CarrierInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CarrierInfo.getDefaultInstance();
}
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CarrierInfoOrBuilder getCarrierOrBuilder() {
if (criterionCase_ == 29) {
return (com.google.ads.googleads.v10.common.CarrierInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CarrierInfo.getDefaultInstance();
}
public static final int USER_INTEREST_FIELD_NUMBER = 30;
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the userInterest field is set.
*/
@java.lang.Override
public boolean hasUserInterest() {
return criterionCase_ == 30;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
* @return The userInterest.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserInterestInfo getUserInterest() {
if (criterionCase_ == 30) {
return (com.google.ads.googleads.v10.common.UserInterestInfo) criterion_;
}
return com.google.ads.googleads.v10.common.UserInterestInfo.getDefaultInstance();
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserInterestInfoOrBuilder getUserInterestOrBuilder() {
if (criterionCase_ == 30) {
return (com.google.ads.googleads.v10.common.UserInterestInfo) criterion_;
}
return com.google.ads.googleads.v10.common.UserInterestInfo.getDefaultInstance();
}
public static final int WEBPAGE_FIELD_NUMBER = 31;
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the webpage field is set.
*/
@java.lang.Override
public boolean hasWebpage() {
return criterionCase_ == 31;
}
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
* @return The webpage.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.WebpageInfo getWebpage() {
if (criterionCase_ == 31) {
return (com.google.ads.googleads.v10.common.WebpageInfo) criterion_;
}
return com.google.ads.googleads.v10.common.WebpageInfo.getDefaultInstance();
}
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.WebpageInfoOrBuilder getWebpageOrBuilder() {
if (criterionCase_ == 31) {
return (com.google.ads.googleads.v10.common.WebpageInfo) criterion_;
}
return com.google.ads.googleads.v10.common.WebpageInfo.getDefaultInstance();
}
public static final int OPERATING_SYSTEM_VERSION_FIELD_NUMBER = 32;
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the operatingSystemVersion field is set.
*/
@java.lang.Override
public boolean hasOperatingSystemVersion() {
return criterionCase_ == 32;
}
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
* @return The operatingSystemVersion.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.OperatingSystemVersionInfo getOperatingSystemVersion() {
if (criterionCase_ == 32) {
return (com.google.ads.googleads.v10.common.OperatingSystemVersionInfo) criterion_;
}
return com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.getDefaultInstance();
}
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.OperatingSystemVersionInfoOrBuilder getOperatingSystemVersionOrBuilder() {
if (criterionCase_ == 32) {
return (com.google.ads.googleads.v10.common.OperatingSystemVersionInfo) criterion_;
}
return com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.getDefaultInstance();
}
public static final int MOBILE_DEVICE_FIELD_NUMBER = 33;
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileDevice field is set.
*/
@java.lang.Override
public boolean hasMobileDevice() {
return criterionCase_ == 33;
}
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileDevice.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileDeviceInfo getMobileDevice() {
if (criterionCase_ == 33) {
return (com.google.ads.googleads.v10.common.MobileDeviceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileDeviceInfo.getDefaultInstance();
}
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileDeviceInfoOrBuilder getMobileDeviceOrBuilder() {
if (criterionCase_ == 33) {
return (com.google.ads.googleads.v10.common.MobileDeviceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileDeviceInfo.getDefaultInstance();
}
public static final int LOCATION_GROUP_FIELD_NUMBER = 34;
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the locationGroup field is set.
*/
@java.lang.Override
public boolean hasLocationGroup() {
return criterionCase_ == 34;
}
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
* @return The locationGroup.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LocationGroupInfo getLocationGroup() {
if (criterionCase_ == 34) {
return (com.google.ads.googleads.v10.common.LocationGroupInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LocationGroupInfo.getDefaultInstance();
}
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LocationGroupInfoOrBuilder getLocationGroupOrBuilder() {
if (criterionCase_ == 34) {
return (com.google.ads.googleads.v10.common.LocationGroupInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LocationGroupInfo.getDefaultInstance();
}
public static final int CUSTOM_AFFINITY_FIELD_NUMBER = 36;
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the customAffinity field is set.
*/
@java.lang.Override
public boolean hasCustomAffinity() {
return criterionCase_ == 36;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
* @return The customAffinity.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAffinityInfo getCustomAffinity() {
if (criterionCase_ == 36) {
return (com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomAffinityInfo.getDefaultInstance();
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAffinityInfoOrBuilder getCustomAffinityOrBuilder() {
if (criterionCase_ == 36) {
return (com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomAffinityInfo.getDefaultInstance();
}
public static final int CUSTOM_AUDIENCE_FIELD_NUMBER = 41;
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the customAudience field is set.
*/
@java.lang.Override
public boolean hasCustomAudience() {
return criterionCase_ == 41;
}
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
* @return The customAudience.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAudienceInfo getCustomAudience() {
if (criterionCase_ == 41) {
return (com.google.ads.googleads.v10.common.CustomAudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomAudienceInfo.getDefaultInstance();
}
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAudienceInfoOrBuilder getCustomAudienceOrBuilder() {
if (criterionCase_ == 41) {
return (com.google.ads.googleads.v10.common.CustomAudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomAudienceInfo.getDefaultInstance();
}
public static final int COMBINED_AUDIENCE_FIELD_NUMBER = 42;
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the combinedAudience field is set.
*/
@java.lang.Override
public boolean hasCombinedAudience() {
return criterionCase_ == 42;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
* @return The combinedAudience.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CombinedAudienceInfo getCombinedAudience() {
if (criterionCase_ == 42) {
return (com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CombinedAudienceInfo.getDefaultInstance();
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CombinedAudienceInfoOrBuilder getCombinedAudienceOrBuilder() {
if (criterionCase_ == 42) {
return (com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CombinedAudienceInfo.getDefaultInstance();
}
public static final int KEYWORD_THEME_FIELD_NUMBER = 45;
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the keywordTheme field is set.
*/
@java.lang.Override
public boolean hasKeywordTheme() {
return criterionCase_ == 45;
}
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
* @return The keywordTheme.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordThemeInfo getKeywordTheme() {
if (criterionCase_ == 45) {
return (com.google.ads.googleads.v10.common.KeywordThemeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.KeywordThemeInfo.getDefaultInstance();
}
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder getKeywordThemeOrBuilder() {
if (criterionCase_ == 45) {
return (com.google.ads.googleads.v10.common.KeywordThemeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.KeywordThemeInfo.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (type_ != com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType.UNSPECIFIED.getNumber()) {
output.writeEnum(6, type_);
}
if (criterionCase_ == 8) {
output.writeMessage(8, (com.google.ads.googleads.v10.common.KeywordInfo) criterion_);
}
if (criterionCase_ == 9) {
output.writeMessage(9, (com.google.ads.googleads.v10.common.PlacementInfo) criterion_);
}
if (criterionCase_ == 10) {
output.writeMessage(10, (com.google.ads.googleads.v10.common.MobileAppCategoryInfo) criterion_);
}
if (criterionCase_ == 11) {
output.writeMessage(11, (com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_);
}
if (criterionCase_ == 12) {
output.writeMessage(12, (com.google.ads.googleads.v10.common.LocationInfo) criterion_);
}
if (criterionCase_ == 13) {
output.writeMessage(13, (com.google.ads.googleads.v10.common.DeviceInfo) criterion_);
}
if (criterionCase_ == 15) {
output.writeMessage(15, (com.google.ads.googleads.v10.common.AdScheduleInfo) criterion_);
}
if (criterionCase_ == 16) {
output.writeMessage(16, (com.google.ads.googleads.v10.common.AgeRangeInfo) criterion_);
}
if (criterionCase_ == 17) {
output.writeMessage(17, (com.google.ads.googleads.v10.common.GenderInfo) criterion_);
}
if (criterionCase_ == 18) {
output.writeMessage(18, (com.google.ads.googleads.v10.common.IncomeRangeInfo) criterion_);
}
if (criterionCase_ == 19) {
output.writeMessage(19, (com.google.ads.googleads.v10.common.ParentalStatusInfo) criterion_);
}
if (criterionCase_ == 20) {
output.writeMessage(20, (com.google.ads.googleads.v10.common.YouTubeVideoInfo) criterion_);
}
if (criterionCase_ == 21) {
output.writeMessage(21, (com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_);
}
if (criterionCase_ == 22) {
output.writeMessage(22, (com.google.ads.googleads.v10.common.UserListInfo) criterion_);
}
if (criterionCase_ == 23) {
output.writeMessage(23, (com.google.ads.googleads.v10.common.ProximityInfo) criterion_);
}
if (criterionCase_ == 24) {
output.writeMessage(24, (com.google.ads.googleads.v10.common.TopicInfo) criterion_);
}
if (criterionCase_ == 25) {
output.writeMessage(25, (com.google.ads.googleads.v10.common.ListingScopeInfo) criterion_);
}
if (criterionCase_ == 26) {
output.writeMessage(26, (com.google.ads.googleads.v10.common.LanguageInfo) criterion_);
}
if (criterionCase_ == 27) {
output.writeMessage(27, (com.google.ads.googleads.v10.common.IpBlockInfo) criterion_);
}
if (criterionCase_ == 28) {
output.writeMessage(28, (com.google.ads.googleads.v10.common.ContentLabelInfo) criterion_);
}
if (criterionCase_ == 29) {
output.writeMessage(29, (com.google.ads.googleads.v10.common.CarrierInfo) criterion_);
}
if (criterionCase_ == 30) {
output.writeMessage(30, (com.google.ads.googleads.v10.common.UserInterestInfo) criterion_);
}
if (criterionCase_ == 31) {
output.writeMessage(31, (com.google.ads.googleads.v10.common.WebpageInfo) criterion_);
}
if (criterionCase_ == 32) {
output.writeMessage(32, (com.google.ads.googleads.v10.common.OperatingSystemVersionInfo) criterion_);
}
if (criterionCase_ == 33) {
output.writeMessage(33, (com.google.ads.googleads.v10.common.MobileDeviceInfo) criterion_);
}
if (criterionCase_ == 34) {
output.writeMessage(34, (com.google.ads.googleads.v10.common.LocationGroupInfo) criterion_);
}
if (status_ != com.google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(35, status_);
}
if (criterionCase_ == 36) {
output.writeMessage(36, (com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 37, campaign_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(38, criterionId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeFloat(39, bidModifier_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(40, negative_);
}
if (criterionCase_ == 41) {
output.writeMessage(41, (com.google.ads.googleads.v10.common.CustomAudienceInfo) criterion_);
}
if (criterionCase_ == 42) {
output.writeMessage(42, (com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 43, displayName_);
}
if (criterionCase_ == 45) {
output.writeMessage(45, (com.google.ads.googleads.v10.common.KeywordThemeInfo) criterion_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (type_ != com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, type_);
}
if (criterionCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.google.ads.googleads.v10.common.KeywordInfo) criterion_);
}
if (criterionCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (com.google.ads.googleads.v10.common.PlacementInfo) criterion_);
}
if (criterionCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (com.google.ads.googleads.v10.common.MobileAppCategoryInfo) criterion_);
}
if (criterionCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_);
}
if (criterionCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (com.google.ads.googleads.v10.common.LocationInfo) criterion_);
}
if (criterionCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (com.google.ads.googleads.v10.common.DeviceInfo) criterion_);
}
if (criterionCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (com.google.ads.googleads.v10.common.AdScheduleInfo) criterion_);
}
if (criterionCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, (com.google.ads.googleads.v10.common.AgeRangeInfo) criterion_);
}
if (criterionCase_ == 17) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, (com.google.ads.googleads.v10.common.GenderInfo) criterion_);
}
if (criterionCase_ == 18) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, (com.google.ads.googleads.v10.common.IncomeRangeInfo) criterion_);
}
if (criterionCase_ == 19) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, (com.google.ads.googleads.v10.common.ParentalStatusInfo) criterion_);
}
if (criterionCase_ == 20) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, (com.google.ads.googleads.v10.common.YouTubeVideoInfo) criterion_);
}
if (criterionCase_ == 21) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, (com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_);
}
if (criterionCase_ == 22) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, (com.google.ads.googleads.v10.common.UserListInfo) criterion_);
}
if (criterionCase_ == 23) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, (com.google.ads.googleads.v10.common.ProximityInfo) criterion_);
}
if (criterionCase_ == 24) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, (com.google.ads.googleads.v10.common.TopicInfo) criterion_);
}
if (criterionCase_ == 25) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, (com.google.ads.googleads.v10.common.ListingScopeInfo) criterion_);
}
if (criterionCase_ == 26) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, (com.google.ads.googleads.v10.common.LanguageInfo) criterion_);
}
if (criterionCase_ == 27) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(27, (com.google.ads.googleads.v10.common.IpBlockInfo) criterion_);
}
if (criterionCase_ == 28) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(28, (com.google.ads.googleads.v10.common.ContentLabelInfo) criterion_);
}
if (criterionCase_ == 29) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(29, (com.google.ads.googleads.v10.common.CarrierInfo) criterion_);
}
if (criterionCase_ == 30) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(30, (com.google.ads.googleads.v10.common.UserInterestInfo) criterion_);
}
if (criterionCase_ == 31) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, (com.google.ads.googleads.v10.common.WebpageInfo) criterion_);
}
if (criterionCase_ == 32) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(32, (com.google.ads.googleads.v10.common.OperatingSystemVersionInfo) criterion_);
}
if (criterionCase_ == 33) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(33, (com.google.ads.googleads.v10.common.MobileDeviceInfo) criterion_);
}
if (criterionCase_ == 34) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(34, (com.google.ads.googleads.v10.common.LocationGroupInfo) criterion_);
}
if (status_ != com.google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(35, status_);
}
if (criterionCase_ == 36) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(36, (com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, campaign_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(38, criterionId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(39, bidModifier_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(40, negative_);
}
if (criterionCase_ == 41) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(41, (com.google.ads.googleads.v10.common.CustomAudienceInfo) criterion_);
}
if (criterionCase_ == 42) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(42, (com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(43, displayName_);
}
if (criterionCase_ == 45) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(45, (com.google.ads.googleads.v10.common.KeywordThemeInfo) criterion_);
}
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.v10.resources.CampaignCriterion)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.CampaignCriterion other = (com.google.ads.googleads.v10.resources.CampaignCriterion) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasCampaign() != other.hasCampaign()) return false;
if (hasCampaign()) {
if (!getCampaign()
.equals(other.getCampaign())) return false;
}
if (hasCriterionId() != other.hasCriterionId()) return false;
if (hasCriterionId()) {
if (getCriterionId()
!= other.getCriterionId()) return false;
}
if (!getDisplayName()
.equals(other.getDisplayName())) return false;
if (hasBidModifier() != other.hasBidModifier()) return false;
if (hasBidModifier()) {
if (java.lang.Float.floatToIntBits(getBidModifier())
!= java.lang.Float.floatToIntBits(
other.getBidModifier())) return false;
}
if (hasNegative() != other.hasNegative()) return false;
if (hasNegative()) {
if (getNegative()
!= other.getNegative()) return false;
}
if (type_ != other.type_) return false;
if (status_ != other.status_) return false;
if (!getCriterionCase().equals(other.getCriterionCase())) return false;
switch (criterionCase_) {
case 8:
if (!getKeyword()
.equals(other.getKeyword())) return false;
break;
case 9:
if (!getPlacement()
.equals(other.getPlacement())) return false;
break;
case 10:
if (!getMobileAppCategory()
.equals(other.getMobileAppCategory())) return false;
break;
case 11:
if (!getMobileApplication()
.equals(other.getMobileApplication())) return false;
break;
case 12:
if (!getLocation()
.equals(other.getLocation())) return false;
break;
case 13:
if (!getDevice()
.equals(other.getDevice())) return false;
break;
case 15:
if (!getAdSchedule()
.equals(other.getAdSchedule())) return false;
break;
case 16:
if (!getAgeRange()
.equals(other.getAgeRange())) return false;
break;
case 17:
if (!getGender()
.equals(other.getGender())) return false;
break;
case 18:
if (!getIncomeRange()
.equals(other.getIncomeRange())) return false;
break;
case 19:
if (!getParentalStatus()
.equals(other.getParentalStatus())) return false;
break;
case 22:
if (!getUserList()
.equals(other.getUserList())) return false;
break;
case 20:
if (!getYoutubeVideo()
.equals(other.getYoutubeVideo())) return false;
break;
case 21:
if (!getYoutubeChannel()
.equals(other.getYoutubeChannel())) return false;
break;
case 23:
if (!getProximity()
.equals(other.getProximity())) return false;
break;
case 24:
if (!getTopic()
.equals(other.getTopic())) return false;
break;
case 25:
if (!getListingScope()
.equals(other.getListingScope())) return false;
break;
case 26:
if (!getLanguage()
.equals(other.getLanguage())) return false;
break;
case 27:
if (!getIpBlock()
.equals(other.getIpBlock())) return false;
break;
case 28:
if (!getContentLabel()
.equals(other.getContentLabel())) return false;
break;
case 29:
if (!getCarrier()
.equals(other.getCarrier())) return false;
break;
case 30:
if (!getUserInterest()
.equals(other.getUserInterest())) return false;
break;
case 31:
if (!getWebpage()
.equals(other.getWebpage())) return false;
break;
case 32:
if (!getOperatingSystemVersion()
.equals(other.getOperatingSystemVersion())) return false;
break;
case 33:
if (!getMobileDevice()
.equals(other.getMobileDevice())) return false;
break;
case 34:
if (!getLocationGroup()
.equals(other.getLocationGroup())) return false;
break;
case 36:
if (!getCustomAffinity()
.equals(other.getCustomAffinity())) return false;
break;
case 41:
if (!getCustomAudience()
.equals(other.getCustomAudience())) return false;
break;
case 42:
if (!getCombinedAudience()
.equals(other.getCombinedAudience())) return false;
break;
case 45:
if (!getKeywordTheme()
.equals(other.getKeywordTheme())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
if (hasCampaign()) {
hash = (37 * hash) + CAMPAIGN_FIELD_NUMBER;
hash = (53 * hash) + getCampaign().hashCode();
}
if (hasCriterionId()) {
hash = (37 * hash) + CRITERION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCriterionId());
}
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
if (hasBidModifier()) {
hash = (37 * hash) + BID_MODIFIER_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getBidModifier());
}
if (hasNegative()) {
hash = (37 * hash) + NEGATIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNegative());
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
switch (criterionCase_) {
case 8:
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeyword().hashCode();
break;
case 9:
hash = (37 * hash) + PLACEMENT_FIELD_NUMBER;
hash = (53 * hash) + getPlacement().hashCode();
break;
case 10:
hash = (37 * hash) + MOBILE_APP_CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + getMobileAppCategory().hashCode();
break;
case 11:
hash = (37 * hash) + MOBILE_APPLICATION_FIELD_NUMBER;
hash = (53 * hash) + getMobileApplication().hashCode();
break;
case 12:
hash = (37 * hash) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocation().hashCode();
break;
case 13:
hash = (37 * hash) + DEVICE_FIELD_NUMBER;
hash = (53 * hash) + getDevice().hashCode();
break;
case 15:
hash = (37 * hash) + AD_SCHEDULE_FIELD_NUMBER;
hash = (53 * hash) + getAdSchedule().hashCode();
break;
case 16:
hash = (37 * hash) + AGE_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getAgeRange().hashCode();
break;
case 17:
hash = (37 * hash) + GENDER_FIELD_NUMBER;
hash = (53 * hash) + getGender().hashCode();
break;
case 18:
hash = (37 * hash) + INCOME_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getIncomeRange().hashCode();
break;
case 19:
hash = (37 * hash) + PARENTAL_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getParentalStatus().hashCode();
break;
case 22:
hash = (37 * hash) + USER_LIST_FIELD_NUMBER;
hash = (53 * hash) + getUserList().hashCode();
break;
case 20:
hash = (37 * hash) + YOUTUBE_VIDEO_FIELD_NUMBER;
hash = (53 * hash) + getYoutubeVideo().hashCode();
break;
case 21:
hash = (37 * hash) + YOUTUBE_CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getYoutubeChannel().hashCode();
break;
case 23:
hash = (37 * hash) + PROXIMITY_FIELD_NUMBER;
hash = (53 * hash) + getProximity().hashCode();
break;
case 24:
hash = (37 * hash) + TOPIC_FIELD_NUMBER;
hash = (53 * hash) + getTopic().hashCode();
break;
case 25:
hash = (37 * hash) + LISTING_SCOPE_FIELD_NUMBER;
hash = (53 * hash) + getListingScope().hashCode();
break;
case 26:
hash = (37 * hash) + LANGUAGE_FIELD_NUMBER;
hash = (53 * hash) + getLanguage().hashCode();
break;
case 27:
hash = (37 * hash) + IP_BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getIpBlock().hashCode();
break;
case 28:
hash = (37 * hash) + CONTENT_LABEL_FIELD_NUMBER;
hash = (53 * hash) + getContentLabel().hashCode();
break;
case 29:
hash = (37 * hash) + CARRIER_FIELD_NUMBER;
hash = (53 * hash) + getCarrier().hashCode();
break;
case 30:
hash = (37 * hash) + USER_INTEREST_FIELD_NUMBER;
hash = (53 * hash) + getUserInterest().hashCode();
break;
case 31:
hash = (37 * hash) + WEBPAGE_FIELD_NUMBER;
hash = (53 * hash) + getWebpage().hashCode();
break;
case 32:
hash = (37 * hash) + OPERATING_SYSTEM_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getOperatingSystemVersion().hashCode();
break;
case 33:
hash = (37 * hash) + MOBILE_DEVICE_FIELD_NUMBER;
hash = (53 * hash) + getMobileDevice().hashCode();
break;
case 34:
hash = (37 * hash) + LOCATION_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getLocationGroup().hashCode();
break;
case 36:
hash = (37 * hash) + CUSTOM_AFFINITY_FIELD_NUMBER;
hash = (53 * hash) + getCustomAffinity().hashCode();
break;
case 41:
hash = (37 * hash) + CUSTOM_AUDIENCE_FIELD_NUMBER;
hash = (53 * hash) + getCustomAudience().hashCode();
break;
case 42:
hash = (37 * hash) + COMBINED_AUDIENCE_FIELD_NUMBER;
hash = (53 * hash) + getCombinedAudience().hashCode();
break;
case 45:
hash = (37 * hash) + KEYWORD_THEME_FIELD_NUMBER;
hash = (53 * hash) + getKeywordTheme().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.CampaignCriterion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.CampaignCriterion 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.v10.resources.CampaignCriterion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.CampaignCriterion 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.v10.resources.CampaignCriterion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.CampaignCriterion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.resources.CampaignCriterion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.CampaignCriterion 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.v10.resources.CampaignCriterion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.CampaignCriterion 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.v10.resources.CampaignCriterion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.CampaignCriterion 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.v10.resources.CampaignCriterion 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 campaign criterion.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.CampaignCriterion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.CampaignCriterion)
com.google.ads.googleads.v10.resources.CampaignCriterionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.CampaignCriterionProto.internal_static_google_ads_googleads_v10_resources_CampaignCriterion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.CampaignCriterionProto.internal_static_google_ads_googleads_v10_resources_CampaignCriterion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.CampaignCriterion.class, com.google.ads.googleads.v10.resources.CampaignCriterion.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.CampaignCriterion.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceName_ = "";
campaign_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
criterionId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
displayName_ = "";
bidModifier_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
negative_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
type_ = 0;
status_ = 0;
if (keywordBuilder_ != null) {
keywordBuilder_.clear();
}
if (placementBuilder_ != null) {
placementBuilder_.clear();
}
if (mobileAppCategoryBuilder_ != null) {
mobileAppCategoryBuilder_.clear();
}
if (mobileApplicationBuilder_ != null) {
mobileApplicationBuilder_.clear();
}
if (locationBuilder_ != null) {
locationBuilder_.clear();
}
if (deviceBuilder_ != null) {
deviceBuilder_.clear();
}
if (adScheduleBuilder_ != null) {
adScheduleBuilder_.clear();
}
if (ageRangeBuilder_ != null) {
ageRangeBuilder_.clear();
}
if (genderBuilder_ != null) {
genderBuilder_.clear();
}
if (incomeRangeBuilder_ != null) {
incomeRangeBuilder_.clear();
}
if (parentalStatusBuilder_ != null) {
parentalStatusBuilder_.clear();
}
if (userListBuilder_ != null) {
userListBuilder_.clear();
}
if (youtubeVideoBuilder_ != null) {
youtubeVideoBuilder_.clear();
}
if (youtubeChannelBuilder_ != null) {
youtubeChannelBuilder_.clear();
}
if (proximityBuilder_ != null) {
proximityBuilder_.clear();
}
if (topicBuilder_ != null) {
topicBuilder_.clear();
}
if (listingScopeBuilder_ != null) {
listingScopeBuilder_.clear();
}
if (languageBuilder_ != null) {
languageBuilder_.clear();
}
if (ipBlockBuilder_ != null) {
ipBlockBuilder_.clear();
}
if (contentLabelBuilder_ != null) {
contentLabelBuilder_.clear();
}
if (carrierBuilder_ != null) {
carrierBuilder_.clear();
}
if (userInterestBuilder_ != null) {
userInterestBuilder_.clear();
}
if (webpageBuilder_ != null) {
webpageBuilder_.clear();
}
if (operatingSystemVersionBuilder_ != null) {
operatingSystemVersionBuilder_.clear();
}
if (mobileDeviceBuilder_ != null) {
mobileDeviceBuilder_.clear();
}
if (locationGroupBuilder_ != null) {
locationGroupBuilder_.clear();
}
if (customAffinityBuilder_ != null) {
customAffinityBuilder_.clear();
}
if (customAudienceBuilder_ != null) {
customAudienceBuilder_.clear();
}
if (combinedAudienceBuilder_ != null) {
combinedAudienceBuilder_.clear();
}
if (keywordThemeBuilder_ != null) {
keywordThemeBuilder_.clear();
}
criterionCase_ = 0;
criterion_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.CampaignCriterionProto.internal_static_google_ads_googleads_v10_resources_CampaignCriterion_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.CampaignCriterion getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.CampaignCriterion.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.CampaignCriterion build() {
com.google.ads.googleads.v10.resources.CampaignCriterion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.CampaignCriterion buildPartial() {
com.google.ads.googleads.v10.resources.CampaignCriterion result = new com.google.ads.googleads.v10.resources.CampaignCriterion(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.resourceName_ = resourceName_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.campaign_ = campaign_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.criterionId_ = criterionId_;
to_bitField0_ |= 0x00000002;
}
result.displayName_ = displayName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.bidModifier_ = bidModifier_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.negative_ = negative_;
to_bitField0_ |= 0x00000008;
}
result.type_ = type_;
result.status_ = status_;
if (criterionCase_ == 8) {
if (keywordBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = keywordBuilder_.build();
}
}
if (criterionCase_ == 9) {
if (placementBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = placementBuilder_.build();
}
}
if (criterionCase_ == 10) {
if (mobileAppCategoryBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = mobileAppCategoryBuilder_.build();
}
}
if (criterionCase_ == 11) {
if (mobileApplicationBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = mobileApplicationBuilder_.build();
}
}
if (criterionCase_ == 12) {
if (locationBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = locationBuilder_.build();
}
}
if (criterionCase_ == 13) {
if (deviceBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = deviceBuilder_.build();
}
}
if (criterionCase_ == 15) {
if (adScheduleBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = adScheduleBuilder_.build();
}
}
if (criterionCase_ == 16) {
if (ageRangeBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = ageRangeBuilder_.build();
}
}
if (criterionCase_ == 17) {
if (genderBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = genderBuilder_.build();
}
}
if (criterionCase_ == 18) {
if (incomeRangeBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = incomeRangeBuilder_.build();
}
}
if (criterionCase_ == 19) {
if (parentalStatusBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = parentalStatusBuilder_.build();
}
}
if (criterionCase_ == 22) {
if (userListBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = userListBuilder_.build();
}
}
if (criterionCase_ == 20) {
if (youtubeVideoBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = youtubeVideoBuilder_.build();
}
}
if (criterionCase_ == 21) {
if (youtubeChannelBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = youtubeChannelBuilder_.build();
}
}
if (criterionCase_ == 23) {
if (proximityBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = proximityBuilder_.build();
}
}
if (criterionCase_ == 24) {
if (topicBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = topicBuilder_.build();
}
}
if (criterionCase_ == 25) {
if (listingScopeBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = listingScopeBuilder_.build();
}
}
if (criterionCase_ == 26) {
if (languageBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = languageBuilder_.build();
}
}
if (criterionCase_ == 27) {
if (ipBlockBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = ipBlockBuilder_.build();
}
}
if (criterionCase_ == 28) {
if (contentLabelBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = contentLabelBuilder_.build();
}
}
if (criterionCase_ == 29) {
if (carrierBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = carrierBuilder_.build();
}
}
if (criterionCase_ == 30) {
if (userInterestBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = userInterestBuilder_.build();
}
}
if (criterionCase_ == 31) {
if (webpageBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = webpageBuilder_.build();
}
}
if (criterionCase_ == 32) {
if (operatingSystemVersionBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = operatingSystemVersionBuilder_.build();
}
}
if (criterionCase_ == 33) {
if (mobileDeviceBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = mobileDeviceBuilder_.build();
}
}
if (criterionCase_ == 34) {
if (locationGroupBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = locationGroupBuilder_.build();
}
}
if (criterionCase_ == 36) {
if (customAffinityBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = customAffinityBuilder_.build();
}
}
if (criterionCase_ == 41) {
if (customAudienceBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = customAudienceBuilder_.build();
}
}
if (criterionCase_ == 42) {
if (combinedAudienceBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = combinedAudienceBuilder_.build();
}
}
if (criterionCase_ == 45) {
if (keywordThemeBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = keywordThemeBuilder_.build();
}
}
result.bitField0_ = to_bitField0_;
result.criterionCase_ = criterionCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.resources.CampaignCriterion) {
return mergeFrom((com.google.ads.googleads.v10.resources.CampaignCriterion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.CampaignCriterion other) {
if (other == com.google.ads.googleads.v10.resources.CampaignCriterion.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
onChanged();
}
if (other.hasCampaign()) {
bitField0_ |= 0x00000001;
campaign_ = other.campaign_;
onChanged();
}
if (other.hasCriterionId()) {
setCriterionId(other.getCriterionId());
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
onChanged();
}
if (other.hasBidModifier()) {
setBidModifier(other.getBidModifier());
}
if (other.hasNegative()) {
setNegative(other.getNegative());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
switch (other.getCriterionCase()) {
case KEYWORD: {
mergeKeyword(other.getKeyword());
break;
}
case PLACEMENT: {
mergePlacement(other.getPlacement());
break;
}
case MOBILE_APP_CATEGORY: {
mergeMobileAppCategory(other.getMobileAppCategory());
break;
}
case MOBILE_APPLICATION: {
mergeMobileApplication(other.getMobileApplication());
break;
}
case LOCATION: {
mergeLocation(other.getLocation());
break;
}
case DEVICE: {
mergeDevice(other.getDevice());
break;
}
case AD_SCHEDULE: {
mergeAdSchedule(other.getAdSchedule());
break;
}
case AGE_RANGE: {
mergeAgeRange(other.getAgeRange());
break;
}
case GENDER: {
mergeGender(other.getGender());
break;
}
case INCOME_RANGE: {
mergeIncomeRange(other.getIncomeRange());
break;
}
case PARENTAL_STATUS: {
mergeParentalStatus(other.getParentalStatus());
break;
}
case USER_LIST: {
mergeUserList(other.getUserList());
break;
}
case YOUTUBE_VIDEO: {
mergeYoutubeVideo(other.getYoutubeVideo());
break;
}
case YOUTUBE_CHANNEL: {
mergeYoutubeChannel(other.getYoutubeChannel());
break;
}
case PROXIMITY: {
mergeProximity(other.getProximity());
break;
}
case TOPIC: {
mergeTopic(other.getTopic());
break;
}
case LISTING_SCOPE: {
mergeListingScope(other.getListingScope());
break;
}
case LANGUAGE: {
mergeLanguage(other.getLanguage());
break;
}
case IP_BLOCK: {
mergeIpBlock(other.getIpBlock());
break;
}
case CONTENT_LABEL: {
mergeContentLabel(other.getContentLabel());
break;
}
case CARRIER: {
mergeCarrier(other.getCarrier());
break;
}
case USER_INTEREST: {
mergeUserInterest(other.getUserInterest());
break;
}
case WEBPAGE: {
mergeWebpage(other.getWebpage());
break;
}
case OPERATING_SYSTEM_VERSION: {
mergeOperatingSystemVersion(other.getOperatingSystemVersion());
break;
}
case MOBILE_DEVICE: {
mergeMobileDevice(other.getMobileDevice());
break;
}
case LOCATION_GROUP: {
mergeLocationGroup(other.getLocationGroup());
break;
}
case CUSTOM_AFFINITY: {
mergeCustomAffinity(other.getCustomAffinity());
break;
}
case CUSTOM_AUDIENCE: {
mergeCustomAudience(other.getCustomAudience());
break;
}
case COMBINED_AUDIENCE: {
mergeCombinedAudience(other.getCombinedAudience());
break;
}
case KEYWORD_THEME: {
mergeKeywordTheme(other.getKeywordTheme());
break;
}
case CRITERION_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
resourceName_ = input.readStringRequireUtf8();
break;
} // case 10
case 48: {
type_ = input.readEnum();
break;
} // case 48
case 66: {
input.readMessage(
getKeywordFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getPlacementFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 9;
break;
} // case 74
case 82: {
input.readMessage(
getMobileAppCategoryFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 10;
break;
} // case 82
case 90: {
input.readMessage(
getMobileApplicationFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 11;
break;
} // case 90
case 98: {
input.readMessage(
getLocationFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 12;
break;
} // case 98
case 106: {
input.readMessage(
getDeviceFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 13;
break;
} // case 106
case 122: {
input.readMessage(
getAdScheduleFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 15;
break;
} // case 122
case 130: {
input.readMessage(
getAgeRangeFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 16;
break;
} // case 130
case 138: {
input.readMessage(
getGenderFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 17;
break;
} // case 138
case 146: {
input.readMessage(
getIncomeRangeFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 18;
break;
} // case 146
case 154: {
input.readMessage(
getParentalStatusFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 19;
break;
} // case 154
case 162: {
input.readMessage(
getYoutubeVideoFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 20;
break;
} // case 162
case 170: {
input.readMessage(
getYoutubeChannelFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 21;
break;
} // case 170
case 178: {
input.readMessage(
getUserListFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 22;
break;
} // case 178
case 186: {
input.readMessage(
getProximityFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 23;
break;
} // case 186
case 194: {
input.readMessage(
getTopicFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 24;
break;
} // case 194
case 202: {
input.readMessage(
getListingScopeFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 25;
break;
} // case 202
case 210: {
input.readMessage(
getLanguageFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 26;
break;
} // case 210
case 218: {
input.readMessage(
getIpBlockFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 27;
break;
} // case 218
case 226: {
input.readMessage(
getContentLabelFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 28;
break;
} // case 226
case 234: {
input.readMessage(
getCarrierFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 29;
break;
} // case 234
case 242: {
input.readMessage(
getUserInterestFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 30;
break;
} // case 242
case 250: {
input.readMessage(
getWebpageFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 31;
break;
} // case 250
case 258: {
input.readMessage(
getOperatingSystemVersionFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 32;
break;
} // case 258
case 266: {
input.readMessage(
getMobileDeviceFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 33;
break;
} // case 266
case 274: {
input.readMessage(
getLocationGroupFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 34;
break;
} // case 274
case 280: {
status_ = input.readEnum();
break;
} // case 280
case 290: {
input.readMessage(
getCustomAffinityFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 36;
break;
} // case 290
case 298: {
campaign_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 298
case 304: {
criterionId_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 304
case 317: {
bidModifier_ = input.readFloat();
bitField0_ |= 0x00000004;
break;
} // case 317
case 320: {
negative_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 320
case 330: {
input.readMessage(
getCustomAudienceFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 41;
break;
} // case 330
case 338: {
input.readMessage(
getCombinedAudienceFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 42;
break;
} // case 338
case 346: {
displayName_ = input.readStringRequireUtf8();
break;
} // case 346
case 362: {
input.readMessage(
getKeywordThemeFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 45;
break;
} // case 362
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 criterionCase_ = 0;
private java.lang.Object criterion_;
public CriterionCase
getCriterionCase() {
return CriterionCase.forNumber(
criterionCase_);
}
public Builder clearCriterion() {
criterionCase_ = 0;
criterion_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the campaign criterion.
* Campaign criterion resource names have the form:
* `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The resource name of the campaign criterion.
* Campaign criterion resource names have the form:
* `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The resource name of the campaign criterion.
* Campaign criterion resource names have the form:
* `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceName_ = value;
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the campaign criterion.
* Campaign criterion resource names have the form:
* `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the campaign criterion.
* Campaign criterion resource names have the form:
* `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceName_ = value;
onChanged();
return this;
}
private java.lang.Object campaign_ = "";
/**
*
* Immutable. The campaign to which the criterion belongs.
*
*
* optional string campaign = 37 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the campaign field is set.
*/
public boolean hasCampaign() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Immutable. The campaign to which the criterion belongs.
*
*
* optional string campaign = 37 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The campaign.
*/
public java.lang.String getCampaign() {
java.lang.Object ref = campaign_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
campaign_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The campaign to which the criterion belongs.
*
*
* optional string campaign = 37 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for campaign.
*/
public com.google.protobuf.ByteString
getCampaignBytes() {
java.lang.Object ref = campaign_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaign_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The campaign to which the criterion belongs.
*
*
* optional string campaign = 37 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The campaign to set.
* @return This builder for chaining.
*/
public Builder setCampaign(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
campaign_ = value;
onChanged();
return this;
}
/**
*
* Immutable. The campaign to which the criterion belongs.
*
*
* optional string campaign = 37 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearCampaign() {
bitField0_ = (bitField0_ & ~0x00000001);
campaign_ = getDefaultInstance().getCampaign();
onChanged();
return this;
}
/**
*
* Immutable. The campaign to which the criterion belongs.
*
*
* optional string campaign = 37 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for campaign to set.
* @return This builder for chaining.
*/
public Builder setCampaignBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
campaign_ = value;
onChanged();
return this;
}
private long criterionId_ ;
/**
*
* Output only. The ID of the criterion.
* This field is ignored during mutate.
*
*
* optional int64 criterion_id = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the criterionId field is set.
*/
@java.lang.Override
public boolean hasCriterionId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The ID of the criterion.
* This field is ignored during mutate.
*
*
* optional int64 criterion_id = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The criterionId.
*/
@java.lang.Override
public long getCriterionId() {
return criterionId_;
}
/**
*
* Output only. The ID of the criterion.
* This field is ignored during mutate.
*
*
* optional int64 criterion_id = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The criterionId to set.
* @return This builder for chaining.
*/
public Builder setCriterionId(long value) {
bitField0_ |= 0x00000002;
criterionId_ = value;
onChanged();
return this;
}
/**
*
* Output only. The ID of the criterion.
* This field is ignored during mutate.
*
*
* optional int64 criterion_id = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCriterionId() {
bitField0_ = (bitField0_ & ~0x00000002);
criterionId_ = 0L;
onChanged();
return this;
}
private java.lang.Object displayName_ = "";
/**
*
* Output only. The display name of the criterion.
* This field is ignored for mutates.
*
*
* string display_name = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The display name of the criterion.
* This field is ignored for mutates.
*
*
* string display_name = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString
getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The display name of the criterion.
* This field is ignored for mutates.
*
*
* string display_name = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
onChanged();
return this;
}
/**
*
* Output only. The display name of the criterion.
* This field is ignored for mutates.
*
*
* string display_name = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
onChanged();
return this;
}
/**
*
* Output only. The display name of the criterion.
* This field is ignored for mutates.
*
*
* string display_name = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
onChanged();
return this;
}
private float bidModifier_ ;
/**
*
* The modifier for the bids when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
* Use 0 to opt out of a Device type.
*
*
* optional float bid_modifier = 39;
* @return Whether the bidModifier field is set.
*/
@java.lang.Override
public boolean hasBidModifier() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The modifier for the bids when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
* Use 0 to opt out of a Device type.
*
*
* optional float bid_modifier = 39;
* @return The bidModifier.
*/
@java.lang.Override
public float getBidModifier() {
return bidModifier_;
}
/**
*
* The modifier for the bids when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
* Use 0 to opt out of a Device type.
*
*
* optional float bid_modifier = 39;
* @param value The bidModifier to set.
* @return This builder for chaining.
*/
public Builder setBidModifier(float value) {
bitField0_ |= 0x00000004;
bidModifier_ = value;
onChanged();
return this;
}
/**
*
* The modifier for the bids when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
* Use 0 to opt out of a Device type.
*
*
* optional float bid_modifier = 39;
* @return This builder for chaining.
*/
public Builder clearBidModifier() {
bitField0_ = (bitField0_ & ~0x00000004);
bidModifier_ = 0F;
onChanged();
return this;
}
private boolean negative_ ;
/**
*
* Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
*
*
* optional bool negative = 40 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the negative field is set.
*/
@java.lang.Override
public boolean hasNegative() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
*
*
* optional bool negative = 40 [(.google.api.field_behavior) = IMMUTABLE];
* @return The negative.
*/
@java.lang.Override
public boolean getNegative() {
return negative_;
}
/**
*
* Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
*
*
* optional bool negative = 40 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The negative to set.
* @return This builder for chaining.
*/
public Builder setNegative(boolean value) {
bitField0_ |= 0x00000008;
negative_ = value;
onChanged();
return this;
}
/**
*
* Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
*
*
* optional bool negative = 40 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearNegative() {
bitField0_ = (bitField0_ & ~0x00000008);
negative_ = false;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The type.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType getType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType result = com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType.valueOf(type_);
return result == null ? com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType.UNRECOGNIZED : result;
}
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* The status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* The status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35;
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus result = com.google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus.UNRECOGNIZED : result;
}
/**
*
* The status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder> keywordBuilder_;
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the keyword field is set.
*/
@java.lang.Override
public boolean hasKeyword() {
return criterionCase_ == 8;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The keyword.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordInfo getKeyword() {
if (keywordBuilder_ == null) {
if (criterionCase_ == 8) {
return (com.google.ads.googleads.v10.common.KeywordInfo) criterion_;
}
return com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance();
} else {
if (criterionCase_ == 8) {
return keywordBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setKeyword(com.google.ads.googleads.v10.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
keywordBuilder_.setMessage(value);
}
criterionCase_ = 8;
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setKeyword(
com.google.ads.googleads.v10.common.KeywordInfo.Builder builderForValue) {
if (keywordBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
keywordBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 8;
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeKeyword(com.google.ads.googleads.v10.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (criterionCase_ == 8 &&
criterion_ != com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.KeywordInfo.newBuilder((com.google.ads.googleads.v10.common.KeywordInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 8) {
keywordBuilder_.mergeFrom(value);
} else {
keywordBuilder_.setMessage(value);
}
}
criterionCase_ = 8;
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearKeyword() {
if (keywordBuilder_ == null) {
if (criterionCase_ == 8) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 8) {
criterionCase_ = 0;
criterion_ = null;
}
keywordBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.KeywordInfo.Builder getKeywordBuilder() {
return getKeywordFieldBuilder().getBuilder();
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getKeywordOrBuilder() {
if ((criterionCase_ == 8) && (keywordBuilder_ != null)) {
return keywordBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 8) {
return (com.google.ads.googleads.v10.common.KeywordInfo) criterion_;
}
return com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder>
getKeywordFieldBuilder() {
if (keywordBuilder_ == null) {
if (!(criterionCase_ == 8)) {
criterion_ = com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance();
}
keywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder>(
(com.google.ads.googleads.v10.common.KeywordInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 8;
onChanged();;
return keywordBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PlacementInfo, com.google.ads.googleads.v10.common.PlacementInfo.Builder, com.google.ads.googleads.v10.common.PlacementInfoOrBuilder> placementBuilder_;
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the placement field is set.
*/
@java.lang.Override
public boolean hasPlacement() {
return criterionCase_ == 9;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return The placement.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PlacementInfo getPlacement() {
if (placementBuilder_ == null) {
if (criterionCase_ == 9) {
return (com.google.ads.googleads.v10.common.PlacementInfo) criterion_;
}
return com.google.ads.googleads.v10.common.PlacementInfo.getDefaultInstance();
} else {
if (criterionCase_ == 9) {
return placementBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.PlacementInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setPlacement(com.google.ads.googleads.v10.common.PlacementInfo value) {
if (placementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
placementBuilder_.setMessage(value);
}
criterionCase_ = 9;
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setPlacement(
com.google.ads.googleads.v10.common.PlacementInfo.Builder builderForValue) {
if (placementBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
placementBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 9;
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergePlacement(com.google.ads.googleads.v10.common.PlacementInfo value) {
if (placementBuilder_ == null) {
if (criterionCase_ == 9 &&
criterion_ != com.google.ads.googleads.v10.common.PlacementInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.PlacementInfo.newBuilder((com.google.ads.googleads.v10.common.PlacementInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 9) {
placementBuilder_.mergeFrom(value);
} else {
placementBuilder_.setMessage(value);
}
}
criterionCase_ = 9;
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearPlacement() {
if (placementBuilder_ == null) {
if (criterionCase_ == 9) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 9) {
criterionCase_ = 0;
criterion_ = null;
}
placementBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.PlacementInfo.Builder getPlacementBuilder() {
return getPlacementFieldBuilder().getBuilder();
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PlacementInfoOrBuilder getPlacementOrBuilder() {
if ((criterionCase_ == 9) && (placementBuilder_ != null)) {
return placementBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 9) {
return (com.google.ads.googleads.v10.common.PlacementInfo) criterion_;
}
return com.google.ads.googleads.v10.common.PlacementInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PlacementInfo, com.google.ads.googleads.v10.common.PlacementInfo.Builder, com.google.ads.googleads.v10.common.PlacementInfoOrBuilder>
getPlacementFieldBuilder() {
if (placementBuilder_ == null) {
if (!(criterionCase_ == 9)) {
criterion_ = com.google.ads.googleads.v10.common.PlacementInfo.getDefaultInstance();
}
placementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PlacementInfo, com.google.ads.googleads.v10.common.PlacementInfo.Builder, com.google.ads.googleads.v10.common.PlacementInfoOrBuilder>(
(com.google.ads.googleads.v10.common.PlacementInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 9;
onChanged();;
return placementBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MobileAppCategoryInfo, com.google.ads.googleads.v10.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v10.common.MobileAppCategoryInfoOrBuilder> mobileAppCategoryBuilder_;
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileAppCategory field is set.
*/
@java.lang.Override
public boolean hasMobileAppCategory() {
return criterionCase_ == 10;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileAppCategory.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileAppCategoryInfo getMobileAppCategory() {
if (mobileAppCategoryBuilder_ == null) {
if (criterionCase_ == 10) {
return (com.google.ads.googleads.v10.common.MobileAppCategoryInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileAppCategoryInfo.getDefaultInstance();
} else {
if (criterionCase_ == 10) {
return mobileAppCategoryBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.MobileAppCategoryInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMobileAppCategory(com.google.ads.googleads.v10.common.MobileAppCategoryInfo value) {
if (mobileAppCategoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
mobileAppCategoryBuilder_.setMessage(value);
}
criterionCase_ = 10;
return this;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMobileAppCategory(
com.google.ads.googleads.v10.common.MobileAppCategoryInfo.Builder builderForValue) {
if (mobileAppCategoryBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
mobileAppCategoryBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 10;
return this;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeMobileAppCategory(com.google.ads.googleads.v10.common.MobileAppCategoryInfo value) {
if (mobileAppCategoryBuilder_ == null) {
if (criterionCase_ == 10 &&
criterion_ != com.google.ads.googleads.v10.common.MobileAppCategoryInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.MobileAppCategoryInfo.newBuilder((com.google.ads.googleads.v10.common.MobileAppCategoryInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 10) {
mobileAppCategoryBuilder_.mergeFrom(value);
} else {
mobileAppCategoryBuilder_.setMessage(value);
}
}
criterionCase_ = 10;
return this;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearMobileAppCategory() {
if (mobileAppCategoryBuilder_ == null) {
if (criterionCase_ == 10) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 10) {
criterionCase_ = 0;
criterion_ = null;
}
mobileAppCategoryBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.MobileAppCategoryInfo.Builder getMobileAppCategoryBuilder() {
return getMobileAppCategoryFieldBuilder().getBuilder();
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() {
if ((criterionCase_ == 10) && (mobileAppCategoryBuilder_ != null)) {
return mobileAppCategoryBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 10) {
return (com.google.ads.googleads.v10.common.MobileAppCategoryInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileAppCategoryInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 10 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MobileAppCategoryInfo, com.google.ads.googleads.v10.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v10.common.MobileAppCategoryInfoOrBuilder>
getMobileAppCategoryFieldBuilder() {
if (mobileAppCategoryBuilder_ == null) {
if (!(criterionCase_ == 10)) {
criterion_ = com.google.ads.googleads.v10.common.MobileAppCategoryInfo.getDefaultInstance();
}
mobileAppCategoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MobileAppCategoryInfo, com.google.ads.googleads.v10.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v10.common.MobileAppCategoryInfoOrBuilder>(
(com.google.ads.googleads.v10.common.MobileAppCategoryInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 10;
onChanged();;
return mobileAppCategoryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MobileApplicationInfo, com.google.ads.googleads.v10.common.MobileApplicationInfo.Builder, com.google.ads.googleads.v10.common.MobileApplicationInfoOrBuilder> mobileApplicationBuilder_;
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileApplication field is set.
*/
@java.lang.Override
public boolean hasMobileApplication() {
return criterionCase_ == 11;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileApplication.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileApplicationInfo getMobileApplication() {
if (mobileApplicationBuilder_ == null) {
if (criterionCase_ == 11) {
return (com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileApplicationInfo.getDefaultInstance();
} else {
if (criterionCase_ == 11) {
return mobileApplicationBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.MobileApplicationInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMobileApplication(com.google.ads.googleads.v10.common.MobileApplicationInfo value) {
if (mobileApplicationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
mobileApplicationBuilder_.setMessage(value);
}
criterionCase_ = 11;
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMobileApplication(
com.google.ads.googleads.v10.common.MobileApplicationInfo.Builder builderForValue) {
if (mobileApplicationBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
mobileApplicationBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 11;
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeMobileApplication(com.google.ads.googleads.v10.common.MobileApplicationInfo value) {
if (mobileApplicationBuilder_ == null) {
if (criterionCase_ == 11 &&
criterion_ != com.google.ads.googleads.v10.common.MobileApplicationInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.MobileApplicationInfo.newBuilder((com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 11) {
mobileApplicationBuilder_.mergeFrom(value);
} else {
mobileApplicationBuilder_.setMessage(value);
}
}
criterionCase_ = 11;
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearMobileApplication() {
if (mobileApplicationBuilder_ == null) {
if (criterionCase_ == 11) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 11) {
criterionCase_ = 0;
criterion_ = null;
}
mobileApplicationBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.MobileApplicationInfo.Builder getMobileApplicationBuilder() {
return getMobileApplicationFieldBuilder().getBuilder();
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileApplicationInfoOrBuilder getMobileApplicationOrBuilder() {
if ((criterionCase_ == 11) && (mobileApplicationBuilder_ != null)) {
return mobileApplicationBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 11) {
return (com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileApplicationInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 11 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MobileApplicationInfo, com.google.ads.googleads.v10.common.MobileApplicationInfo.Builder, com.google.ads.googleads.v10.common.MobileApplicationInfoOrBuilder>
getMobileApplicationFieldBuilder() {
if (mobileApplicationBuilder_ == null) {
if (!(criterionCase_ == 11)) {
criterion_ = com.google.ads.googleads.v10.common.MobileApplicationInfo.getDefaultInstance();
}
mobileApplicationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MobileApplicationInfo, com.google.ads.googleads.v10.common.MobileApplicationInfo.Builder, com.google.ads.googleads.v10.common.MobileApplicationInfoOrBuilder>(
(com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 11;
onChanged();;
return mobileApplicationBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.LocationInfo, com.google.ads.googleads.v10.common.LocationInfo.Builder, com.google.ads.googleads.v10.common.LocationInfoOrBuilder> locationBuilder_;
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the location field is set.
*/
@java.lang.Override
public boolean hasLocation() {
return criterionCase_ == 12;
}
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return The location.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LocationInfo getLocation() {
if (locationBuilder_ == null) {
if (criterionCase_ == 12) {
return (com.google.ads.googleads.v10.common.LocationInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LocationInfo.getDefaultInstance();
} else {
if (criterionCase_ == 12) {
return locationBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.LocationInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setLocation(com.google.ads.googleads.v10.common.LocationInfo value) {
if (locationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
locationBuilder_.setMessage(value);
}
criterionCase_ = 12;
return this;
}
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setLocation(
com.google.ads.googleads.v10.common.LocationInfo.Builder builderForValue) {
if (locationBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
locationBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 12;
return this;
}
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeLocation(com.google.ads.googleads.v10.common.LocationInfo value) {
if (locationBuilder_ == null) {
if (criterionCase_ == 12 &&
criterion_ != com.google.ads.googleads.v10.common.LocationInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.LocationInfo.newBuilder((com.google.ads.googleads.v10.common.LocationInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 12) {
locationBuilder_.mergeFrom(value);
} else {
locationBuilder_.setMessage(value);
}
}
criterionCase_ = 12;
return this;
}
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearLocation() {
if (locationBuilder_ == null) {
if (criterionCase_ == 12) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 12) {
criterionCase_ = 0;
criterion_ = null;
}
locationBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.LocationInfo.Builder getLocationBuilder() {
return getLocationFieldBuilder().getBuilder();
}
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LocationInfoOrBuilder getLocationOrBuilder() {
if ((criterionCase_ == 12) && (locationBuilder_ != null)) {
return locationBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 12) {
return (com.google.ads.googleads.v10.common.LocationInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LocationInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Location.
*
*
* .google.ads.googleads.v10.common.LocationInfo location = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.LocationInfo, com.google.ads.googleads.v10.common.LocationInfo.Builder, com.google.ads.googleads.v10.common.LocationInfoOrBuilder>
getLocationFieldBuilder() {
if (locationBuilder_ == null) {
if (!(criterionCase_ == 12)) {
criterion_ = com.google.ads.googleads.v10.common.LocationInfo.getDefaultInstance();
}
locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.LocationInfo, com.google.ads.googleads.v10.common.LocationInfo.Builder, com.google.ads.googleads.v10.common.LocationInfoOrBuilder>(
(com.google.ads.googleads.v10.common.LocationInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 12;
onChanged();;
return locationBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.DeviceInfo, com.google.ads.googleads.v10.common.DeviceInfo.Builder, com.google.ads.googleads.v10.common.DeviceInfoOrBuilder> deviceBuilder_;
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the device field is set.
*/
@java.lang.Override
public boolean hasDevice() {
return criterionCase_ == 13;
}
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @return The device.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.DeviceInfo getDevice() {
if (deviceBuilder_ == null) {
if (criterionCase_ == 13) {
return (com.google.ads.googleads.v10.common.DeviceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.DeviceInfo.getDefaultInstance();
} else {
if (criterionCase_ == 13) {
return deviceBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.DeviceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setDevice(com.google.ads.googleads.v10.common.DeviceInfo value) {
if (deviceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
deviceBuilder_.setMessage(value);
}
criterionCase_ = 13;
return this;
}
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setDevice(
com.google.ads.googleads.v10.common.DeviceInfo.Builder builderForValue) {
if (deviceBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
deviceBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 13;
return this;
}
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeDevice(com.google.ads.googleads.v10.common.DeviceInfo value) {
if (deviceBuilder_ == null) {
if (criterionCase_ == 13 &&
criterion_ != com.google.ads.googleads.v10.common.DeviceInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.DeviceInfo.newBuilder((com.google.ads.googleads.v10.common.DeviceInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 13) {
deviceBuilder_.mergeFrom(value);
} else {
deviceBuilder_.setMessage(value);
}
}
criterionCase_ = 13;
return this;
}
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearDevice() {
if (deviceBuilder_ == null) {
if (criterionCase_ == 13) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 13) {
criterionCase_ = 0;
criterion_ = null;
}
deviceBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.DeviceInfo.Builder getDeviceBuilder() {
return getDeviceFieldBuilder().getBuilder();
}
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.DeviceInfoOrBuilder getDeviceOrBuilder() {
if ((criterionCase_ == 13) && (deviceBuilder_ != null)) {
return deviceBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 13) {
return (com.google.ads.googleads.v10.common.DeviceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.DeviceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Device.
*
*
* .google.ads.googleads.v10.common.DeviceInfo device = 13 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.DeviceInfo, com.google.ads.googleads.v10.common.DeviceInfo.Builder, com.google.ads.googleads.v10.common.DeviceInfoOrBuilder>
getDeviceFieldBuilder() {
if (deviceBuilder_ == null) {
if (!(criterionCase_ == 13)) {
criterion_ = com.google.ads.googleads.v10.common.DeviceInfo.getDefaultInstance();
}
deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.DeviceInfo, com.google.ads.googleads.v10.common.DeviceInfo.Builder, com.google.ads.googleads.v10.common.DeviceInfoOrBuilder>(
(com.google.ads.googleads.v10.common.DeviceInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 13;
onChanged();;
return deviceBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AdScheduleInfo, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder, com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder> adScheduleBuilder_;
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the adSchedule field is set.
*/
@java.lang.Override
public boolean hasAdSchedule() {
return criterionCase_ == 15;
}
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
* @return The adSchedule.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AdScheduleInfo getAdSchedule() {
if (adScheduleBuilder_ == null) {
if (criterionCase_ == 15) {
return (com.google.ads.googleads.v10.common.AdScheduleInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AdScheduleInfo.getDefaultInstance();
} else {
if (criterionCase_ == 15) {
return adScheduleBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.AdScheduleInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setAdSchedule(com.google.ads.googleads.v10.common.AdScheduleInfo value) {
if (adScheduleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
adScheduleBuilder_.setMessage(value);
}
criterionCase_ = 15;
return this;
}
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setAdSchedule(
com.google.ads.googleads.v10.common.AdScheduleInfo.Builder builderForValue) {
if (adScheduleBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
adScheduleBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 15;
return this;
}
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeAdSchedule(com.google.ads.googleads.v10.common.AdScheduleInfo value) {
if (adScheduleBuilder_ == null) {
if (criterionCase_ == 15 &&
criterion_ != com.google.ads.googleads.v10.common.AdScheduleInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.AdScheduleInfo.newBuilder((com.google.ads.googleads.v10.common.AdScheduleInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 15) {
adScheduleBuilder_.mergeFrom(value);
} else {
adScheduleBuilder_.setMessage(value);
}
}
criterionCase_ = 15;
return this;
}
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearAdSchedule() {
if (adScheduleBuilder_ == null) {
if (criterionCase_ == 15) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 15) {
criterionCase_ = 0;
criterion_ = null;
}
adScheduleBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.AdScheduleInfo.Builder getAdScheduleBuilder() {
return getAdScheduleFieldBuilder().getBuilder();
}
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder getAdScheduleOrBuilder() {
if ((criterionCase_ == 15) && (adScheduleBuilder_ != null)) {
return adScheduleBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 15) {
return (com.google.ads.googleads.v10.common.AdScheduleInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AdScheduleInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Ad Schedule.
*
*
* .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule = 15 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AdScheduleInfo, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder, com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder>
getAdScheduleFieldBuilder() {
if (adScheduleBuilder_ == null) {
if (!(criterionCase_ == 15)) {
criterion_ = com.google.ads.googleads.v10.common.AdScheduleInfo.getDefaultInstance();
}
adScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AdScheduleInfo, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder, com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder>(
(com.google.ads.googleads.v10.common.AdScheduleInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 15;
onChanged();;
return adScheduleBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AgeRangeInfo, com.google.ads.googleads.v10.common.AgeRangeInfo.Builder, com.google.ads.googleads.v10.common.AgeRangeInfoOrBuilder> ageRangeBuilder_;
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the ageRange field is set.
*/
@java.lang.Override
public boolean hasAgeRange() {
return criterionCase_ == 16;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
* @return The ageRange.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AgeRangeInfo getAgeRange() {
if (ageRangeBuilder_ == null) {
if (criterionCase_ == 16) {
return (com.google.ads.googleads.v10.common.AgeRangeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AgeRangeInfo.getDefaultInstance();
} else {
if (criterionCase_ == 16) {
return ageRangeBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.AgeRangeInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setAgeRange(com.google.ads.googleads.v10.common.AgeRangeInfo value) {
if (ageRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
ageRangeBuilder_.setMessage(value);
}
criterionCase_ = 16;
return this;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setAgeRange(
com.google.ads.googleads.v10.common.AgeRangeInfo.Builder builderForValue) {
if (ageRangeBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
ageRangeBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 16;
return this;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeAgeRange(com.google.ads.googleads.v10.common.AgeRangeInfo value) {
if (ageRangeBuilder_ == null) {
if (criterionCase_ == 16 &&
criterion_ != com.google.ads.googleads.v10.common.AgeRangeInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.AgeRangeInfo.newBuilder((com.google.ads.googleads.v10.common.AgeRangeInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 16) {
ageRangeBuilder_.mergeFrom(value);
} else {
ageRangeBuilder_.setMessage(value);
}
}
criterionCase_ = 16;
return this;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearAgeRange() {
if (ageRangeBuilder_ == null) {
if (criterionCase_ == 16) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 16) {
criterionCase_ = 0;
criterion_ = null;
}
ageRangeBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.AgeRangeInfo.Builder getAgeRangeBuilder() {
return getAgeRangeFieldBuilder().getBuilder();
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AgeRangeInfoOrBuilder getAgeRangeOrBuilder() {
if ((criterionCase_ == 16) && (ageRangeBuilder_ != null)) {
return ageRangeBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 16) {
return (com.google.ads.googleads.v10.common.AgeRangeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AgeRangeInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 16 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AgeRangeInfo, com.google.ads.googleads.v10.common.AgeRangeInfo.Builder, com.google.ads.googleads.v10.common.AgeRangeInfoOrBuilder>
getAgeRangeFieldBuilder() {
if (ageRangeBuilder_ == null) {
if (!(criterionCase_ == 16)) {
criterion_ = com.google.ads.googleads.v10.common.AgeRangeInfo.getDefaultInstance();
}
ageRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AgeRangeInfo, com.google.ads.googleads.v10.common.AgeRangeInfo.Builder, com.google.ads.googleads.v10.common.AgeRangeInfoOrBuilder>(
(com.google.ads.googleads.v10.common.AgeRangeInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 16;
onChanged();;
return ageRangeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.GenderInfo, com.google.ads.googleads.v10.common.GenderInfo.Builder, com.google.ads.googleads.v10.common.GenderInfoOrBuilder> genderBuilder_;
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the gender field is set.
*/
@java.lang.Override
public boolean hasGender() {
return criterionCase_ == 17;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
* @return The gender.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.GenderInfo getGender() {
if (genderBuilder_ == null) {
if (criterionCase_ == 17) {
return (com.google.ads.googleads.v10.common.GenderInfo) criterion_;
}
return com.google.ads.googleads.v10.common.GenderInfo.getDefaultInstance();
} else {
if (criterionCase_ == 17) {
return genderBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.GenderInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setGender(com.google.ads.googleads.v10.common.GenderInfo value) {
if (genderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
genderBuilder_.setMessage(value);
}
criterionCase_ = 17;
return this;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setGender(
com.google.ads.googleads.v10.common.GenderInfo.Builder builderForValue) {
if (genderBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
genderBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 17;
return this;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeGender(com.google.ads.googleads.v10.common.GenderInfo value) {
if (genderBuilder_ == null) {
if (criterionCase_ == 17 &&
criterion_ != com.google.ads.googleads.v10.common.GenderInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.GenderInfo.newBuilder((com.google.ads.googleads.v10.common.GenderInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 17) {
genderBuilder_.mergeFrom(value);
} else {
genderBuilder_.setMessage(value);
}
}
criterionCase_ = 17;
return this;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearGender() {
if (genderBuilder_ == null) {
if (criterionCase_ == 17) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 17) {
criterionCase_ = 0;
criterion_ = null;
}
genderBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.GenderInfo.Builder getGenderBuilder() {
return getGenderFieldBuilder().getBuilder();
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.GenderInfoOrBuilder getGenderOrBuilder() {
if ((criterionCase_ == 17) && (genderBuilder_ != null)) {
return genderBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 17) {
return (com.google.ads.googleads.v10.common.GenderInfo) criterion_;
}
return com.google.ads.googleads.v10.common.GenderInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 17 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.GenderInfo, com.google.ads.googleads.v10.common.GenderInfo.Builder, com.google.ads.googleads.v10.common.GenderInfoOrBuilder>
getGenderFieldBuilder() {
if (genderBuilder_ == null) {
if (!(criterionCase_ == 17)) {
criterion_ = com.google.ads.googleads.v10.common.GenderInfo.getDefaultInstance();
}
genderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.GenderInfo, com.google.ads.googleads.v10.common.GenderInfo.Builder, com.google.ads.googleads.v10.common.GenderInfoOrBuilder>(
(com.google.ads.googleads.v10.common.GenderInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 17;
onChanged();;
return genderBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.IncomeRangeInfo, com.google.ads.googleads.v10.common.IncomeRangeInfo.Builder, com.google.ads.googleads.v10.common.IncomeRangeInfoOrBuilder> incomeRangeBuilder_;
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the incomeRange field is set.
*/
@java.lang.Override
public boolean hasIncomeRange() {
return criterionCase_ == 18;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
* @return The incomeRange.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.IncomeRangeInfo getIncomeRange() {
if (incomeRangeBuilder_ == null) {
if (criterionCase_ == 18) {
return (com.google.ads.googleads.v10.common.IncomeRangeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.IncomeRangeInfo.getDefaultInstance();
} else {
if (criterionCase_ == 18) {
return incomeRangeBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.IncomeRangeInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setIncomeRange(com.google.ads.googleads.v10.common.IncomeRangeInfo value) {
if (incomeRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
incomeRangeBuilder_.setMessage(value);
}
criterionCase_ = 18;
return this;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setIncomeRange(
com.google.ads.googleads.v10.common.IncomeRangeInfo.Builder builderForValue) {
if (incomeRangeBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
incomeRangeBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 18;
return this;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeIncomeRange(com.google.ads.googleads.v10.common.IncomeRangeInfo value) {
if (incomeRangeBuilder_ == null) {
if (criterionCase_ == 18 &&
criterion_ != com.google.ads.googleads.v10.common.IncomeRangeInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.IncomeRangeInfo.newBuilder((com.google.ads.googleads.v10.common.IncomeRangeInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 18) {
incomeRangeBuilder_.mergeFrom(value);
} else {
incomeRangeBuilder_.setMessage(value);
}
}
criterionCase_ = 18;
return this;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearIncomeRange() {
if (incomeRangeBuilder_ == null) {
if (criterionCase_ == 18) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 18) {
criterionCase_ = 0;
criterion_ = null;
}
incomeRangeBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.IncomeRangeInfo.Builder getIncomeRangeBuilder() {
return getIncomeRangeFieldBuilder().getBuilder();
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.IncomeRangeInfoOrBuilder getIncomeRangeOrBuilder() {
if ((criterionCase_ == 18) && (incomeRangeBuilder_ != null)) {
return incomeRangeBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 18) {
return (com.google.ads.googleads.v10.common.IncomeRangeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.IncomeRangeInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 18 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.IncomeRangeInfo, com.google.ads.googleads.v10.common.IncomeRangeInfo.Builder, com.google.ads.googleads.v10.common.IncomeRangeInfoOrBuilder>
getIncomeRangeFieldBuilder() {
if (incomeRangeBuilder_ == null) {
if (!(criterionCase_ == 18)) {
criterion_ = com.google.ads.googleads.v10.common.IncomeRangeInfo.getDefaultInstance();
}
incomeRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.IncomeRangeInfo, com.google.ads.googleads.v10.common.IncomeRangeInfo.Builder, com.google.ads.googleads.v10.common.IncomeRangeInfoOrBuilder>(
(com.google.ads.googleads.v10.common.IncomeRangeInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 18;
onChanged();;
return incomeRangeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ParentalStatusInfo, com.google.ads.googleads.v10.common.ParentalStatusInfo.Builder, com.google.ads.googleads.v10.common.ParentalStatusInfoOrBuilder> parentalStatusBuilder_;
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the parentalStatus field is set.
*/
@java.lang.Override
public boolean hasParentalStatus() {
return criterionCase_ == 19;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
* @return The parentalStatus.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ParentalStatusInfo getParentalStatus() {
if (parentalStatusBuilder_ == null) {
if (criterionCase_ == 19) {
return (com.google.ads.googleads.v10.common.ParentalStatusInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ParentalStatusInfo.getDefaultInstance();
} else {
if (criterionCase_ == 19) {
return parentalStatusBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.ParentalStatusInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setParentalStatus(com.google.ads.googleads.v10.common.ParentalStatusInfo value) {
if (parentalStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
parentalStatusBuilder_.setMessage(value);
}
criterionCase_ = 19;
return this;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setParentalStatus(
com.google.ads.googleads.v10.common.ParentalStatusInfo.Builder builderForValue) {
if (parentalStatusBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
parentalStatusBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 19;
return this;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeParentalStatus(com.google.ads.googleads.v10.common.ParentalStatusInfo value) {
if (parentalStatusBuilder_ == null) {
if (criterionCase_ == 19 &&
criterion_ != com.google.ads.googleads.v10.common.ParentalStatusInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.ParentalStatusInfo.newBuilder((com.google.ads.googleads.v10.common.ParentalStatusInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 19) {
parentalStatusBuilder_.mergeFrom(value);
} else {
parentalStatusBuilder_.setMessage(value);
}
}
criterionCase_ = 19;
return this;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearParentalStatus() {
if (parentalStatusBuilder_ == null) {
if (criterionCase_ == 19) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 19) {
criterionCase_ = 0;
criterion_ = null;
}
parentalStatusBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.ParentalStatusInfo.Builder getParentalStatusBuilder() {
return getParentalStatusFieldBuilder().getBuilder();
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ParentalStatusInfoOrBuilder getParentalStatusOrBuilder() {
if ((criterionCase_ == 19) && (parentalStatusBuilder_ != null)) {
return parentalStatusBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 19) {
return (com.google.ads.googleads.v10.common.ParentalStatusInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ParentalStatusInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 19 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ParentalStatusInfo, com.google.ads.googleads.v10.common.ParentalStatusInfo.Builder, com.google.ads.googleads.v10.common.ParentalStatusInfoOrBuilder>
getParentalStatusFieldBuilder() {
if (parentalStatusBuilder_ == null) {
if (!(criterionCase_ == 19)) {
criterion_ = com.google.ads.googleads.v10.common.ParentalStatusInfo.getDefaultInstance();
}
parentalStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ParentalStatusInfo, com.google.ads.googleads.v10.common.ParentalStatusInfo.Builder, com.google.ads.googleads.v10.common.ParentalStatusInfoOrBuilder>(
(com.google.ads.googleads.v10.common.ParentalStatusInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 19;
onChanged();;
return parentalStatusBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.UserListInfo, com.google.ads.googleads.v10.common.UserListInfo.Builder, com.google.ads.googleads.v10.common.UserListInfoOrBuilder> userListBuilder_;
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the userList field is set.
*/
@java.lang.Override
public boolean hasUserList() {
return criterionCase_ == 22;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
* @return The userList.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListInfo getUserList() {
if (userListBuilder_ == null) {
if (criterionCase_ == 22) {
return (com.google.ads.googleads.v10.common.UserListInfo) criterion_;
}
return com.google.ads.googleads.v10.common.UserListInfo.getDefaultInstance();
} else {
if (criterionCase_ == 22) {
return userListBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.UserListInfo.getDefaultInstance();
}
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setUserList(com.google.ads.googleads.v10.common.UserListInfo value) {
if (userListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
userListBuilder_.setMessage(value);
}
criterionCase_ = 22;
return this;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setUserList(
com.google.ads.googleads.v10.common.UserListInfo.Builder builderForValue) {
if (userListBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
userListBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 22;
return this;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeUserList(com.google.ads.googleads.v10.common.UserListInfo value) {
if (userListBuilder_ == null) {
if (criterionCase_ == 22 &&
criterion_ != com.google.ads.googleads.v10.common.UserListInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.UserListInfo.newBuilder((com.google.ads.googleads.v10.common.UserListInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 22) {
userListBuilder_.mergeFrom(value);
} else {
userListBuilder_.setMessage(value);
}
}
criterionCase_ = 22;
return this;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearUserList() {
if (userListBuilder_ == null) {
if (criterionCase_ == 22) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 22) {
criterionCase_ = 0;
criterion_ = null;
}
userListBuilder_.clear();
}
return this;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.UserListInfo.Builder getUserListBuilder() {
return getUserListFieldBuilder().getBuilder();
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListInfoOrBuilder getUserListOrBuilder() {
if ((criterionCase_ == 22) && (userListBuilder_ != null)) {
return userListBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 22) {
return (com.google.ads.googleads.v10.common.UserListInfo) criterion_;
}
return com.google.ads.googleads.v10.common.UserListInfo.getDefaultInstance();
}
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 22 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.UserListInfo, com.google.ads.googleads.v10.common.UserListInfo.Builder, com.google.ads.googleads.v10.common.UserListInfoOrBuilder>
getUserListFieldBuilder() {
if (userListBuilder_ == null) {
if (!(criterionCase_ == 22)) {
criterion_ = com.google.ads.googleads.v10.common.UserListInfo.getDefaultInstance();
}
userListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.UserListInfo, com.google.ads.googleads.v10.common.UserListInfo.Builder, com.google.ads.googleads.v10.common.UserListInfoOrBuilder>(
(com.google.ads.googleads.v10.common.UserListInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 22;
onChanged();;
return userListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.YouTubeVideoInfo, com.google.ads.googleads.v10.common.YouTubeVideoInfo.Builder, com.google.ads.googleads.v10.common.YouTubeVideoInfoOrBuilder> youtubeVideoBuilder_;
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeVideo field is set.
*/
@java.lang.Override
public boolean hasYoutubeVideo() {
return criterionCase_ == 20;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeVideo.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeVideoInfo getYoutubeVideo() {
if (youtubeVideoBuilder_ == null) {
if (criterionCase_ == 20) {
return (com.google.ads.googleads.v10.common.YouTubeVideoInfo) criterion_;
}
return com.google.ads.googleads.v10.common.YouTubeVideoInfo.getDefaultInstance();
} else {
if (criterionCase_ == 20) {
return youtubeVideoBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.YouTubeVideoInfo.getDefaultInstance();
}
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setYoutubeVideo(com.google.ads.googleads.v10.common.YouTubeVideoInfo value) {
if (youtubeVideoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
youtubeVideoBuilder_.setMessage(value);
}
criterionCase_ = 20;
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setYoutubeVideo(
com.google.ads.googleads.v10.common.YouTubeVideoInfo.Builder builderForValue) {
if (youtubeVideoBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
youtubeVideoBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 20;
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeYoutubeVideo(com.google.ads.googleads.v10.common.YouTubeVideoInfo value) {
if (youtubeVideoBuilder_ == null) {
if (criterionCase_ == 20 &&
criterion_ != com.google.ads.googleads.v10.common.YouTubeVideoInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.YouTubeVideoInfo.newBuilder((com.google.ads.googleads.v10.common.YouTubeVideoInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 20) {
youtubeVideoBuilder_.mergeFrom(value);
} else {
youtubeVideoBuilder_.setMessage(value);
}
}
criterionCase_ = 20;
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearYoutubeVideo() {
if (youtubeVideoBuilder_ == null) {
if (criterionCase_ == 20) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 20) {
criterionCase_ = 0;
criterion_ = null;
}
youtubeVideoBuilder_.clear();
}
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.YouTubeVideoInfo.Builder getYoutubeVideoBuilder() {
return getYoutubeVideoFieldBuilder().getBuilder();
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeVideoInfoOrBuilder getYoutubeVideoOrBuilder() {
if ((criterionCase_ == 20) && (youtubeVideoBuilder_ != null)) {
return youtubeVideoBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 20) {
return (com.google.ads.googleads.v10.common.YouTubeVideoInfo) criterion_;
}
return com.google.ads.googleads.v10.common.YouTubeVideoInfo.getDefaultInstance();
}
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 20 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.YouTubeVideoInfo, com.google.ads.googleads.v10.common.YouTubeVideoInfo.Builder, com.google.ads.googleads.v10.common.YouTubeVideoInfoOrBuilder>
getYoutubeVideoFieldBuilder() {
if (youtubeVideoBuilder_ == null) {
if (!(criterionCase_ == 20)) {
criterion_ = com.google.ads.googleads.v10.common.YouTubeVideoInfo.getDefaultInstance();
}
youtubeVideoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.YouTubeVideoInfo, com.google.ads.googleads.v10.common.YouTubeVideoInfo.Builder, com.google.ads.googleads.v10.common.YouTubeVideoInfoOrBuilder>(
(com.google.ads.googleads.v10.common.YouTubeVideoInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 20;
onChanged();;
return youtubeVideoBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.YouTubeChannelInfo, com.google.ads.googleads.v10.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v10.common.YouTubeChannelInfoOrBuilder> youtubeChannelBuilder_;
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeChannel field is set.
*/
@java.lang.Override
public boolean hasYoutubeChannel() {
return criterionCase_ == 21;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeChannel.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeChannelInfo getYoutubeChannel() {
if (youtubeChannelBuilder_ == null) {
if (criterionCase_ == 21) {
return (com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.YouTubeChannelInfo.getDefaultInstance();
} else {
if (criterionCase_ == 21) {
return youtubeChannelBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.YouTubeChannelInfo.getDefaultInstance();
}
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setYoutubeChannel(com.google.ads.googleads.v10.common.YouTubeChannelInfo value) {
if (youtubeChannelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
youtubeChannelBuilder_.setMessage(value);
}
criterionCase_ = 21;
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setYoutubeChannel(
com.google.ads.googleads.v10.common.YouTubeChannelInfo.Builder builderForValue) {
if (youtubeChannelBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
youtubeChannelBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 21;
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeYoutubeChannel(com.google.ads.googleads.v10.common.YouTubeChannelInfo value) {
if (youtubeChannelBuilder_ == null) {
if (criterionCase_ == 21 &&
criterion_ != com.google.ads.googleads.v10.common.YouTubeChannelInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.YouTubeChannelInfo.newBuilder((com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 21) {
youtubeChannelBuilder_.mergeFrom(value);
} else {
youtubeChannelBuilder_.setMessage(value);
}
}
criterionCase_ = 21;
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearYoutubeChannel() {
if (youtubeChannelBuilder_ == null) {
if (criterionCase_ == 21) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 21) {
criterionCase_ = 0;
criterion_ = null;
}
youtubeChannelBuilder_.clear();
}
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.YouTubeChannelInfo.Builder getYoutubeChannelBuilder() {
return getYoutubeChannelFieldBuilder().getBuilder();
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() {
if ((criterionCase_ == 21) && (youtubeChannelBuilder_ != null)) {
return youtubeChannelBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 21) {
return (com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.YouTubeChannelInfo.getDefaultInstance();
}
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 21 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.YouTubeChannelInfo, com.google.ads.googleads.v10.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v10.common.YouTubeChannelInfoOrBuilder>
getYoutubeChannelFieldBuilder() {
if (youtubeChannelBuilder_ == null) {
if (!(criterionCase_ == 21)) {
criterion_ = com.google.ads.googleads.v10.common.YouTubeChannelInfo.getDefaultInstance();
}
youtubeChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.YouTubeChannelInfo, com.google.ads.googleads.v10.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v10.common.YouTubeChannelInfoOrBuilder>(
(com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 21;
onChanged();;
return youtubeChannelBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ProximityInfo, com.google.ads.googleads.v10.common.ProximityInfo.Builder, com.google.ads.googleads.v10.common.ProximityInfoOrBuilder> proximityBuilder_;
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the proximity field is set.
*/
@java.lang.Override
public boolean hasProximity() {
return criterionCase_ == 23;
}
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
* @return The proximity.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ProximityInfo getProximity() {
if (proximityBuilder_ == null) {
if (criterionCase_ == 23) {
return (com.google.ads.googleads.v10.common.ProximityInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance();
} else {
if (criterionCase_ == 23) {
return proximityBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setProximity(com.google.ads.googleads.v10.common.ProximityInfo value) {
if (proximityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
proximityBuilder_.setMessage(value);
}
criterionCase_ = 23;
return this;
}
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setProximity(
com.google.ads.googleads.v10.common.ProximityInfo.Builder builderForValue) {
if (proximityBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
proximityBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 23;
return this;
}
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeProximity(com.google.ads.googleads.v10.common.ProximityInfo value) {
if (proximityBuilder_ == null) {
if (criterionCase_ == 23 &&
criterion_ != com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.ProximityInfo.newBuilder((com.google.ads.googleads.v10.common.ProximityInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 23) {
proximityBuilder_.mergeFrom(value);
} else {
proximityBuilder_.setMessage(value);
}
}
criterionCase_ = 23;
return this;
}
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearProximity() {
if (proximityBuilder_ == null) {
if (criterionCase_ == 23) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 23) {
criterionCase_ = 0;
criterion_ = null;
}
proximityBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.ProximityInfo.Builder getProximityBuilder() {
return getProximityFieldBuilder().getBuilder();
}
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ProximityInfoOrBuilder getProximityOrBuilder() {
if ((criterionCase_ == 23) && (proximityBuilder_ != null)) {
return proximityBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 23) {
return (com.google.ads.googleads.v10.common.ProximityInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 23 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ProximityInfo, com.google.ads.googleads.v10.common.ProximityInfo.Builder, com.google.ads.googleads.v10.common.ProximityInfoOrBuilder>
getProximityFieldBuilder() {
if (proximityBuilder_ == null) {
if (!(criterionCase_ == 23)) {
criterion_ = com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance();
}
proximityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ProximityInfo, com.google.ads.googleads.v10.common.ProximityInfo.Builder, com.google.ads.googleads.v10.common.ProximityInfoOrBuilder>(
(com.google.ads.googleads.v10.common.ProximityInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 23;
onChanged();;
return proximityBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TopicInfo, com.google.ads.googleads.v10.common.TopicInfo.Builder, com.google.ads.googleads.v10.common.TopicInfoOrBuilder> topicBuilder_;
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the topic field is set.
*/
@java.lang.Override
public boolean hasTopic() {
return criterionCase_ == 24;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
* @return The topic.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TopicInfo getTopic() {
if (topicBuilder_ == null) {
if (criterionCase_ == 24) {
return (com.google.ads.googleads.v10.common.TopicInfo) criterion_;
}
return com.google.ads.googleads.v10.common.TopicInfo.getDefaultInstance();
} else {
if (criterionCase_ == 24) {
return topicBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.TopicInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setTopic(com.google.ads.googleads.v10.common.TopicInfo value) {
if (topicBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
topicBuilder_.setMessage(value);
}
criterionCase_ = 24;
return this;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setTopic(
com.google.ads.googleads.v10.common.TopicInfo.Builder builderForValue) {
if (topicBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
topicBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 24;
return this;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeTopic(com.google.ads.googleads.v10.common.TopicInfo value) {
if (topicBuilder_ == null) {
if (criterionCase_ == 24 &&
criterion_ != com.google.ads.googleads.v10.common.TopicInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.TopicInfo.newBuilder((com.google.ads.googleads.v10.common.TopicInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 24) {
topicBuilder_.mergeFrom(value);
} else {
topicBuilder_.setMessage(value);
}
}
criterionCase_ = 24;
return this;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearTopic() {
if (topicBuilder_ == null) {
if (criterionCase_ == 24) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 24) {
criterionCase_ = 0;
criterion_ = null;
}
topicBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.TopicInfo.Builder getTopicBuilder() {
return getTopicFieldBuilder().getBuilder();
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TopicInfoOrBuilder getTopicOrBuilder() {
if ((criterionCase_ == 24) && (topicBuilder_ != null)) {
return topicBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 24) {
return (com.google.ads.googleads.v10.common.TopicInfo) criterion_;
}
return com.google.ads.googleads.v10.common.TopicInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 24 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TopicInfo, com.google.ads.googleads.v10.common.TopicInfo.Builder, com.google.ads.googleads.v10.common.TopicInfoOrBuilder>
getTopicFieldBuilder() {
if (topicBuilder_ == null) {
if (!(criterionCase_ == 24)) {
criterion_ = com.google.ads.googleads.v10.common.TopicInfo.getDefaultInstance();
}
topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.TopicInfo, com.google.ads.googleads.v10.common.TopicInfo.Builder, com.google.ads.googleads.v10.common.TopicInfoOrBuilder>(
(com.google.ads.googleads.v10.common.TopicInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 24;
onChanged();;
return topicBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ListingScopeInfo, com.google.ads.googleads.v10.common.ListingScopeInfo.Builder, com.google.ads.googleads.v10.common.ListingScopeInfoOrBuilder> listingScopeBuilder_;
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the listingScope field is set.
*/
@java.lang.Override
public boolean hasListingScope() {
return criterionCase_ == 25;
}
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
* @return The listingScope.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ListingScopeInfo getListingScope() {
if (listingScopeBuilder_ == null) {
if (criterionCase_ == 25) {
return (com.google.ads.googleads.v10.common.ListingScopeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ListingScopeInfo.getDefaultInstance();
} else {
if (criterionCase_ == 25) {
return listingScopeBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.ListingScopeInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setListingScope(com.google.ads.googleads.v10.common.ListingScopeInfo value) {
if (listingScopeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
listingScopeBuilder_.setMessage(value);
}
criterionCase_ = 25;
return this;
}
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setListingScope(
com.google.ads.googleads.v10.common.ListingScopeInfo.Builder builderForValue) {
if (listingScopeBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
listingScopeBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 25;
return this;
}
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeListingScope(com.google.ads.googleads.v10.common.ListingScopeInfo value) {
if (listingScopeBuilder_ == null) {
if (criterionCase_ == 25 &&
criterion_ != com.google.ads.googleads.v10.common.ListingScopeInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.ListingScopeInfo.newBuilder((com.google.ads.googleads.v10.common.ListingScopeInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 25) {
listingScopeBuilder_.mergeFrom(value);
} else {
listingScopeBuilder_.setMessage(value);
}
}
criterionCase_ = 25;
return this;
}
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearListingScope() {
if (listingScopeBuilder_ == null) {
if (criterionCase_ == 25) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 25) {
criterionCase_ = 0;
criterion_ = null;
}
listingScopeBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.ListingScopeInfo.Builder getListingScopeBuilder() {
return getListingScopeFieldBuilder().getBuilder();
}
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ListingScopeInfoOrBuilder getListingScopeOrBuilder() {
if ((criterionCase_ == 25) && (listingScopeBuilder_ != null)) {
return listingScopeBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 25) {
return (com.google.ads.googleads.v10.common.ListingScopeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ListingScopeInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Listing scope.
*
*
* .google.ads.googleads.v10.common.ListingScopeInfo listing_scope = 25 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ListingScopeInfo, com.google.ads.googleads.v10.common.ListingScopeInfo.Builder, com.google.ads.googleads.v10.common.ListingScopeInfoOrBuilder>
getListingScopeFieldBuilder() {
if (listingScopeBuilder_ == null) {
if (!(criterionCase_ == 25)) {
criterion_ = com.google.ads.googleads.v10.common.ListingScopeInfo.getDefaultInstance();
}
listingScopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ListingScopeInfo, com.google.ads.googleads.v10.common.ListingScopeInfo.Builder, com.google.ads.googleads.v10.common.ListingScopeInfoOrBuilder>(
(com.google.ads.googleads.v10.common.ListingScopeInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 25;
onChanged();;
return listingScopeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.LanguageInfo, com.google.ads.googleads.v10.common.LanguageInfo.Builder, com.google.ads.googleads.v10.common.LanguageInfoOrBuilder> languageBuilder_;
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the language field is set.
*/
@java.lang.Override
public boolean hasLanguage() {
return criterionCase_ == 26;
}
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
* @return The language.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LanguageInfo getLanguage() {
if (languageBuilder_ == null) {
if (criterionCase_ == 26) {
return (com.google.ads.googleads.v10.common.LanguageInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LanguageInfo.getDefaultInstance();
} else {
if (criterionCase_ == 26) {
return languageBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.LanguageInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setLanguage(com.google.ads.googleads.v10.common.LanguageInfo value) {
if (languageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
languageBuilder_.setMessage(value);
}
criterionCase_ = 26;
return this;
}
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setLanguage(
com.google.ads.googleads.v10.common.LanguageInfo.Builder builderForValue) {
if (languageBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
languageBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 26;
return this;
}
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeLanguage(com.google.ads.googleads.v10.common.LanguageInfo value) {
if (languageBuilder_ == null) {
if (criterionCase_ == 26 &&
criterion_ != com.google.ads.googleads.v10.common.LanguageInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.LanguageInfo.newBuilder((com.google.ads.googleads.v10.common.LanguageInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 26) {
languageBuilder_.mergeFrom(value);
} else {
languageBuilder_.setMessage(value);
}
}
criterionCase_ = 26;
return this;
}
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearLanguage() {
if (languageBuilder_ == null) {
if (criterionCase_ == 26) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 26) {
criterionCase_ = 0;
criterion_ = null;
}
languageBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.LanguageInfo.Builder getLanguageBuilder() {
return getLanguageFieldBuilder().getBuilder();
}
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LanguageInfoOrBuilder getLanguageOrBuilder() {
if ((criterionCase_ == 26) && (languageBuilder_ != null)) {
return languageBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 26) {
return (com.google.ads.googleads.v10.common.LanguageInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LanguageInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Language.
*
*
* .google.ads.googleads.v10.common.LanguageInfo language = 26 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.LanguageInfo, com.google.ads.googleads.v10.common.LanguageInfo.Builder, com.google.ads.googleads.v10.common.LanguageInfoOrBuilder>
getLanguageFieldBuilder() {
if (languageBuilder_ == null) {
if (!(criterionCase_ == 26)) {
criterion_ = com.google.ads.googleads.v10.common.LanguageInfo.getDefaultInstance();
}
languageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.LanguageInfo, com.google.ads.googleads.v10.common.LanguageInfo.Builder, com.google.ads.googleads.v10.common.LanguageInfoOrBuilder>(
(com.google.ads.googleads.v10.common.LanguageInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 26;
onChanged();;
return languageBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.IpBlockInfo, com.google.ads.googleads.v10.common.IpBlockInfo.Builder, com.google.ads.googleads.v10.common.IpBlockInfoOrBuilder> ipBlockBuilder_;
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the ipBlock field is set.
*/
@java.lang.Override
public boolean hasIpBlock() {
return criterionCase_ == 27;
}
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
* @return The ipBlock.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.IpBlockInfo getIpBlock() {
if (ipBlockBuilder_ == null) {
if (criterionCase_ == 27) {
return (com.google.ads.googleads.v10.common.IpBlockInfo) criterion_;
}
return com.google.ads.googleads.v10.common.IpBlockInfo.getDefaultInstance();
} else {
if (criterionCase_ == 27) {
return ipBlockBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.IpBlockInfo.getDefaultInstance();
}
}
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setIpBlock(com.google.ads.googleads.v10.common.IpBlockInfo value) {
if (ipBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
ipBlockBuilder_.setMessage(value);
}
criterionCase_ = 27;
return this;
}
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setIpBlock(
com.google.ads.googleads.v10.common.IpBlockInfo.Builder builderForValue) {
if (ipBlockBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
ipBlockBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 27;
return this;
}
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeIpBlock(com.google.ads.googleads.v10.common.IpBlockInfo value) {
if (ipBlockBuilder_ == null) {
if (criterionCase_ == 27 &&
criterion_ != com.google.ads.googleads.v10.common.IpBlockInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.IpBlockInfo.newBuilder((com.google.ads.googleads.v10.common.IpBlockInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 27) {
ipBlockBuilder_.mergeFrom(value);
} else {
ipBlockBuilder_.setMessage(value);
}
}
criterionCase_ = 27;
return this;
}
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearIpBlock() {
if (ipBlockBuilder_ == null) {
if (criterionCase_ == 27) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 27) {
criterionCase_ = 0;
criterion_ = null;
}
ipBlockBuilder_.clear();
}
return this;
}
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.IpBlockInfo.Builder getIpBlockBuilder() {
return getIpBlockFieldBuilder().getBuilder();
}
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.IpBlockInfoOrBuilder getIpBlockOrBuilder() {
if ((criterionCase_ == 27) && (ipBlockBuilder_ != null)) {
return ipBlockBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 27) {
return (com.google.ads.googleads.v10.common.IpBlockInfo) criterion_;
}
return com.google.ads.googleads.v10.common.IpBlockInfo.getDefaultInstance();
}
}
/**
*
* Immutable. IpBlock.
*
*
* .google.ads.googleads.v10.common.IpBlockInfo ip_block = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.IpBlockInfo, com.google.ads.googleads.v10.common.IpBlockInfo.Builder, com.google.ads.googleads.v10.common.IpBlockInfoOrBuilder>
getIpBlockFieldBuilder() {
if (ipBlockBuilder_ == null) {
if (!(criterionCase_ == 27)) {
criterion_ = com.google.ads.googleads.v10.common.IpBlockInfo.getDefaultInstance();
}
ipBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.IpBlockInfo, com.google.ads.googleads.v10.common.IpBlockInfo.Builder, com.google.ads.googleads.v10.common.IpBlockInfoOrBuilder>(
(com.google.ads.googleads.v10.common.IpBlockInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 27;
onChanged();;
return ipBlockBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ContentLabelInfo, com.google.ads.googleads.v10.common.ContentLabelInfo.Builder, com.google.ads.googleads.v10.common.ContentLabelInfoOrBuilder> contentLabelBuilder_;
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the contentLabel field is set.
*/
@java.lang.Override
public boolean hasContentLabel() {
return criterionCase_ == 28;
}
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
* @return The contentLabel.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ContentLabelInfo getContentLabel() {
if (contentLabelBuilder_ == null) {
if (criterionCase_ == 28) {
return (com.google.ads.googleads.v10.common.ContentLabelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ContentLabelInfo.getDefaultInstance();
} else {
if (criterionCase_ == 28) {
return contentLabelBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.ContentLabelInfo.getDefaultInstance();
}
}
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setContentLabel(com.google.ads.googleads.v10.common.ContentLabelInfo value) {
if (contentLabelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
contentLabelBuilder_.setMessage(value);
}
criterionCase_ = 28;
return this;
}
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setContentLabel(
com.google.ads.googleads.v10.common.ContentLabelInfo.Builder builderForValue) {
if (contentLabelBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
contentLabelBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 28;
return this;
}
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeContentLabel(com.google.ads.googleads.v10.common.ContentLabelInfo value) {
if (contentLabelBuilder_ == null) {
if (criterionCase_ == 28 &&
criterion_ != com.google.ads.googleads.v10.common.ContentLabelInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.ContentLabelInfo.newBuilder((com.google.ads.googleads.v10.common.ContentLabelInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 28) {
contentLabelBuilder_.mergeFrom(value);
} else {
contentLabelBuilder_.setMessage(value);
}
}
criterionCase_ = 28;
return this;
}
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearContentLabel() {
if (contentLabelBuilder_ == null) {
if (criterionCase_ == 28) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 28) {
criterionCase_ = 0;
criterion_ = null;
}
contentLabelBuilder_.clear();
}
return this;
}
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.ContentLabelInfo.Builder getContentLabelBuilder() {
return getContentLabelFieldBuilder().getBuilder();
}
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ContentLabelInfoOrBuilder getContentLabelOrBuilder() {
if ((criterionCase_ == 28) && (contentLabelBuilder_ != null)) {
return contentLabelBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 28) {
return (com.google.ads.googleads.v10.common.ContentLabelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ContentLabelInfo.getDefaultInstance();
}
}
/**
*
* Immutable. ContentLabel.
*
*
* .google.ads.googleads.v10.common.ContentLabelInfo content_label = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ContentLabelInfo, com.google.ads.googleads.v10.common.ContentLabelInfo.Builder, com.google.ads.googleads.v10.common.ContentLabelInfoOrBuilder>
getContentLabelFieldBuilder() {
if (contentLabelBuilder_ == null) {
if (!(criterionCase_ == 28)) {
criterion_ = com.google.ads.googleads.v10.common.ContentLabelInfo.getDefaultInstance();
}
contentLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ContentLabelInfo, com.google.ads.googleads.v10.common.ContentLabelInfo.Builder, com.google.ads.googleads.v10.common.ContentLabelInfoOrBuilder>(
(com.google.ads.googleads.v10.common.ContentLabelInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 28;
onChanged();;
return contentLabelBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CarrierInfo, com.google.ads.googleads.v10.common.CarrierInfo.Builder, com.google.ads.googleads.v10.common.CarrierInfoOrBuilder> carrierBuilder_;
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the carrier field is set.
*/
@java.lang.Override
public boolean hasCarrier() {
return criterionCase_ == 29;
}
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
* @return The carrier.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CarrierInfo getCarrier() {
if (carrierBuilder_ == null) {
if (criterionCase_ == 29) {
return (com.google.ads.googleads.v10.common.CarrierInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CarrierInfo.getDefaultInstance();
} else {
if (criterionCase_ == 29) {
return carrierBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.CarrierInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCarrier(com.google.ads.googleads.v10.common.CarrierInfo value) {
if (carrierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
carrierBuilder_.setMessage(value);
}
criterionCase_ = 29;
return this;
}
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCarrier(
com.google.ads.googleads.v10.common.CarrierInfo.Builder builderForValue) {
if (carrierBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
carrierBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 29;
return this;
}
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeCarrier(com.google.ads.googleads.v10.common.CarrierInfo value) {
if (carrierBuilder_ == null) {
if (criterionCase_ == 29 &&
criterion_ != com.google.ads.googleads.v10.common.CarrierInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.CarrierInfo.newBuilder((com.google.ads.googleads.v10.common.CarrierInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 29) {
carrierBuilder_.mergeFrom(value);
} else {
carrierBuilder_.setMessage(value);
}
}
criterionCase_ = 29;
return this;
}
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearCarrier() {
if (carrierBuilder_ == null) {
if (criterionCase_ == 29) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 29) {
criterionCase_ = 0;
criterion_ = null;
}
carrierBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.CarrierInfo.Builder getCarrierBuilder() {
return getCarrierFieldBuilder().getBuilder();
}
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CarrierInfoOrBuilder getCarrierOrBuilder() {
if ((criterionCase_ == 29) && (carrierBuilder_ != null)) {
return carrierBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 29) {
return (com.google.ads.googleads.v10.common.CarrierInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CarrierInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Carrier.
*
*
* .google.ads.googleads.v10.common.CarrierInfo carrier = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CarrierInfo, com.google.ads.googleads.v10.common.CarrierInfo.Builder, com.google.ads.googleads.v10.common.CarrierInfoOrBuilder>
getCarrierFieldBuilder() {
if (carrierBuilder_ == null) {
if (!(criterionCase_ == 29)) {
criterion_ = com.google.ads.googleads.v10.common.CarrierInfo.getDefaultInstance();
}
carrierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CarrierInfo, com.google.ads.googleads.v10.common.CarrierInfo.Builder, com.google.ads.googleads.v10.common.CarrierInfoOrBuilder>(
(com.google.ads.googleads.v10.common.CarrierInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 29;
onChanged();;
return carrierBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.UserInterestInfo, com.google.ads.googleads.v10.common.UserInterestInfo.Builder, com.google.ads.googleads.v10.common.UserInterestInfoOrBuilder> userInterestBuilder_;
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the userInterest field is set.
*/
@java.lang.Override
public boolean hasUserInterest() {
return criterionCase_ == 30;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
* @return The userInterest.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserInterestInfo getUserInterest() {
if (userInterestBuilder_ == null) {
if (criterionCase_ == 30) {
return (com.google.ads.googleads.v10.common.UserInterestInfo) criterion_;
}
return com.google.ads.googleads.v10.common.UserInterestInfo.getDefaultInstance();
} else {
if (criterionCase_ == 30) {
return userInterestBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.UserInterestInfo.getDefaultInstance();
}
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setUserInterest(com.google.ads.googleads.v10.common.UserInterestInfo value) {
if (userInterestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
userInterestBuilder_.setMessage(value);
}
criterionCase_ = 30;
return this;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setUserInterest(
com.google.ads.googleads.v10.common.UserInterestInfo.Builder builderForValue) {
if (userInterestBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
userInterestBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 30;
return this;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeUserInterest(com.google.ads.googleads.v10.common.UserInterestInfo value) {
if (userInterestBuilder_ == null) {
if (criterionCase_ == 30 &&
criterion_ != com.google.ads.googleads.v10.common.UserInterestInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.UserInterestInfo.newBuilder((com.google.ads.googleads.v10.common.UserInterestInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 30) {
userInterestBuilder_.mergeFrom(value);
} else {
userInterestBuilder_.setMessage(value);
}
}
criterionCase_ = 30;
return this;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearUserInterest() {
if (userInterestBuilder_ == null) {
if (criterionCase_ == 30) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 30) {
criterionCase_ = 0;
criterion_ = null;
}
userInterestBuilder_.clear();
}
return this;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.UserInterestInfo.Builder getUserInterestBuilder() {
return getUserInterestFieldBuilder().getBuilder();
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserInterestInfoOrBuilder getUserInterestOrBuilder() {
if ((criterionCase_ == 30) && (userInterestBuilder_ != null)) {
return userInterestBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 30) {
return (com.google.ads.googleads.v10.common.UserInterestInfo) criterion_;
}
return com.google.ads.googleads.v10.common.UserInterestInfo.getDefaultInstance();
}
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.UserInterestInfo, com.google.ads.googleads.v10.common.UserInterestInfo.Builder, com.google.ads.googleads.v10.common.UserInterestInfoOrBuilder>
getUserInterestFieldBuilder() {
if (userInterestBuilder_ == null) {
if (!(criterionCase_ == 30)) {
criterion_ = com.google.ads.googleads.v10.common.UserInterestInfo.getDefaultInstance();
}
userInterestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.UserInterestInfo, com.google.ads.googleads.v10.common.UserInterestInfo.Builder, com.google.ads.googleads.v10.common.UserInterestInfoOrBuilder>(
(com.google.ads.googleads.v10.common.UserInterestInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 30;
onChanged();;
return userInterestBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.WebpageInfo, com.google.ads.googleads.v10.common.WebpageInfo.Builder, com.google.ads.googleads.v10.common.WebpageInfoOrBuilder> webpageBuilder_;
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the webpage field is set.
*/
@java.lang.Override
public boolean hasWebpage() {
return criterionCase_ == 31;
}
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
* @return The webpage.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.WebpageInfo getWebpage() {
if (webpageBuilder_ == null) {
if (criterionCase_ == 31) {
return (com.google.ads.googleads.v10.common.WebpageInfo) criterion_;
}
return com.google.ads.googleads.v10.common.WebpageInfo.getDefaultInstance();
} else {
if (criterionCase_ == 31) {
return webpageBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.WebpageInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setWebpage(com.google.ads.googleads.v10.common.WebpageInfo value) {
if (webpageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
webpageBuilder_.setMessage(value);
}
criterionCase_ = 31;
return this;
}
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setWebpage(
com.google.ads.googleads.v10.common.WebpageInfo.Builder builderForValue) {
if (webpageBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
webpageBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 31;
return this;
}
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeWebpage(com.google.ads.googleads.v10.common.WebpageInfo value) {
if (webpageBuilder_ == null) {
if (criterionCase_ == 31 &&
criterion_ != com.google.ads.googleads.v10.common.WebpageInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.WebpageInfo.newBuilder((com.google.ads.googleads.v10.common.WebpageInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 31) {
webpageBuilder_.mergeFrom(value);
} else {
webpageBuilder_.setMessage(value);
}
}
criterionCase_ = 31;
return this;
}
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearWebpage() {
if (webpageBuilder_ == null) {
if (criterionCase_ == 31) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 31) {
criterionCase_ = 0;
criterion_ = null;
}
webpageBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.WebpageInfo.Builder getWebpageBuilder() {
return getWebpageFieldBuilder().getBuilder();
}
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.WebpageInfoOrBuilder getWebpageOrBuilder() {
if ((criterionCase_ == 31) && (webpageBuilder_ != null)) {
return webpageBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 31) {
return (com.google.ads.googleads.v10.common.WebpageInfo) criterion_;
}
return com.google.ads.googleads.v10.common.WebpageInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Webpage.
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 31 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.WebpageInfo, com.google.ads.googleads.v10.common.WebpageInfo.Builder, com.google.ads.googleads.v10.common.WebpageInfoOrBuilder>
getWebpageFieldBuilder() {
if (webpageBuilder_ == null) {
if (!(criterionCase_ == 31)) {
criterion_ = com.google.ads.googleads.v10.common.WebpageInfo.getDefaultInstance();
}
webpageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.WebpageInfo, com.google.ads.googleads.v10.common.WebpageInfo.Builder, com.google.ads.googleads.v10.common.WebpageInfoOrBuilder>(
(com.google.ads.googleads.v10.common.WebpageInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 31;
onChanged();;
return webpageBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.OperatingSystemVersionInfo, com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.Builder, com.google.ads.googleads.v10.common.OperatingSystemVersionInfoOrBuilder> operatingSystemVersionBuilder_;
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the operatingSystemVersion field is set.
*/
@java.lang.Override
public boolean hasOperatingSystemVersion() {
return criterionCase_ == 32;
}
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
* @return The operatingSystemVersion.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.OperatingSystemVersionInfo getOperatingSystemVersion() {
if (operatingSystemVersionBuilder_ == null) {
if (criterionCase_ == 32) {
return (com.google.ads.googleads.v10.common.OperatingSystemVersionInfo) criterion_;
}
return com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.getDefaultInstance();
} else {
if (criterionCase_ == 32) {
return operatingSystemVersionBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setOperatingSystemVersion(com.google.ads.googleads.v10.common.OperatingSystemVersionInfo value) {
if (operatingSystemVersionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
operatingSystemVersionBuilder_.setMessage(value);
}
criterionCase_ = 32;
return this;
}
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setOperatingSystemVersion(
com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.Builder builderForValue) {
if (operatingSystemVersionBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
operatingSystemVersionBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 32;
return this;
}
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeOperatingSystemVersion(com.google.ads.googleads.v10.common.OperatingSystemVersionInfo value) {
if (operatingSystemVersionBuilder_ == null) {
if (criterionCase_ == 32 &&
criterion_ != com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.newBuilder((com.google.ads.googleads.v10.common.OperatingSystemVersionInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 32) {
operatingSystemVersionBuilder_.mergeFrom(value);
} else {
operatingSystemVersionBuilder_.setMessage(value);
}
}
criterionCase_ = 32;
return this;
}
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearOperatingSystemVersion() {
if (operatingSystemVersionBuilder_ == null) {
if (criterionCase_ == 32) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 32) {
criterionCase_ = 0;
criterion_ = null;
}
operatingSystemVersionBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.Builder getOperatingSystemVersionBuilder() {
return getOperatingSystemVersionFieldBuilder().getBuilder();
}
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.OperatingSystemVersionInfoOrBuilder getOperatingSystemVersionOrBuilder() {
if ((criterionCase_ == 32) && (operatingSystemVersionBuilder_ != null)) {
return operatingSystemVersionBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 32) {
return (com.google.ads.googleads.v10.common.OperatingSystemVersionInfo) criterion_;
}
return com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Operating system version.
*
*
* .google.ads.googleads.v10.common.OperatingSystemVersionInfo operating_system_version = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.OperatingSystemVersionInfo, com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.Builder, com.google.ads.googleads.v10.common.OperatingSystemVersionInfoOrBuilder>
getOperatingSystemVersionFieldBuilder() {
if (operatingSystemVersionBuilder_ == null) {
if (!(criterionCase_ == 32)) {
criterion_ = com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.getDefaultInstance();
}
operatingSystemVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.OperatingSystemVersionInfo, com.google.ads.googleads.v10.common.OperatingSystemVersionInfo.Builder, com.google.ads.googleads.v10.common.OperatingSystemVersionInfoOrBuilder>(
(com.google.ads.googleads.v10.common.OperatingSystemVersionInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 32;
onChanged();;
return operatingSystemVersionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MobileDeviceInfo, com.google.ads.googleads.v10.common.MobileDeviceInfo.Builder, com.google.ads.googleads.v10.common.MobileDeviceInfoOrBuilder> mobileDeviceBuilder_;
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileDevice field is set.
*/
@java.lang.Override
public boolean hasMobileDevice() {
return criterionCase_ == 33;
}
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileDevice.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileDeviceInfo getMobileDevice() {
if (mobileDeviceBuilder_ == null) {
if (criterionCase_ == 33) {
return (com.google.ads.googleads.v10.common.MobileDeviceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileDeviceInfo.getDefaultInstance();
} else {
if (criterionCase_ == 33) {
return mobileDeviceBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.MobileDeviceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMobileDevice(com.google.ads.googleads.v10.common.MobileDeviceInfo value) {
if (mobileDeviceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
mobileDeviceBuilder_.setMessage(value);
}
criterionCase_ = 33;
return this;
}
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMobileDevice(
com.google.ads.googleads.v10.common.MobileDeviceInfo.Builder builderForValue) {
if (mobileDeviceBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
mobileDeviceBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 33;
return this;
}
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeMobileDevice(com.google.ads.googleads.v10.common.MobileDeviceInfo value) {
if (mobileDeviceBuilder_ == null) {
if (criterionCase_ == 33 &&
criterion_ != com.google.ads.googleads.v10.common.MobileDeviceInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.MobileDeviceInfo.newBuilder((com.google.ads.googleads.v10.common.MobileDeviceInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 33) {
mobileDeviceBuilder_.mergeFrom(value);
} else {
mobileDeviceBuilder_.setMessage(value);
}
}
criterionCase_ = 33;
return this;
}
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearMobileDevice() {
if (mobileDeviceBuilder_ == null) {
if (criterionCase_ == 33) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 33) {
criterionCase_ = 0;
criterion_ = null;
}
mobileDeviceBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.MobileDeviceInfo.Builder getMobileDeviceBuilder() {
return getMobileDeviceFieldBuilder().getBuilder();
}
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileDeviceInfoOrBuilder getMobileDeviceOrBuilder() {
if ((criterionCase_ == 33) && (mobileDeviceBuilder_ != null)) {
return mobileDeviceBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 33) {
return (com.google.ads.googleads.v10.common.MobileDeviceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileDeviceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Mobile Device.
*
*
* .google.ads.googleads.v10.common.MobileDeviceInfo mobile_device = 33 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MobileDeviceInfo, com.google.ads.googleads.v10.common.MobileDeviceInfo.Builder, com.google.ads.googleads.v10.common.MobileDeviceInfoOrBuilder>
getMobileDeviceFieldBuilder() {
if (mobileDeviceBuilder_ == null) {
if (!(criterionCase_ == 33)) {
criterion_ = com.google.ads.googleads.v10.common.MobileDeviceInfo.getDefaultInstance();
}
mobileDeviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.MobileDeviceInfo, com.google.ads.googleads.v10.common.MobileDeviceInfo.Builder, com.google.ads.googleads.v10.common.MobileDeviceInfoOrBuilder>(
(com.google.ads.googleads.v10.common.MobileDeviceInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 33;
onChanged();;
return mobileDeviceBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.LocationGroupInfo, com.google.ads.googleads.v10.common.LocationGroupInfo.Builder, com.google.ads.googleads.v10.common.LocationGroupInfoOrBuilder> locationGroupBuilder_;
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the locationGroup field is set.
*/
@java.lang.Override
public boolean hasLocationGroup() {
return criterionCase_ == 34;
}
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
* @return The locationGroup.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LocationGroupInfo getLocationGroup() {
if (locationGroupBuilder_ == null) {
if (criterionCase_ == 34) {
return (com.google.ads.googleads.v10.common.LocationGroupInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LocationGroupInfo.getDefaultInstance();
} else {
if (criterionCase_ == 34) {
return locationGroupBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.LocationGroupInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setLocationGroup(com.google.ads.googleads.v10.common.LocationGroupInfo value) {
if (locationGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
locationGroupBuilder_.setMessage(value);
}
criterionCase_ = 34;
return this;
}
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setLocationGroup(
com.google.ads.googleads.v10.common.LocationGroupInfo.Builder builderForValue) {
if (locationGroupBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
locationGroupBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 34;
return this;
}
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeLocationGroup(com.google.ads.googleads.v10.common.LocationGroupInfo value) {
if (locationGroupBuilder_ == null) {
if (criterionCase_ == 34 &&
criterion_ != com.google.ads.googleads.v10.common.LocationGroupInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.LocationGroupInfo.newBuilder((com.google.ads.googleads.v10.common.LocationGroupInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 34) {
locationGroupBuilder_.mergeFrom(value);
} else {
locationGroupBuilder_.setMessage(value);
}
}
criterionCase_ = 34;
return this;
}
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearLocationGroup() {
if (locationGroupBuilder_ == null) {
if (criterionCase_ == 34) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 34) {
criterionCase_ = 0;
criterion_ = null;
}
locationGroupBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.LocationGroupInfo.Builder getLocationGroupBuilder() {
return getLocationGroupFieldBuilder().getBuilder();
}
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LocationGroupInfoOrBuilder getLocationGroupOrBuilder() {
if ((criterionCase_ == 34) && (locationGroupBuilder_ != null)) {
return locationGroupBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 34) {
return (com.google.ads.googleads.v10.common.LocationGroupInfo) criterion_;
}
return com.google.ads.googleads.v10.common.LocationGroupInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Location Group
*
*
* .google.ads.googleads.v10.common.LocationGroupInfo location_group = 34 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.LocationGroupInfo, com.google.ads.googleads.v10.common.LocationGroupInfo.Builder, com.google.ads.googleads.v10.common.LocationGroupInfoOrBuilder>
getLocationGroupFieldBuilder() {
if (locationGroupBuilder_ == null) {
if (!(criterionCase_ == 34)) {
criterion_ = com.google.ads.googleads.v10.common.LocationGroupInfo.getDefaultInstance();
}
locationGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.LocationGroupInfo, com.google.ads.googleads.v10.common.LocationGroupInfo.Builder, com.google.ads.googleads.v10.common.LocationGroupInfoOrBuilder>(
(com.google.ads.googleads.v10.common.LocationGroupInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 34;
onChanged();;
return locationGroupBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomAffinityInfo, com.google.ads.googleads.v10.common.CustomAffinityInfo.Builder, com.google.ads.googleads.v10.common.CustomAffinityInfoOrBuilder> customAffinityBuilder_;
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the customAffinity field is set.
*/
@java.lang.Override
public boolean hasCustomAffinity() {
return criterionCase_ == 36;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
* @return The customAffinity.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAffinityInfo getCustomAffinity() {
if (customAffinityBuilder_ == null) {
if (criterionCase_ == 36) {
return (com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomAffinityInfo.getDefaultInstance();
} else {
if (criterionCase_ == 36) {
return customAffinityBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.CustomAffinityInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCustomAffinity(com.google.ads.googleads.v10.common.CustomAffinityInfo value) {
if (customAffinityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
customAffinityBuilder_.setMessage(value);
}
criterionCase_ = 36;
return this;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCustomAffinity(
com.google.ads.googleads.v10.common.CustomAffinityInfo.Builder builderForValue) {
if (customAffinityBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
customAffinityBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 36;
return this;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeCustomAffinity(com.google.ads.googleads.v10.common.CustomAffinityInfo value) {
if (customAffinityBuilder_ == null) {
if (criterionCase_ == 36 &&
criterion_ != com.google.ads.googleads.v10.common.CustomAffinityInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.CustomAffinityInfo.newBuilder((com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 36) {
customAffinityBuilder_.mergeFrom(value);
} else {
customAffinityBuilder_.setMessage(value);
}
}
criterionCase_ = 36;
return this;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearCustomAffinity() {
if (customAffinityBuilder_ == null) {
if (criterionCase_ == 36) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 36) {
criterionCase_ = 0;
criterion_ = null;
}
customAffinityBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.CustomAffinityInfo.Builder getCustomAffinityBuilder() {
return getCustomAffinityFieldBuilder().getBuilder();
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAffinityInfoOrBuilder getCustomAffinityOrBuilder() {
if ((criterionCase_ == 36) && (customAffinityBuilder_ != null)) {
return customAffinityBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 36) {
return (com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomAffinityInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomAffinityInfo, com.google.ads.googleads.v10.common.CustomAffinityInfo.Builder, com.google.ads.googleads.v10.common.CustomAffinityInfoOrBuilder>
getCustomAffinityFieldBuilder() {
if (customAffinityBuilder_ == null) {
if (!(criterionCase_ == 36)) {
criterion_ = com.google.ads.googleads.v10.common.CustomAffinityInfo.getDefaultInstance();
}
customAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomAffinityInfo, com.google.ads.googleads.v10.common.CustomAffinityInfo.Builder, com.google.ads.googleads.v10.common.CustomAffinityInfoOrBuilder>(
(com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 36;
onChanged();;
return customAffinityBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomAudienceInfo, com.google.ads.googleads.v10.common.CustomAudienceInfo.Builder, com.google.ads.googleads.v10.common.CustomAudienceInfoOrBuilder> customAudienceBuilder_;
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the customAudience field is set.
*/
@java.lang.Override
public boolean hasCustomAudience() {
return criterionCase_ == 41;
}
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
* @return The customAudience.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAudienceInfo getCustomAudience() {
if (customAudienceBuilder_ == null) {
if (criterionCase_ == 41) {
return (com.google.ads.googleads.v10.common.CustomAudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomAudienceInfo.getDefaultInstance();
} else {
if (criterionCase_ == 41) {
return customAudienceBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.CustomAudienceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCustomAudience(com.google.ads.googleads.v10.common.CustomAudienceInfo value) {
if (customAudienceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
customAudienceBuilder_.setMessage(value);
}
criterionCase_ = 41;
return this;
}
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCustomAudience(
com.google.ads.googleads.v10.common.CustomAudienceInfo.Builder builderForValue) {
if (customAudienceBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
customAudienceBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 41;
return this;
}
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeCustomAudience(com.google.ads.googleads.v10.common.CustomAudienceInfo value) {
if (customAudienceBuilder_ == null) {
if (criterionCase_ == 41 &&
criterion_ != com.google.ads.googleads.v10.common.CustomAudienceInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.CustomAudienceInfo.newBuilder((com.google.ads.googleads.v10.common.CustomAudienceInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 41) {
customAudienceBuilder_.mergeFrom(value);
} else {
customAudienceBuilder_.setMessage(value);
}
}
criterionCase_ = 41;
return this;
}
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearCustomAudience() {
if (customAudienceBuilder_ == null) {
if (criterionCase_ == 41) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 41) {
criterionCase_ = 0;
criterion_ = null;
}
customAudienceBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.CustomAudienceInfo.Builder getCustomAudienceBuilder() {
return getCustomAudienceFieldBuilder().getBuilder();
}
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAudienceInfoOrBuilder getCustomAudienceOrBuilder() {
if ((criterionCase_ == 41) && (customAudienceBuilder_ != null)) {
return customAudienceBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 41) {
return (com.google.ads.googleads.v10.common.CustomAudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomAudienceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Custom Audience
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomAudienceInfo, com.google.ads.googleads.v10.common.CustomAudienceInfo.Builder, com.google.ads.googleads.v10.common.CustomAudienceInfoOrBuilder>
getCustomAudienceFieldBuilder() {
if (customAudienceBuilder_ == null) {
if (!(criterionCase_ == 41)) {
criterion_ = com.google.ads.googleads.v10.common.CustomAudienceInfo.getDefaultInstance();
}
customAudienceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomAudienceInfo, com.google.ads.googleads.v10.common.CustomAudienceInfo.Builder, com.google.ads.googleads.v10.common.CustomAudienceInfoOrBuilder>(
(com.google.ads.googleads.v10.common.CustomAudienceInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 41;
onChanged();;
return customAudienceBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CombinedAudienceInfo, com.google.ads.googleads.v10.common.CombinedAudienceInfo.Builder, com.google.ads.googleads.v10.common.CombinedAudienceInfoOrBuilder> combinedAudienceBuilder_;
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the combinedAudience field is set.
*/
@java.lang.Override
public boolean hasCombinedAudience() {
return criterionCase_ == 42;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
* @return The combinedAudience.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CombinedAudienceInfo getCombinedAudience() {
if (combinedAudienceBuilder_ == null) {
if (criterionCase_ == 42) {
return (com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CombinedAudienceInfo.getDefaultInstance();
} else {
if (criterionCase_ == 42) {
return combinedAudienceBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.CombinedAudienceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCombinedAudience(com.google.ads.googleads.v10.common.CombinedAudienceInfo value) {
if (combinedAudienceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
combinedAudienceBuilder_.setMessage(value);
}
criterionCase_ = 42;
return this;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCombinedAudience(
com.google.ads.googleads.v10.common.CombinedAudienceInfo.Builder builderForValue) {
if (combinedAudienceBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
combinedAudienceBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 42;
return this;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeCombinedAudience(com.google.ads.googleads.v10.common.CombinedAudienceInfo value) {
if (combinedAudienceBuilder_ == null) {
if (criterionCase_ == 42 &&
criterion_ != com.google.ads.googleads.v10.common.CombinedAudienceInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.CombinedAudienceInfo.newBuilder((com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 42) {
combinedAudienceBuilder_.mergeFrom(value);
} else {
combinedAudienceBuilder_.setMessage(value);
}
}
criterionCase_ = 42;
return this;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearCombinedAudience() {
if (combinedAudienceBuilder_ == null) {
if (criterionCase_ == 42) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 42) {
criterionCase_ = 0;
criterion_ = null;
}
combinedAudienceBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.CombinedAudienceInfo.Builder getCombinedAudienceBuilder() {
return getCombinedAudienceFieldBuilder().getBuilder();
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CombinedAudienceInfoOrBuilder getCombinedAudienceOrBuilder() {
if ((criterionCase_ == 42) && (combinedAudienceBuilder_ != null)) {
return combinedAudienceBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 42) {
return (com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CombinedAudienceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CombinedAudienceInfo, com.google.ads.googleads.v10.common.CombinedAudienceInfo.Builder, com.google.ads.googleads.v10.common.CombinedAudienceInfoOrBuilder>
getCombinedAudienceFieldBuilder() {
if (combinedAudienceBuilder_ == null) {
if (!(criterionCase_ == 42)) {
criterion_ = com.google.ads.googleads.v10.common.CombinedAudienceInfo.getDefaultInstance();
}
combinedAudienceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CombinedAudienceInfo, com.google.ads.googleads.v10.common.CombinedAudienceInfo.Builder, com.google.ads.googleads.v10.common.CombinedAudienceInfoOrBuilder>(
(com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 42;
onChanged();;
return combinedAudienceBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.KeywordThemeInfo, com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder, com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder> keywordThemeBuilder_;
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the keywordTheme field is set.
*/
@java.lang.Override
public boolean hasKeywordTheme() {
return criterionCase_ == 45;
}
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
* @return The keywordTheme.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordThemeInfo getKeywordTheme() {
if (keywordThemeBuilder_ == null) {
if (criterionCase_ == 45) {
return (com.google.ads.googleads.v10.common.KeywordThemeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.KeywordThemeInfo.getDefaultInstance();
} else {
if (criterionCase_ == 45) {
return keywordThemeBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.KeywordThemeInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setKeywordTheme(com.google.ads.googleads.v10.common.KeywordThemeInfo value) {
if (keywordThemeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
keywordThemeBuilder_.setMessage(value);
}
criterionCase_ = 45;
return this;
}
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setKeywordTheme(
com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder builderForValue) {
if (keywordThemeBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
keywordThemeBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 45;
return this;
}
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeKeywordTheme(com.google.ads.googleads.v10.common.KeywordThemeInfo value) {
if (keywordThemeBuilder_ == null) {
if (criterionCase_ == 45 &&
criterion_ != com.google.ads.googleads.v10.common.KeywordThemeInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.KeywordThemeInfo.newBuilder((com.google.ads.googleads.v10.common.KeywordThemeInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 45) {
keywordThemeBuilder_.mergeFrom(value);
} else {
keywordThemeBuilder_.setMessage(value);
}
}
criterionCase_ = 45;
return this;
}
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearKeywordTheme() {
if (keywordThemeBuilder_ == null) {
if (criterionCase_ == 45) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 45) {
criterionCase_ = 0;
criterion_ = null;
}
keywordThemeBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder getKeywordThemeBuilder() {
return getKeywordThemeFieldBuilder().getBuilder();
}
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder getKeywordThemeOrBuilder() {
if ((criterionCase_ == 45) && (keywordThemeBuilder_ != null)) {
return keywordThemeBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 45) {
return (com.google.ads.googleads.v10.common.KeywordThemeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.KeywordThemeInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Smart Campaign Keyword Theme.
*
*
* .google.ads.googleads.v10.common.KeywordThemeInfo keyword_theme = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.KeywordThemeInfo, com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder, com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder>
getKeywordThemeFieldBuilder() {
if (keywordThemeBuilder_ == null) {
if (!(criterionCase_ == 45)) {
criterion_ = com.google.ads.googleads.v10.common.KeywordThemeInfo.getDefaultInstance();
}
keywordThemeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.KeywordThemeInfo, com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder, com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder>(
(com.google.ads.googleads.v10.common.KeywordThemeInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 45;
onChanged();;
return keywordThemeBuilder_;
}
@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.v10.resources.CampaignCriterion)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.CampaignCriterion)
private static final com.google.ads.googleads.v10.resources.CampaignCriterion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.CampaignCriterion();
}
public static com.google.ads.googleads.v10.resources.CampaignCriterion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CampaignCriterion 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.v10.resources.CampaignCriterion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy