com.google.ads.googleads.v10.resources.AdGroupCriterion Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/resources/ad_group_criterion.proto
package com.google.ads.googleads.v10.resources;
/**
*
* An ad group criterion.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.AdGroupCriterion}
*/
public final class AdGroupCriterion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.AdGroupCriterion)
AdGroupCriterionOrBuilder {
private static final long serialVersionUID = 0L;
// Use AdGroupCriterion.newBuilder() to construct.
private AdGroupCriterion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AdGroupCriterion() {
resourceName_ = "";
displayName_ = "";
status_ = 0;
adGroup_ = "";
type_ = 0;
systemServingStatus_ = 0;
approvalStatus_ = 0;
disapprovalReasons_ = com.google.protobuf.LazyStringArrayList.EMPTY;
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
effectiveCpcBidSource_ = 0;
effectiveCpmBidSource_ = 0;
effectiveCpvBidSource_ = 0;
effectivePercentCpcBidSource_ = 0;
finalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
finalUrlSuffix_ = "";
trackingUrlTemplate_ = "";
urlCustomParameters_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AdGroupCriterion();
}
@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.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.AdGroupCriterion.class, com.google.ads.googleads.v10.resources.AdGroupCriterion.Builder.class);
}
public interface QualityInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The quality score.
* This field may not be populated if Google does not have enough
* information to determine a value.
*
*
* optional int32 quality_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the qualityScore field is set.
*/
boolean hasQualityScore();
/**
*
* Output only. The quality score.
* This field may not be populated if Google does not have enough
* information to determine a value.
*
*
* optional int32 quality_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The qualityScore.
*/
int getQualityScore();
/**
*
* Output only. The performance of the ad compared to other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for creativeQualityScore.
*/
int getCreativeQualityScoreValue();
/**
*
* Output only. The performance of the ad compared to other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The creativeQualityScore.
*/
com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket getCreativeQualityScore();
/**
*
* Output only. The quality score of the landing page.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for postClickQualityScore.
*/
int getPostClickQualityScoreValue();
/**
*
* Output only. The quality score of the landing page.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The postClickQualityScore.
*/
com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket getPostClickQualityScore();
/**
*
* Output only. The click-through rate compared to that of other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for searchPredictedCtr.
*/
int getSearchPredictedCtrValue();
/**
*
* Output only. The click-through rate compared to that of other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The searchPredictedCtr.
*/
com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket getSearchPredictedCtr();
}
/**
*
* A container for ad group criterion quality information.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo}
*/
public static final class QualityInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo)
QualityInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use QualityInfo.newBuilder() to construct.
private QualityInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QualityInfo() {
creativeQualityScore_ = 0;
postClickQualityScore_ = 0;
searchPredictedCtr_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QualityInfo();
}
@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.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_QualityInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_QualityInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.class, com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.Builder.class);
}
private int bitField0_;
public static final int QUALITY_SCORE_FIELD_NUMBER = 5;
private int qualityScore_;
/**
*
* Output only. The quality score.
* This field may not be populated if Google does not have enough
* information to determine a value.
*
*
* optional int32 quality_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the qualityScore field is set.
*/
@java.lang.Override
public boolean hasQualityScore() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The quality score.
* This field may not be populated if Google does not have enough
* information to determine a value.
*
*
* optional int32 quality_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The qualityScore.
*/
@java.lang.Override
public int getQualityScore() {
return qualityScore_;
}
public static final int CREATIVE_QUALITY_SCORE_FIELD_NUMBER = 2;
private int creativeQualityScore_;
/**
*
* Output only. The performance of the ad compared to other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for creativeQualityScore.
*/
@java.lang.Override public int getCreativeQualityScoreValue() {
return creativeQualityScore_;
}
/**
*
* Output only. The performance of the ad compared to other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The creativeQualityScore.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket getCreativeQualityScore() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(creativeQualityScore_);
return result == null ? com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result;
}
public static final int POST_CLICK_QUALITY_SCORE_FIELD_NUMBER = 3;
private int postClickQualityScore_;
/**
*
* Output only. The quality score of the landing page.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for postClickQualityScore.
*/
@java.lang.Override public int getPostClickQualityScoreValue() {
return postClickQualityScore_;
}
/**
*
* Output only. The quality score of the landing page.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The postClickQualityScore.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket getPostClickQualityScore() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(postClickQualityScore_);
return result == null ? com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result;
}
public static final int SEARCH_PREDICTED_CTR_FIELD_NUMBER = 4;
private int searchPredictedCtr_;
/**
*
* Output only. The click-through rate compared to that of other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for searchPredictedCtr.
*/
@java.lang.Override public int getSearchPredictedCtrValue() {
return searchPredictedCtr_;
}
/**
*
* Output only. The click-through rate compared to that of other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The searchPredictedCtr.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket getSearchPredictedCtr() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(searchPredictedCtr_);
return result == null ? com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result;
}
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 (creativeQualityScore_ != com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) {
output.writeEnum(2, creativeQualityScore_);
}
if (postClickQualityScore_ != com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) {
output.writeEnum(3, postClickQualityScore_);
}
if (searchPredictedCtr_ != com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) {
output.writeEnum(4, searchPredictedCtr_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(5, qualityScore_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (creativeQualityScore_ != com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, creativeQualityScore_);
}
if (postClickQualityScore_ != com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, postClickQualityScore_);
}
if (searchPredictedCtr_ != com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, searchPredictedCtr_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, qualityScore_);
}
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.AdGroupCriterion.QualityInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo other = (com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo) obj;
if (hasQualityScore() != other.hasQualityScore()) return false;
if (hasQualityScore()) {
if (getQualityScore()
!= other.getQualityScore()) return false;
}
if (creativeQualityScore_ != other.creativeQualityScore_) return false;
if (postClickQualityScore_ != other.postClickQualityScore_) return false;
if (searchPredictedCtr_ != other.searchPredictedCtr_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasQualityScore()) {
hash = (37 * hash) + QUALITY_SCORE_FIELD_NUMBER;
hash = (53 * hash) + getQualityScore();
}
hash = (37 * hash) + CREATIVE_QUALITY_SCORE_FIELD_NUMBER;
hash = (53 * hash) + creativeQualityScore_;
hash = (37 * hash) + POST_CLICK_QUALITY_SCORE_FIELD_NUMBER;
hash = (53 * hash) + postClickQualityScore_;
hash = (37 * hash) + SEARCH_PREDICTED_CTR_FIELD_NUMBER;
hash = (53 * hash) + searchPredictedCtr_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo 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.AdGroupCriterion.QualityInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo 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.AdGroupCriterion.QualityInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo 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.AdGroupCriterion.QualityInfo 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.AdGroupCriterion.QualityInfo 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.AdGroupCriterion.QualityInfo 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.AdGroupCriterion.QualityInfo 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.AdGroupCriterion.QualityInfo 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.AdGroupCriterion.QualityInfo 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.AdGroupCriterion.QualityInfo 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 container for ad group criterion quality information.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo)
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_QualityInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_QualityInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.class, com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
qualityScore_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
creativeQualityScore_ = 0;
postClickQualityScore_ = 0;
searchPredictedCtr_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_QualityInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo build() {
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo buildPartial() {
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo result = new com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.qualityScore_ = qualityScore_;
to_bitField0_ |= 0x00000001;
}
result.creativeQualityScore_ = creativeQualityScore_;
result.postClickQualityScore_ = postClickQualityScore_;
result.searchPredictedCtr_ = searchPredictedCtr_;
result.bitField0_ = to_bitField0_;
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.AdGroupCriterion.QualityInfo) {
return mergeFrom((com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo other) {
if (other == com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.getDefaultInstance()) return this;
if (other.hasQualityScore()) {
setQualityScore(other.getQualityScore());
}
if (other.creativeQualityScore_ != 0) {
setCreativeQualityScoreValue(other.getCreativeQualityScoreValue());
}
if (other.postClickQualityScore_ != 0) {
setPostClickQualityScoreValue(other.getPostClickQualityScoreValue());
}
if (other.searchPredictedCtr_ != 0) {
setSearchPredictedCtrValue(other.getSearchPredictedCtrValue());
}
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 16: {
creativeQualityScore_ = input.readEnum();
break;
} // case 16
case 24: {
postClickQualityScore_ = input.readEnum();
break;
} // case 24
case 32: {
searchPredictedCtr_ = input.readEnum();
break;
} // case 32
case 40: {
qualityScore_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int qualityScore_ ;
/**
*
* Output only. The quality score.
* This field may not be populated if Google does not have enough
* information to determine a value.
*
*
* optional int32 quality_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the qualityScore field is set.
*/
@java.lang.Override
public boolean hasQualityScore() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The quality score.
* This field may not be populated if Google does not have enough
* information to determine a value.
*
*
* optional int32 quality_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The qualityScore.
*/
@java.lang.Override
public int getQualityScore() {
return qualityScore_;
}
/**
*
* Output only. The quality score.
* This field may not be populated if Google does not have enough
* information to determine a value.
*
*
* optional int32 quality_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The qualityScore to set.
* @return This builder for chaining.
*/
public Builder setQualityScore(int value) {
bitField0_ |= 0x00000001;
qualityScore_ = value;
onChanged();
return this;
}
/**
*
* Output only. The quality score.
* This field may not be populated if Google does not have enough
* information to determine a value.
*
*
* optional int32 quality_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearQualityScore() {
bitField0_ = (bitField0_ & ~0x00000001);
qualityScore_ = 0;
onChanged();
return this;
}
private int creativeQualityScore_ = 0;
/**
*
* Output only. The performance of the ad compared to other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for creativeQualityScore.
*/
@java.lang.Override public int getCreativeQualityScoreValue() {
return creativeQualityScore_;
}
/**
*
* Output only. The performance of the ad compared to other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for creativeQualityScore to set.
* @return This builder for chaining.
*/
public Builder setCreativeQualityScoreValue(int value) {
creativeQualityScore_ = value;
onChanged();
return this;
}
/**
*
* Output only. The performance of the ad compared to other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The creativeQualityScore.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket getCreativeQualityScore() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(creativeQualityScore_);
return result == null ? com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result;
}
/**
*
* Output only. The performance of the ad compared to other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The creativeQualityScore to set.
* @return This builder for chaining.
*/
public Builder setCreativeQualityScore(com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket value) {
if (value == null) {
throw new NullPointerException();
}
creativeQualityScore_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The performance of the ad compared to other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCreativeQualityScore() {
creativeQualityScore_ = 0;
onChanged();
return this;
}
private int postClickQualityScore_ = 0;
/**
*
* Output only. The quality score of the landing page.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for postClickQualityScore.
*/
@java.lang.Override public int getPostClickQualityScoreValue() {
return postClickQualityScore_;
}
/**
*
* Output only. The quality score of the landing page.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for postClickQualityScore to set.
* @return This builder for chaining.
*/
public Builder setPostClickQualityScoreValue(int value) {
postClickQualityScore_ = value;
onChanged();
return this;
}
/**
*
* Output only. The quality score of the landing page.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The postClickQualityScore.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket getPostClickQualityScore() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(postClickQualityScore_);
return result == null ? com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result;
}
/**
*
* Output only. The quality score of the landing page.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The postClickQualityScore to set.
* @return This builder for chaining.
*/
public Builder setPostClickQualityScore(com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket value) {
if (value == null) {
throw new NullPointerException();
}
postClickQualityScore_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The quality score of the landing page.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearPostClickQualityScore() {
postClickQualityScore_ = 0;
onChanged();
return this;
}
private int searchPredictedCtr_ = 0;
/**
*
* Output only. The click-through rate compared to that of other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for searchPredictedCtr.
*/
@java.lang.Override public int getSearchPredictedCtrValue() {
return searchPredictedCtr_;
}
/**
*
* Output only. The click-through rate compared to that of other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for searchPredictedCtr to set.
* @return This builder for chaining.
*/
public Builder setSearchPredictedCtrValue(int value) {
searchPredictedCtr_ = value;
onChanged();
return this;
}
/**
*
* Output only. The click-through rate compared to that of other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The searchPredictedCtr.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket getSearchPredictedCtr() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(searchPredictedCtr_);
return result == null ? com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result;
}
/**
*
* Output only. The click-through rate compared to that of other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The searchPredictedCtr to set.
* @return This builder for chaining.
*/
public Builder setSearchPredictedCtr(com.google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket value) {
if (value == null) {
throw new NullPointerException();
}
searchPredictedCtr_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The click-through rate compared to that of other advertisers.
*
*
* .google.ads.googleads.v10.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearSearchPredictedCtr() {
searchPredictedCtr_ = 0;
onChanged();
return this;
}
@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.AdGroupCriterion.QualityInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo)
private static final com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo();
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QualityInfo 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.AdGroupCriterion.QualityInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PositionEstimatesOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The estimate of the CPC bid required for ad to be shown on first
* page of search results.
*
*
* optional int64 first_page_cpc_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the firstPageCpcMicros field is set.
*/
boolean hasFirstPageCpcMicros();
/**
*
* Output only. The estimate of the CPC bid required for ad to be shown on first
* page of search results.
*
*
* optional int64 first_page_cpc_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The firstPageCpcMicros.
*/
long getFirstPageCpcMicros();
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed in first
* position, at the top of the first page of search results.
*
*
* optional int64 first_position_cpc_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the firstPositionCpcMicros field is set.
*/
boolean hasFirstPositionCpcMicros();
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed in first
* position, at the top of the first page of search results.
*
*
* optional int64 first_position_cpc_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The firstPositionCpcMicros.
*/
long getFirstPositionCpcMicros();
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed at the top
* of the first page of search results.
*
*
* optional int64 top_of_page_cpc_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the topOfPageCpcMicros field is set.
*/
boolean hasTopOfPageCpcMicros();
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed at the top
* of the first page of search results.
*
*
* optional int64 top_of_page_cpc_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The topOfPageCpcMicros.
*/
long getTopOfPageCpcMicros();
/**
*
* Output only. Estimate of how many clicks per week you might get by changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_clicks_at_first_position_cpc = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the estimatedAddClicksAtFirstPositionCpc field is set.
*/
boolean hasEstimatedAddClicksAtFirstPositionCpc();
/**
*
* Output only. Estimate of how many clicks per week you might get by changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_clicks_at_first_position_cpc = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedAddClicksAtFirstPositionCpc.
*/
long getEstimatedAddClicksAtFirstPositionCpc();
/**
*
* Output only. Estimate of how your cost per week might change when changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_cost_at_first_position_cpc = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the estimatedAddCostAtFirstPositionCpc field is set.
*/
boolean hasEstimatedAddCostAtFirstPositionCpc();
/**
*
* Output only. Estimate of how your cost per week might change when changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_cost_at_first_position_cpc = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedAddCostAtFirstPositionCpc.
*/
long getEstimatedAddCostAtFirstPositionCpc();
}
/**
*
* Estimates for criterion bids at various positions.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates}
*/
public static final class PositionEstimates extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates)
PositionEstimatesOrBuilder {
private static final long serialVersionUID = 0L;
// Use PositionEstimates.newBuilder() to construct.
private PositionEstimates(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PositionEstimates() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PositionEstimates();
}
@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.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_PositionEstimates_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_PositionEstimates_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.class, com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.Builder.class);
}
private int bitField0_;
public static final int FIRST_PAGE_CPC_MICROS_FIELD_NUMBER = 6;
private long firstPageCpcMicros_;
/**
*
* Output only. The estimate of the CPC bid required for ad to be shown on first
* page of search results.
*
*
* optional int64 first_page_cpc_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the firstPageCpcMicros field is set.
*/
@java.lang.Override
public boolean hasFirstPageCpcMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be shown on first
* page of search results.
*
*
* optional int64 first_page_cpc_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The firstPageCpcMicros.
*/
@java.lang.Override
public long getFirstPageCpcMicros() {
return firstPageCpcMicros_;
}
public static final int FIRST_POSITION_CPC_MICROS_FIELD_NUMBER = 7;
private long firstPositionCpcMicros_;
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed in first
* position, at the top of the first page of search results.
*
*
* optional int64 first_position_cpc_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the firstPositionCpcMicros field is set.
*/
@java.lang.Override
public boolean hasFirstPositionCpcMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed in first
* position, at the top of the first page of search results.
*
*
* optional int64 first_position_cpc_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The firstPositionCpcMicros.
*/
@java.lang.Override
public long getFirstPositionCpcMicros() {
return firstPositionCpcMicros_;
}
public static final int TOP_OF_PAGE_CPC_MICROS_FIELD_NUMBER = 8;
private long topOfPageCpcMicros_;
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed at the top
* of the first page of search results.
*
*
* optional int64 top_of_page_cpc_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the topOfPageCpcMicros field is set.
*/
@java.lang.Override
public boolean hasTopOfPageCpcMicros() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed at the top
* of the first page of search results.
*
*
* optional int64 top_of_page_cpc_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The topOfPageCpcMicros.
*/
@java.lang.Override
public long getTopOfPageCpcMicros() {
return topOfPageCpcMicros_;
}
public static final int ESTIMATED_ADD_CLICKS_AT_FIRST_POSITION_CPC_FIELD_NUMBER = 9;
private long estimatedAddClicksAtFirstPositionCpc_;
/**
*
* Output only. Estimate of how many clicks per week you might get by changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_clicks_at_first_position_cpc = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the estimatedAddClicksAtFirstPositionCpc field is set.
*/
@java.lang.Override
public boolean hasEstimatedAddClicksAtFirstPositionCpc() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. Estimate of how many clicks per week you might get by changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_clicks_at_first_position_cpc = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedAddClicksAtFirstPositionCpc.
*/
@java.lang.Override
public long getEstimatedAddClicksAtFirstPositionCpc() {
return estimatedAddClicksAtFirstPositionCpc_;
}
public static final int ESTIMATED_ADD_COST_AT_FIRST_POSITION_CPC_FIELD_NUMBER = 10;
private long estimatedAddCostAtFirstPositionCpc_;
/**
*
* Output only. Estimate of how your cost per week might change when changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_cost_at_first_position_cpc = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the estimatedAddCostAtFirstPositionCpc field is set.
*/
@java.lang.Override
public boolean hasEstimatedAddCostAtFirstPositionCpc() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Output only. Estimate of how your cost per week might change when changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_cost_at_first_position_cpc = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedAddCostAtFirstPositionCpc.
*/
@java.lang.Override
public long getEstimatedAddCostAtFirstPositionCpc() {
return estimatedAddCostAtFirstPositionCpc_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(6, firstPageCpcMicros_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(7, firstPositionCpcMicros_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(8, topOfPageCpcMicros_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(9, estimatedAddClicksAtFirstPositionCpc_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(10, estimatedAddCostAtFirstPositionCpc_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, firstPageCpcMicros_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, firstPositionCpcMicros_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, topOfPageCpcMicros_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, estimatedAddClicksAtFirstPositionCpc_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, estimatedAddCostAtFirstPositionCpc_);
}
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.AdGroupCriterion.PositionEstimates)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates other = (com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates) obj;
if (hasFirstPageCpcMicros() != other.hasFirstPageCpcMicros()) return false;
if (hasFirstPageCpcMicros()) {
if (getFirstPageCpcMicros()
!= other.getFirstPageCpcMicros()) return false;
}
if (hasFirstPositionCpcMicros() != other.hasFirstPositionCpcMicros()) return false;
if (hasFirstPositionCpcMicros()) {
if (getFirstPositionCpcMicros()
!= other.getFirstPositionCpcMicros()) return false;
}
if (hasTopOfPageCpcMicros() != other.hasTopOfPageCpcMicros()) return false;
if (hasTopOfPageCpcMicros()) {
if (getTopOfPageCpcMicros()
!= other.getTopOfPageCpcMicros()) return false;
}
if (hasEstimatedAddClicksAtFirstPositionCpc() != other.hasEstimatedAddClicksAtFirstPositionCpc()) return false;
if (hasEstimatedAddClicksAtFirstPositionCpc()) {
if (getEstimatedAddClicksAtFirstPositionCpc()
!= other.getEstimatedAddClicksAtFirstPositionCpc()) return false;
}
if (hasEstimatedAddCostAtFirstPositionCpc() != other.hasEstimatedAddCostAtFirstPositionCpc()) return false;
if (hasEstimatedAddCostAtFirstPositionCpc()) {
if (getEstimatedAddCostAtFirstPositionCpc()
!= other.getEstimatedAddCostAtFirstPositionCpc()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasFirstPageCpcMicros()) {
hash = (37 * hash) + FIRST_PAGE_CPC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFirstPageCpcMicros());
}
if (hasFirstPositionCpcMicros()) {
hash = (37 * hash) + FIRST_POSITION_CPC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFirstPositionCpcMicros());
}
if (hasTopOfPageCpcMicros()) {
hash = (37 * hash) + TOP_OF_PAGE_CPC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTopOfPageCpcMicros());
}
if (hasEstimatedAddClicksAtFirstPositionCpc()) {
hash = (37 * hash) + ESTIMATED_ADD_CLICKS_AT_FIRST_POSITION_CPC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEstimatedAddClicksAtFirstPositionCpc());
}
if (hasEstimatedAddCostAtFirstPositionCpc()) {
hash = (37 * hash) + ESTIMATED_ADD_COST_AT_FIRST_POSITION_CPC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEstimatedAddCostAtFirstPositionCpc());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates 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.AdGroupCriterion.PositionEstimates parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates 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.AdGroupCriterion.PositionEstimates parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates 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.AdGroupCriterion.PositionEstimates 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.AdGroupCriterion.PositionEstimates 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.AdGroupCriterion.PositionEstimates 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.AdGroupCriterion.PositionEstimates 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.AdGroupCriterion.PositionEstimates 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.AdGroupCriterion.PositionEstimates 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.AdGroupCriterion.PositionEstimates 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;
}
/**
*
* Estimates for criterion bids at various positions.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates)
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimatesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_PositionEstimates_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_PositionEstimates_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.class, com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
firstPageCpcMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
firstPositionCpcMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
topOfPageCpcMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
estimatedAddClicksAtFirstPositionCpc_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
estimatedAddCostAtFirstPositionCpc_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_PositionEstimates_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates build() {
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates buildPartial() {
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates result = new com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.firstPageCpcMicros_ = firstPageCpcMicros_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.firstPositionCpcMicros_ = firstPositionCpcMicros_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.topOfPageCpcMicros_ = topOfPageCpcMicros_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.estimatedAddClicksAtFirstPositionCpc_ = estimatedAddClicksAtFirstPositionCpc_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.estimatedAddCostAtFirstPositionCpc_ = estimatedAddCostAtFirstPositionCpc_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ = to_bitField0_;
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.AdGroupCriterion.PositionEstimates) {
return mergeFrom((com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates other) {
if (other == com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.getDefaultInstance()) return this;
if (other.hasFirstPageCpcMicros()) {
setFirstPageCpcMicros(other.getFirstPageCpcMicros());
}
if (other.hasFirstPositionCpcMicros()) {
setFirstPositionCpcMicros(other.getFirstPositionCpcMicros());
}
if (other.hasTopOfPageCpcMicros()) {
setTopOfPageCpcMicros(other.getTopOfPageCpcMicros());
}
if (other.hasEstimatedAddClicksAtFirstPositionCpc()) {
setEstimatedAddClicksAtFirstPositionCpc(other.getEstimatedAddClicksAtFirstPositionCpc());
}
if (other.hasEstimatedAddCostAtFirstPositionCpc()) {
setEstimatedAddCostAtFirstPositionCpc(other.getEstimatedAddCostAtFirstPositionCpc());
}
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 48: {
firstPageCpcMicros_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 48
case 56: {
firstPositionCpcMicros_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 56
case 64: {
topOfPageCpcMicros_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 64
case 72: {
estimatedAddClicksAtFirstPositionCpc_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 72
case 80: {
estimatedAddCostAtFirstPositionCpc_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 80
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long firstPageCpcMicros_ ;
/**
*
* Output only. The estimate of the CPC bid required for ad to be shown on first
* page of search results.
*
*
* optional int64 first_page_cpc_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the firstPageCpcMicros field is set.
*/
@java.lang.Override
public boolean hasFirstPageCpcMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be shown on first
* page of search results.
*
*
* optional int64 first_page_cpc_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The firstPageCpcMicros.
*/
@java.lang.Override
public long getFirstPageCpcMicros() {
return firstPageCpcMicros_;
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be shown on first
* page of search results.
*
*
* optional int64 first_page_cpc_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The firstPageCpcMicros to set.
* @return This builder for chaining.
*/
public Builder setFirstPageCpcMicros(long value) {
bitField0_ |= 0x00000001;
firstPageCpcMicros_ = value;
onChanged();
return this;
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be shown on first
* page of search results.
*
*
* optional int64 first_page_cpc_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearFirstPageCpcMicros() {
bitField0_ = (bitField0_ & ~0x00000001);
firstPageCpcMicros_ = 0L;
onChanged();
return this;
}
private long firstPositionCpcMicros_ ;
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed in first
* position, at the top of the first page of search results.
*
*
* optional int64 first_position_cpc_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the firstPositionCpcMicros field is set.
*/
@java.lang.Override
public boolean hasFirstPositionCpcMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed in first
* position, at the top of the first page of search results.
*
*
* optional int64 first_position_cpc_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The firstPositionCpcMicros.
*/
@java.lang.Override
public long getFirstPositionCpcMicros() {
return firstPositionCpcMicros_;
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed in first
* position, at the top of the first page of search results.
*
*
* optional int64 first_position_cpc_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The firstPositionCpcMicros to set.
* @return This builder for chaining.
*/
public Builder setFirstPositionCpcMicros(long value) {
bitField0_ |= 0x00000002;
firstPositionCpcMicros_ = value;
onChanged();
return this;
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed in first
* position, at the top of the first page of search results.
*
*
* optional int64 first_position_cpc_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearFirstPositionCpcMicros() {
bitField0_ = (bitField0_ & ~0x00000002);
firstPositionCpcMicros_ = 0L;
onChanged();
return this;
}
private long topOfPageCpcMicros_ ;
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed at the top
* of the first page of search results.
*
*
* optional int64 top_of_page_cpc_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the topOfPageCpcMicros field is set.
*/
@java.lang.Override
public boolean hasTopOfPageCpcMicros() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed at the top
* of the first page of search results.
*
*
* optional int64 top_of_page_cpc_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The topOfPageCpcMicros.
*/
@java.lang.Override
public long getTopOfPageCpcMicros() {
return topOfPageCpcMicros_;
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed at the top
* of the first page of search results.
*
*
* optional int64 top_of_page_cpc_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The topOfPageCpcMicros to set.
* @return This builder for chaining.
*/
public Builder setTopOfPageCpcMicros(long value) {
bitField0_ |= 0x00000004;
topOfPageCpcMicros_ = value;
onChanged();
return this;
}
/**
*
* Output only. The estimate of the CPC bid required for ad to be displayed at the top
* of the first page of search results.
*
*
* optional int64 top_of_page_cpc_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearTopOfPageCpcMicros() {
bitField0_ = (bitField0_ & ~0x00000004);
topOfPageCpcMicros_ = 0L;
onChanged();
return this;
}
private long estimatedAddClicksAtFirstPositionCpc_ ;
/**
*
* Output only. Estimate of how many clicks per week you might get by changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_clicks_at_first_position_cpc = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the estimatedAddClicksAtFirstPositionCpc field is set.
*/
@java.lang.Override
public boolean hasEstimatedAddClicksAtFirstPositionCpc() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. Estimate of how many clicks per week you might get by changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_clicks_at_first_position_cpc = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedAddClicksAtFirstPositionCpc.
*/
@java.lang.Override
public long getEstimatedAddClicksAtFirstPositionCpc() {
return estimatedAddClicksAtFirstPositionCpc_;
}
/**
*
* Output only. Estimate of how many clicks per week you might get by changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_clicks_at_first_position_cpc = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The estimatedAddClicksAtFirstPositionCpc to set.
* @return This builder for chaining.
*/
public Builder setEstimatedAddClicksAtFirstPositionCpc(long value) {
bitField0_ |= 0x00000008;
estimatedAddClicksAtFirstPositionCpc_ = value;
onChanged();
return this;
}
/**
*
* Output only. Estimate of how many clicks per week you might get by changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_clicks_at_first_position_cpc = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEstimatedAddClicksAtFirstPositionCpc() {
bitField0_ = (bitField0_ & ~0x00000008);
estimatedAddClicksAtFirstPositionCpc_ = 0L;
onChanged();
return this;
}
private long estimatedAddCostAtFirstPositionCpc_ ;
/**
*
* Output only. Estimate of how your cost per week might change when changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_cost_at_first_position_cpc = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the estimatedAddCostAtFirstPositionCpc field is set.
*/
@java.lang.Override
public boolean hasEstimatedAddCostAtFirstPositionCpc() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Output only. Estimate of how your cost per week might change when changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_cost_at_first_position_cpc = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedAddCostAtFirstPositionCpc.
*/
@java.lang.Override
public long getEstimatedAddCostAtFirstPositionCpc() {
return estimatedAddCostAtFirstPositionCpc_;
}
/**
*
* Output only. Estimate of how your cost per week might change when changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_cost_at_first_position_cpc = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The estimatedAddCostAtFirstPositionCpc to set.
* @return This builder for chaining.
*/
public Builder setEstimatedAddCostAtFirstPositionCpc(long value) {
bitField0_ |= 0x00000010;
estimatedAddCostAtFirstPositionCpc_ = value;
onChanged();
return this;
}
/**
*
* Output only. Estimate of how your cost per week might change when changing your
* keyword bid to the value in first_position_cpc_micros.
*
*
* optional int64 estimated_add_cost_at_first_position_cpc = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEstimatedAddCostAtFirstPositionCpc() {
bitField0_ = (bitField0_ & ~0x00000010);
estimatedAddCostAtFirstPositionCpc_ = 0L;
onChanged();
return this;
}
@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.AdGroupCriterion.PositionEstimates)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates)
private static final com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates();
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PositionEstimates 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.AdGroupCriterion.PositionEstimates getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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(27),
PLACEMENT(28),
MOBILE_APP_CATEGORY(29),
MOBILE_APPLICATION(30),
LISTING_GROUP(32),
AGE_RANGE(36),
GENDER(37),
INCOME_RANGE(38),
PARENTAL_STATUS(39),
USER_LIST(42),
YOUTUBE_VIDEO(40),
YOUTUBE_CHANNEL(41),
TOPIC(43),
USER_INTEREST(45),
WEBPAGE(46),
APP_PAYMENT_MODEL(47),
CUSTOM_AFFINITY(48),
CUSTOM_INTENT(49),
CUSTOM_AUDIENCE(74),
COMBINED_AUDIENCE(75),
AUDIENCE(79),
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 27: return KEYWORD;
case 28: return PLACEMENT;
case 29: return MOBILE_APP_CATEGORY;
case 30: return MOBILE_APPLICATION;
case 32: return LISTING_GROUP;
case 36: return AGE_RANGE;
case 37: return GENDER;
case 38: return INCOME_RANGE;
case 39: return PARENTAL_STATUS;
case 42: return USER_LIST;
case 40: return YOUTUBE_VIDEO;
case 41: return YOUTUBE_CHANNEL;
case 43: return TOPIC;
case 45: return USER_INTEREST;
case 46: return WEBPAGE;
case 47: return APP_PAYMENT_MODEL;
case 48: return CUSTOM_AFFINITY;
case 49: return CUSTOM_INTENT;
case 74: return CUSTOM_AUDIENCE;
case 75: return COMBINED_AUDIENCE;
case 79: return AUDIENCE;
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 ad group criterion.
* Ad group criterion resource names have the form:
* `customers/{customer_id}/adGroupCriteria/{ad_group_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 ad group criterion.
* Ad group criterion resource names have the form:
* `customers/{customer_id}/adGroupCriteria/{ad_group_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 CRITERION_ID_FIELD_NUMBER = 56;
private long criterionId_;
/**
*
* Output only. The ID of the criterion.
* This field is ignored for mutates.
*
*
* optional int64 criterion_id = 56 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the criterionId field is set.
*/
@java.lang.Override
public boolean hasCriterionId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The ID of the criterion.
* This field is ignored for mutates.
*
*
* optional int64 criterion_id = 56 [(.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 = 77;
private volatile java.lang.Object displayName_;
/**
*
* Output only. The display name of the criterion.
* This field is ignored for mutates.
*
*
* string display_name = 77 [(.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 = 77 [(.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 STATUS_FIELD_NUMBER = 3;
private int status_;
/**
*
* The status of the criterion.
* This is the status of the ad group criterion entity, set by the client.
* Note: UI reports may incorporate additional information that affects
* whether a criterion is eligible to run. In some cases a criterion that's
* REMOVED in the API can still show as enabled in the UI.
* For example, campaigns by default show to users of all age ranges unless
* excluded. The UI will show each age range as "enabled", since they're
* eligible to see the ads; but AdGroupCriterion.status will show "removed",
* since no positive criterion was added.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of the criterion.
* This is the status of the ad group criterion entity, set by the client.
* Note: UI reports may incorporate additional information that affects
* whether a criterion is eligible to run. In some cases a criterion that's
* REMOVED in the API can still show as enabled in the UI.
* For example, campaigns by default show to users of all age ranges unless
* excluded. The UI will show each age range as "enabled", since they're
* eligible to see the ads; but AdGroupCriterion.status will show "removed",
* since no positive criterion was added.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3;
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus result = com.google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus.UNRECOGNIZED : result;
}
public static final int QUALITY_INFO_FIELD_NUMBER = 4;
private com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo qualityInfo_;
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the qualityInfo field is set.
*/
@java.lang.Override
public boolean hasQualityInfo() {
return qualityInfo_ != null;
}
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The qualityInfo.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo getQualityInfo() {
return qualityInfo_ == null ? com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.getDefaultInstance() : qualityInfo_;
}
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfoOrBuilder getQualityInfoOrBuilder() {
return getQualityInfo();
}
public static final int AD_GROUP_FIELD_NUMBER = 57;
private volatile java.lang.Object adGroup_;
/**
*
* Immutable. The ad group to which the criterion belongs.
*
*
* optional string ad_group = 57 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the adGroup field is set.
*/
@java.lang.Override
public boolean hasAdGroup() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Immutable. The ad group to which the criterion belongs.
*
*
* optional string ad_group = 57 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The adGroup.
*/
@java.lang.Override
public java.lang.String getAdGroup() {
java.lang.Object ref = adGroup_;
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();
adGroup_ = s;
return s;
}
}
/**
*
* Immutable. The ad group to which the criterion belongs.
*
*
* optional string ad_group = 57 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for adGroup.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAdGroupBytes() {
java.lang.Object ref = adGroup_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 25;
private int type_;
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType type = 25 [(.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 = 25 [(.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 NEGATIVE_FIELD_NUMBER = 58;
private boolean negative_;
/**
*
* Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
* This field is immutable. To switch a criterion from positive to negative,
* remove then re-add it.
*
*
* optional bool negative = 58 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the negative field is set.
*/
@java.lang.Override
public boolean hasNegative() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
* This field is immutable. To switch a criterion from positive to negative,
* remove then re-add it.
*
*
* optional bool negative = 58 [(.google.api.field_behavior) = IMMUTABLE];
* @return The negative.
*/
@java.lang.Override
public boolean getNegative() {
return negative_;
}
public static final int SYSTEM_SERVING_STATUS_FIELD_NUMBER = 52;
private int systemServingStatus_;
/**
*
* Output only. Serving status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus system_serving_status = 52 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for systemServingStatus.
*/
@java.lang.Override public int getSystemServingStatusValue() {
return systemServingStatus_;
}
/**
*
* Output only. Serving status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus system_serving_status = 52 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The systemServingStatus.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus getSystemServingStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus result = com.google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus.valueOf(systemServingStatus_);
return result == null ? com.google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus.UNRECOGNIZED : result;
}
public static final int APPROVAL_STATUS_FIELD_NUMBER = 53;
private int approvalStatus_;
/**
*
* Output only. Approval status of the criterion.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus approval_status = 53 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for approvalStatus.
*/
@java.lang.Override public int getApprovalStatusValue() {
return approvalStatus_;
}
/**
*
* Output only. Approval status of the criterion.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus approval_status = 53 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The approvalStatus.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus getApprovalStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus result = com.google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus.valueOf(approvalStatus_);
return result == null ? com.google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus.UNRECOGNIZED : result;
}
public static final int DISAPPROVAL_REASONS_FIELD_NUMBER = 59;
private com.google.protobuf.LazyStringList disapprovalReasons_;
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return A list containing the disapprovalReasons.
*/
public com.google.protobuf.ProtocolStringList
getDisapprovalReasonsList() {
return disapprovalReasons_;
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The count of disapprovalReasons.
*/
public int getDisapprovalReasonsCount() {
return disapprovalReasons_.size();
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param index The index of the element to return.
* @return The disapprovalReasons at the given index.
*/
public java.lang.String getDisapprovalReasons(int index) {
return disapprovalReasons_.get(index);
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param index The index of the value to return.
* @return The bytes of the disapprovalReasons at the given index.
*/
public com.google.protobuf.ByteString
getDisapprovalReasonsBytes(int index) {
return disapprovalReasons_.getByteString(index);
}
public static final int LABELS_FIELD_NUMBER = 60;
private com.google.protobuf.LazyStringList labels_;
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return A list containing the labels.
*/
public com.google.protobuf.ProtocolStringList
getLabelsList() {
return labels_;
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The count of labels.
*/
public int getLabelsCount() {
return labels_.size();
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The labels at the given index.
*/
public java.lang.String getLabels(int index) {
return labels_.get(index);
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the labels at the given index.
*/
public com.google.protobuf.ByteString
getLabelsBytes(int index) {
return labels_.getByteString(index);
}
public static final int BID_MODIFIER_FIELD_NUMBER = 61;
private double bidModifier_;
/**
*
* The modifier for the bid when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
*
*
* optional double bid_modifier = 61;
* @return Whether the bidModifier field is set.
*/
@java.lang.Override
public boolean hasBidModifier() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The modifier for the bid when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
*
*
* optional double bid_modifier = 61;
* @return The bidModifier.
*/
@java.lang.Override
public double getBidModifier() {
return bidModifier_;
}
public static final int CPC_BID_MICROS_FIELD_NUMBER = 62;
private long cpcBidMicros_;
/**
*
* The CPC (cost-per-click) bid.
*
*
* optional int64 cpc_bid_micros = 62;
* @return Whether the cpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasCpcBidMicros() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The CPC (cost-per-click) bid.
*
*
* optional int64 cpc_bid_micros = 62;
* @return The cpcBidMicros.
*/
@java.lang.Override
public long getCpcBidMicros() {
return cpcBidMicros_;
}
public static final int CPM_BID_MICROS_FIELD_NUMBER = 63;
private long cpmBidMicros_;
/**
*
* The CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 cpm_bid_micros = 63;
* @return Whether the cpmBidMicros field is set.
*/
@java.lang.Override
public boolean hasCpmBidMicros() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 cpm_bid_micros = 63;
* @return The cpmBidMicros.
*/
@java.lang.Override
public long getCpmBidMicros() {
return cpmBidMicros_;
}
public static final int CPV_BID_MICROS_FIELD_NUMBER = 64;
private long cpvBidMicros_;
/**
*
* The CPV (cost-per-view) bid.
*
*
* optional int64 cpv_bid_micros = 64;
* @return Whether the cpvBidMicros field is set.
*/
@java.lang.Override
public boolean hasCpvBidMicros() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The CPV (cost-per-view) bid.
*
*
* optional int64 cpv_bid_micros = 64;
* @return The cpvBidMicros.
*/
@java.lang.Override
public long getCpvBidMicros() {
return cpvBidMicros_;
}
public static final int PERCENT_CPC_BID_MICROS_FIELD_NUMBER = 65;
private long percentCpcBidMicros_;
/**
*
* The CPC bid amount, expressed as a fraction of the advertised price
* for some good or service. The valid range for the fraction is [0,1) and the
* value stored here is 1,000,000 * [fraction].
*
*
* optional int64 percent_cpc_bid_micros = 65;
* @return Whether the percentCpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasPercentCpcBidMicros() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* The CPC bid amount, expressed as a fraction of the advertised price
* for some good or service. The valid range for the fraction is [0,1) and the
* value stored here is 1,000,000 * [fraction].
*
*
* optional int64 percent_cpc_bid_micros = 65;
* @return The percentCpcBidMicros.
*/
@java.lang.Override
public long getPercentCpcBidMicros() {
return percentCpcBidMicros_;
}
public static final int EFFECTIVE_CPC_BID_MICROS_FIELD_NUMBER = 66;
private long effectiveCpcBidMicros_;
/**
*
* Output only. The effective CPC (cost-per-click) bid.
*
*
* optional int64 effective_cpc_bid_micros = 66 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the effectiveCpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasEffectiveCpcBidMicros() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Output only. The effective CPC (cost-per-click) bid.
*
*
* optional int64 effective_cpc_bid_micros = 66 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpcBidMicros.
*/
@java.lang.Override
public long getEffectiveCpcBidMicros() {
return effectiveCpcBidMicros_;
}
public static final int EFFECTIVE_CPM_BID_MICROS_FIELD_NUMBER = 67;
private long effectiveCpmBidMicros_;
/**
*
* Output only. The effective CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 effective_cpm_bid_micros = 67 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the effectiveCpmBidMicros field is set.
*/
@java.lang.Override
public boolean hasEffectiveCpmBidMicros() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Output only. The effective CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 effective_cpm_bid_micros = 67 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpmBidMicros.
*/
@java.lang.Override
public long getEffectiveCpmBidMicros() {
return effectiveCpmBidMicros_;
}
public static final int EFFECTIVE_CPV_BID_MICROS_FIELD_NUMBER = 68;
private long effectiveCpvBidMicros_;
/**
*
* Output only. The effective CPV (cost-per-view) bid.
*
*
* optional int64 effective_cpv_bid_micros = 68 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the effectiveCpvBidMicros field is set.
*/
@java.lang.Override
public boolean hasEffectiveCpvBidMicros() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Output only. The effective CPV (cost-per-view) bid.
*
*
* optional int64 effective_cpv_bid_micros = 68 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpvBidMicros.
*/
@java.lang.Override
public long getEffectiveCpvBidMicros() {
return effectiveCpvBidMicros_;
}
public static final int EFFECTIVE_PERCENT_CPC_BID_MICROS_FIELD_NUMBER = 69;
private long effectivePercentCpcBidMicros_;
/**
*
* Output only. The effective Percent CPC bid amount.
*
*
* optional int64 effective_percent_cpc_bid_micros = 69 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the effectivePercentCpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasEffectivePercentCpcBidMicros() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Output only. The effective Percent CPC bid amount.
*
*
* optional int64 effective_percent_cpc_bid_micros = 69 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectivePercentCpcBidMicros.
*/
@java.lang.Override
public long getEffectivePercentCpcBidMicros() {
return effectivePercentCpcBidMicros_;
}
public static final int EFFECTIVE_CPC_BID_SOURCE_FIELD_NUMBER = 21;
private int effectiveCpcBidSource_;
/**
*
* Output only. Source of the effective CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpc_bid_source = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for effectiveCpcBidSource.
*/
@java.lang.Override public int getEffectiveCpcBidSourceValue() {
return effectiveCpcBidSource_;
}
/**
*
* Output only. Source of the effective CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpc_bid_source = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpcBidSource.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource getEffectiveCpcBidSource() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.valueOf(effectiveCpcBidSource_);
return result == null ? com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result;
}
public static final int EFFECTIVE_CPM_BID_SOURCE_FIELD_NUMBER = 22;
private int effectiveCpmBidSource_;
/**
*
* Output only. Source of the effective CPM bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpm_bid_source = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for effectiveCpmBidSource.
*/
@java.lang.Override public int getEffectiveCpmBidSourceValue() {
return effectiveCpmBidSource_;
}
/**
*
* Output only. Source of the effective CPM bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpm_bid_source = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpmBidSource.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource getEffectiveCpmBidSource() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.valueOf(effectiveCpmBidSource_);
return result == null ? com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result;
}
public static final int EFFECTIVE_CPV_BID_SOURCE_FIELD_NUMBER = 23;
private int effectiveCpvBidSource_;
/**
*
* Output only. Source of the effective CPV bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpv_bid_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for effectiveCpvBidSource.
*/
@java.lang.Override public int getEffectiveCpvBidSourceValue() {
return effectiveCpvBidSource_;
}
/**
*
* Output only. Source of the effective CPV bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpv_bid_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpvBidSource.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource getEffectiveCpvBidSource() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.valueOf(effectiveCpvBidSource_);
return result == null ? com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result;
}
public static final int EFFECTIVE_PERCENT_CPC_BID_SOURCE_FIELD_NUMBER = 35;
private int effectivePercentCpcBidSource_;
/**
*
* Output only. Source of the effective Percent CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_percent_cpc_bid_source = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for effectivePercentCpcBidSource.
*/
@java.lang.Override public int getEffectivePercentCpcBidSourceValue() {
return effectivePercentCpcBidSource_;
}
/**
*
* Output only. Source of the effective Percent CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_percent_cpc_bid_source = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectivePercentCpcBidSource.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource getEffectivePercentCpcBidSource() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.valueOf(effectivePercentCpcBidSource_);
return result == null ? com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result;
}
public static final int POSITION_ESTIMATES_FIELD_NUMBER = 10;
private com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates positionEstimates_;
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the positionEstimates field is set.
*/
@java.lang.Override
public boolean hasPositionEstimates() {
return positionEstimates_ != null;
}
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The positionEstimates.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates getPositionEstimates() {
return positionEstimates_ == null ? com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.getDefaultInstance() : positionEstimates_;
}
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimatesOrBuilder getPositionEstimatesOrBuilder() {
return getPositionEstimates();
}
public static final int FINAL_URLS_FIELD_NUMBER = 70;
private com.google.protobuf.LazyStringList finalUrls_;
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @return A list containing the finalUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalUrlsList() {
return finalUrls_;
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @return The count of finalUrls.
*/
public int getFinalUrlsCount() {
return finalUrls_.size();
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @param index The index of the element to return.
* @return The finalUrls at the given index.
*/
public java.lang.String getFinalUrls(int index) {
return finalUrls_.get(index);
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @param index The index of the value to return.
* @return The bytes of the finalUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalUrlsBytes(int index) {
return finalUrls_.getByteString(index);
}
public static final int FINAL_MOBILE_URLS_FIELD_NUMBER = 71;
private com.google.protobuf.LazyStringList finalMobileUrls_;
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @return A list containing the finalMobileUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalMobileUrlsList() {
return finalMobileUrls_;
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @return The count of finalMobileUrls.
*/
public int getFinalMobileUrlsCount() {
return finalMobileUrls_.size();
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @param index The index of the element to return.
* @return The finalMobileUrls at the given index.
*/
public java.lang.String getFinalMobileUrls(int index) {
return finalMobileUrls_.get(index);
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @param index The index of the value to return.
* @return The bytes of the finalMobileUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalMobileUrlsBytes(int index) {
return finalMobileUrls_.getByteString(index);
}
public static final int FINAL_URL_SUFFIX_FIELD_NUMBER = 72;
private volatile java.lang.Object finalUrlSuffix_;
/**
*
* URL template for appending params to final URL.
*
*
* optional string final_url_suffix = 72;
* @return Whether the finalUrlSuffix field is set.
*/
@java.lang.Override
public boolean hasFinalUrlSuffix() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* URL template for appending params to final URL.
*
*
* optional string final_url_suffix = 72;
* @return The finalUrlSuffix.
*/
@java.lang.Override
public java.lang.String getFinalUrlSuffix() {
java.lang.Object ref = finalUrlSuffix_;
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();
finalUrlSuffix_ = s;
return s;
}
}
/**
*
* URL template for appending params to final URL.
*
*
* optional string final_url_suffix = 72;
* @return The bytes for finalUrlSuffix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFinalUrlSuffixBytes() {
java.lang.Object ref = finalUrlSuffix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
finalUrlSuffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRACKING_URL_TEMPLATE_FIELD_NUMBER = 73;
private volatile java.lang.Object trackingUrlTemplate_;
/**
*
* The URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 73;
* @return Whether the trackingUrlTemplate field is set.
*/
@java.lang.Override
public boolean hasTrackingUrlTemplate() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* The URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 73;
* @return The trackingUrlTemplate.
*/
@java.lang.Override
public java.lang.String getTrackingUrlTemplate() {
java.lang.Object ref = trackingUrlTemplate_;
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();
trackingUrlTemplate_ = s;
return s;
}
}
/**
*
* The URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 73;
* @return The bytes for trackingUrlTemplate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTrackingUrlTemplateBytes() {
java.lang.Object ref = trackingUrlTemplate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrlTemplate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URL_CUSTOM_PARAMETERS_FIELD_NUMBER = 14;
private java.util.List urlCustomParameters_;
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
@java.lang.Override
public java.util.List getUrlCustomParametersList() {
return urlCustomParameters_;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.CustomParameterOrBuilder>
getUrlCustomParametersOrBuilderList() {
return urlCustomParameters_;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
@java.lang.Override
public int getUrlCustomParametersCount() {
return urlCustomParameters_.size();
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomParameter getUrlCustomParameters(int index) {
return urlCustomParameters_.get(index);
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder(
int index) {
return urlCustomParameters_.get(index);
}
public static final int KEYWORD_FIELD_NUMBER = 27;
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 27 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the keyword field is set.
*/
@java.lang.Override
public boolean hasKeyword() {
return criterionCase_ == 27;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 27 [(.google.api.field_behavior) = IMMUTABLE];
* @return The keyword.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordInfo getKeyword() {
if (criterionCase_ == 27) {
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 = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getKeywordOrBuilder() {
if (criterionCase_ == 27) {
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 = 28;
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 28 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the placement field is set.
*/
@java.lang.Override
public boolean hasPlacement() {
return criterionCase_ == 28;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 28 [(.google.api.field_behavior) = IMMUTABLE];
* @return The placement.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PlacementInfo getPlacement() {
if (criterionCase_ == 28) {
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 = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PlacementInfoOrBuilder getPlacementOrBuilder() {
if (criterionCase_ == 28) {
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 = 29;
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 29 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileAppCategory field is set.
*/
@java.lang.Override
public boolean hasMobileAppCategory() {
return criterionCase_ == 29;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 29 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileAppCategory.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileAppCategoryInfo getMobileAppCategory() {
if (criterionCase_ == 29) {
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 = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() {
if (criterionCase_ == 29) {
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 = 30;
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 30 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileApplication field is set.
*/
@java.lang.Override
public boolean hasMobileApplication() {
return criterionCase_ == 30;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 30 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileApplication.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileApplicationInfo getMobileApplication() {
if (criterionCase_ == 30) {
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 = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileApplicationInfoOrBuilder getMobileApplicationOrBuilder() {
if (criterionCase_ == 30) {
return (com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileApplicationInfo.getDefaultInstance();
}
public static final int LISTING_GROUP_FIELD_NUMBER = 32;
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the listingGroup field is set.
*/
@java.lang.Override
public boolean hasListingGroup() {
return criterionCase_ == 32;
}
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
* @return The listingGroup.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ListingGroupInfo getListingGroup() {
if (criterionCase_ == 32) {
return (com.google.ads.googleads.v10.common.ListingGroupInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ListingGroupInfo.getDefaultInstance();
}
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ListingGroupInfoOrBuilder getListingGroupOrBuilder() {
if (criterionCase_ == 32) {
return (com.google.ads.googleads.v10.common.ListingGroupInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ListingGroupInfo.getDefaultInstance();
}
public static final int AGE_RANGE_FIELD_NUMBER = 36;
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 36 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the ageRange field is set.
*/
@java.lang.Override
public boolean hasAgeRange() {
return criterionCase_ == 36;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 36 [(.google.api.field_behavior) = IMMUTABLE];
* @return The ageRange.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AgeRangeInfo getAgeRange() {
if (criterionCase_ == 36) {
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 = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AgeRangeInfoOrBuilder getAgeRangeOrBuilder() {
if (criterionCase_ == 36) {
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 = 37;
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 37 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the gender field is set.
*/
@java.lang.Override
public boolean hasGender() {
return criterionCase_ == 37;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 37 [(.google.api.field_behavior) = IMMUTABLE];
* @return The gender.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.GenderInfo getGender() {
if (criterionCase_ == 37) {
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 = 37 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.GenderInfoOrBuilder getGenderOrBuilder() {
if (criterionCase_ == 37) {
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 = 38;
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 38 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the incomeRange field is set.
*/
@java.lang.Override
public boolean hasIncomeRange() {
return criterionCase_ == 38;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 38 [(.google.api.field_behavior) = IMMUTABLE];
* @return The incomeRange.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.IncomeRangeInfo getIncomeRange() {
if (criterionCase_ == 38) {
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 = 38 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.IncomeRangeInfoOrBuilder getIncomeRangeOrBuilder() {
if (criterionCase_ == 38) {
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 = 39;
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 39 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the parentalStatus field is set.
*/
@java.lang.Override
public boolean hasParentalStatus() {
return criterionCase_ == 39;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 39 [(.google.api.field_behavior) = IMMUTABLE];
* @return The parentalStatus.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ParentalStatusInfo getParentalStatus() {
if (criterionCase_ == 39) {
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 = 39 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ParentalStatusInfoOrBuilder getParentalStatusOrBuilder() {
if (criterionCase_ == 39) {
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 = 42;
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 42 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the userList field is set.
*/
@java.lang.Override
public boolean hasUserList() {
return criterionCase_ == 42;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 42 [(.google.api.field_behavior) = IMMUTABLE];
* @return The userList.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListInfo getUserList() {
if (criterionCase_ == 42) {
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 = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListInfoOrBuilder getUserListOrBuilder() {
if (criterionCase_ == 42) {
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 = 40;
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 40 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeVideo field is set.
*/
@java.lang.Override
public boolean hasYoutubeVideo() {
return criterionCase_ == 40;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 40 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeVideo.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeVideoInfo getYoutubeVideo() {
if (criterionCase_ == 40) {
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 = 40 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeVideoInfoOrBuilder getYoutubeVideoOrBuilder() {
if (criterionCase_ == 40) {
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 = 41;
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 41 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeChannel field is set.
*/
@java.lang.Override
public boolean hasYoutubeChannel() {
return criterionCase_ == 41;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 41 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeChannel.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeChannelInfo getYoutubeChannel() {
if (criterionCase_ == 41) {
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 = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() {
if (criterionCase_ == 41) {
return (com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.YouTubeChannelInfo.getDefaultInstance();
}
public static final int TOPIC_FIELD_NUMBER = 43;
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 43 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the topic field is set.
*/
@java.lang.Override
public boolean hasTopic() {
return criterionCase_ == 43;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 43 [(.google.api.field_behavior) = IMMUTABLE];
* @return The topic.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TopicInfo getTopic() {
if (criterionCase_ == 43) {
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 = 43 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TopicInfoOrBuilder getTopicOrBuilder() {
if (criterionCase_ == 43) {
return (com.google.ads.googleads.v10.common.TopicInfo) criterion_;
}
return com.google.ads.googleads.v10.common.TopicInfo.getDefaultInstance();
}
public static final int USER_INTEREST_FIELD_NUMBER = 45;
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 45 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the userInterest field is set.
*/
@java.lang.Override
public boolean hasUserInterest() {
return criterionCase_ == 45;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 45 [(.google.api.field_behavior) = IMMUTABLE];
* @return The userInterest.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserInterestInfo getUserInterest() {
if (criterionCase_ == 45) {
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 = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserInterestInfoOrBuilder getUserInterestOrBuilder() {
if (criterionCase_ == 45) {
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 = 46;
/**
*
* Immutable. Webpage
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 46 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the webpage field is set.
*/
@java.lang.Override
public boolean hasWebpage() {
return criterionCase_ == 46;
}
/**
*
* Immutable. Webpage
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 46 [(.google.api.field_behavior) = IMMUTABLE];
* @return The webpage.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.WebpageInfo getWebpage() {
if (criterionCase_ == 46) {
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 = 46 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.WebpageInfoOrBuilder getWebpageOrBuilder() {
if (criterionCase_ == 46) {
return (com.google.ads.googleads.v10.common.WebpageInfo) criterion_;
}
return com.google.ads.googleads.v10.common.WebpageInfo.getDefaultInstance();
}
public static final int APP_PAYMENT_MODEL_FIELD_NUMBER = 47;
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the appPaymentModel field is set.
*/
@java.lang.Override
public boolean hasAppPaymentModel() {
return criterionCase_ == 47;
}
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
* @return The appPaymentModel.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AppPaymentModelInfo getAppPaymentModel() {
if (criterionCase_ == 47) {
return (com.google.ads.googleads.v10.common.AppPaymentModelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AppPaymentModelInfo.getDefaultInstance();
}
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AppPaymentModelInfoOrBuilder getAppPaymentModelOrBuilder() {
if (criterionCase_ == 47) {
return (com.google.ads.googleads.v10.common.AppPaymentModelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AppPaymentModelInfo.getDefaultInstance();
}
public static final int CUSTOM_AFFINITY_FIELD_NUMBER = 48;
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 48 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the customAffinity field is set.
*/
@java.lang.Override
public boolean hasCustomAffinity() {
return criterionCase_ == 48;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 48 [(.google.api.field_behavior) = IMMUTABLE];
* @return The customAffinity.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAffinityInfo getCustomAffinity() {
if (criterionCase_ == 48) {
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 = 48 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAffinityInfoOrBuilder getCustomAffinityOrBuilder() {
if (criterionCase_ == 48) {
return (com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomAffinityInfo.getDefaultInstance();
}
public static final int CUSTOM_INTENT_FIELD_NUMBER = 49;
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the customIntent field is set.
*/
@java.lang.Override
public boolean hasCustomIntent() {
return criterionCase_ == 49;
}
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
* @return The customIntent.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomIntentInfo getCustomIntent() {
if (criterionCase_ == 49) {
return (com.google.ads.googleads.v10.common.CustomIntentInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomIntentInfo.getDefaultInstance();
}
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomIntentInfoOrBuilder getCustomIntentOrBuilder() {
if (criterionCase_ == 49) {
return (com.google.ads.googleads.v10.common.CustomIntentInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomIntentInfo.getDefaultInstance();
}
public static final int CUSTOM_AUDIENCE_FIELD_NUMBER = 74;
/**
*
* Immutable. Custom Audience.
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 74 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the customAudience field is set.
*/
@java.lang.Override
public boolean hasCustomAudience() {
return criterionCase_ == 74;
}
/**
*
* Immutable. Custom Audience.
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 74 [(.google.api.field_behavior) = IMMUTABLE];
* @return The customAudience.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAudienceInfo getCustomAudience() {
if (criterionCase_ == 74) {
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 = 74 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAudienceInfoOrBuilder getCustomAudienceOrBuilder() {
if (criterionCase_ == 74) {
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 = 75;
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 75 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the combinedAudience field is set.
*/
@java.lang.Override
public boolean hasCombinedAudience() {
return criterionCase_ == 75;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 75 [(.google.api.field_behavior) = IMMUTABLE];
* @return The combinedAudience.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CombinedAudienceInfo getCombinedAudience() {
if (criterionCase_ == 75) {
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 = 75 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CombinedAudienceInfoOrBuilder getCombinedAudienceOrBuilder() {
if (criterionCase_ == 75) {
return (com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CombinedAudienceInfo.getDefaultInstance();
}
public static final int AUDIENCE_FIELD_NUMBER = 79;
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the audience field is set.
*/
@java.lang.Override
public boolean hasAudience() {
return criterionCase_ == 79;
}
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
* @return The audience.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AudienceInfo getAudience() {
if (criterionCase_ == 79) {
return (com.google.ads.googleads.v10.common.AudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AudienceInfo.getDefaultInstance();
}
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AudienceInfoOrBuilder getAudienceOrBuilder() {
if (criterionCase_ == 79) {
return (com.google.ads.googleads.v10.common.AudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AudienceInfo.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 (status_ != com.google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(3, status_);
}
if (qualityInfo_ != null) {
output.writeMessage(4, getQualityInfo());
}
if (positionEstimates_ != null) {
output.writeMessage(10, getPositionEstimates());
}
for (int i = 0; i < urlCustomParameters_.size(); i++) {
output.writeMessage(14, urlCustomParameters_.get(i));
}
if (effectiveCpcBidSource_ != com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) {
output.writeEnum(21, effectiveCpcBidSource_);
}
if (effectiveCpmBidSource_ != com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) {
output.writeEnum(22, effectiveCpmBidSource_);
}
if (effectiveCpvBidSource_ != com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) {
output.writeEnum(23, effectiveCpvBidSource_);
}
if (type_ != com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType.UNSPECIFIED.getNumber()) {
output.writeEnum(25, type_);
}
if (criterionCase_ == 27) {
output.writeMessage(27, (com.google.ads.googleads.v10.common.KeywordInfo) criterion_);
}
if (criterionCase_ == 28) {
output.writeMessage(28, (com.google.ads.googleads.v10.common.PlacementInfo) criterion_);
}
if (criterionCase_ == 29) {
output.writeMessage(29, (com.google.ads.googleads.v10.common.MobileAppCategoryInfo) criterion_);
}
if (criterionCase_ == 30) {
output.writeMessage(30, (com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_);
}
if (criterionCase_ == 32) {
output.writeMessage(32, (com.google.ads.googleads.v10.common.ListingGroupInfo) criterion_);
}
if (effectivePercentCpcBidSource_ != com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) {
output.writeEnum(35, effectivePercentCpcBidSource_);
}
if (criterionCase_ == 36) {
output.writeMessage(36, (com.google.ads.googleads.v10.common.AgeRangeInfo) criterion_);
}
if (criterionCase_ == 37) {
output.writeMessage(37, (com.google.ads.googleads.v10.common.GenderInfo) criterion_);
}
if (criterionCase_ == 38) {
output.writeMessage(38, (com.google.ads.googleads.v10.common.IncomeRangeInfo) criterion_);
}
if (criterionCase_ == 39) {
output.writeMessage(39, (com.google.ads.googleads.v10.common.ParentalStatusInfo) criterion_);
}
if (criterionCase_ == 40) {
output.writeMessage(40, (com.google.ads.googleads.v10.common.YouTubeVideoInfo) criterion_);
}
if (criterionCase_ == 41) {
output.writeMessage(41, (com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_);
}
if (criterionCase_ == 42) {
output.writeMessage(42, (com.google.ads.googleads.v10.common.UserListInfo) criterion_);
}
if (criterionCase_ == 43) {
output.writeMessage(43, (com.google.ads.googleads.v10.common.TopicInfo) criterion_);
}
if (criterionCase_ == 45) {
output.writeMessage(45, (com.google.ads.googleads.v10.common.UserInterestInfo) criterion_);
}
if (criterionCase_ == 46) {
output.writeMessage(46, (com.google.ads.googleads.v10.common.WebpageInfo) criterion_);
}
if (criterionCase_ == 47) {
output.writeMessage(47, (com.google.ads.googleads.v10.common.AppPaymentModelInfo) criterion_);
}
if (criterionCase_ == 48) {
output.writeMessage(48, (com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_);
}
if (criterionCase_ == 49) {
output.writeMessage(49, (com.google.ads.googleads.v10.common.CustomIntentInfo) criterion_);
}
if (systemServingStatus_ != com.google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(52, systemServingStatus_);
}
if (approvalStatus_ != com.google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(53, approvalStatus_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(56, criterionId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 57, adGroup_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(58, negative_);
}
for (int i = 0; i < disapprovalReasons_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 59, disapprovalReasons_.getRaw(i));
}
for (int i = 0; i < labels_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 60, labels_.getRaw(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeDouble(61, bidModifier_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(62, cpcBidMicros_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(63, cpmBidMicros_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(64, cpvBidMicros_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt64(65, percentCpcBidMicros_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt64(66, effectiveCpcBidMicros_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt64(67, effectiveCpmBidMicros_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeInt64(68, effectiveCpvBidMicros_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeInt64(69, effectivePercentCpcBidMicros_);
}
for (int i = 0; i < finalUrls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 70, finalUrls_.getRaw(i));
}
for (int i = 0; i < finalMobileUrls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 71, finalMobileUrls_.getRaw(i));
}
if (((bitField0_ & 0x00001000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 72, finalUrlSuffix_);
}
if (((bitField0_ & 0x00002000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 73, trackingUrlTemplate_);
}
if (criterionCase_ == 74) {
output.writeMessage(74, (com.google.ads.googleads.v10.common.CustomAudienceInfo) criterion_);
}
if (criterionCase_ == 75) {
output.writeMessage(75, (com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 77, displayName_);
}
if (criterionCase_ == 79) {
output.writeMessage(79, (com.google.ads.googleads.v10.common.AudienceInfo) 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 (status_ != com.google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, status_);
}
if (qualityInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getQualityInfo());
}
if (positionEstimates_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getPositionEstimates());
}
for (int i = 0; i < urlCustomParameters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, urlCustomParameters_.get(i));
}
if (effectiveCpcBidSource_ != com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(21, effectiveCpcBidSource_);
}
if (effectiveCpmBidSource_ != com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(22, effectiveCpmBidSource_);
}
if (effectiveCpvBidSource_ != com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(23, effectiveCpvBidSource_);
}
if (type_ != com.google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(25, type_);
}
if (criterionCase_ == 27) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(27, (com.google.ads.googleads.v10.common.KeywordInfo) criterion_);
}
if (criterionCase_ == 28) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(28, (com.google.ads.googleads.v10.common.PlacementInfo) criterion_);
}
if (criterionCase_ == 29) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(29, (com.google.ads.googleads.v10.common.MobileAppCategoryInfo) criterion_);
}
if (criterionCase_ == 30) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(30, (com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_);
}
if (criterionCase_ == 32) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(32, (com.google.ads.googleads.v10.common.ListingGroupInfo) criterion_);
}
if (effectivePercentCpcBidSource_ != com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(35, effectivePercentCpcBidSource_);
}
if (criterionCase_ == 36) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(36, (com.google.ads.googleads.v10.common.AgeRangeInfo) criterion_);
}
if (criterionCase_ == 37) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(37, (com.google.ads.googleads.v10.common.GenderInfo) criterion_);
}
if (criterionCase_ == 38) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(38, (com.google.ads.googleads.v10.common.IncomeRangeInfo) criterion_);
}
if (criterionCase_ == 39) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(39, (com.google.ads.googleads.v10.common.ParentalStatusInfo) criterion_);
}
if (criterionCase_ == 40) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(40, (com.google.ads.googleads.v10.common.YouTubeVideoInfo) criterion_);
}
if (criterionCase_ == 41) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(41, (com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_);
}
if (criterionCase_ == 42) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(42, (com.google.ads.googleads.v10.common.UserListInfo) criterion_);
}
if (criterionCase_ == 43) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(43, (com.google.ads.googleads.v10.common.TopicInfo) criterion_);
}
if (criterionCase_ == 45) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(45, (com.google.ads.googleads.v10.common.UserInterestInfo) criterion_);
}
if (criterionCase_ == 46) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(46, (com.google.ads.googleads.v10.common.WebpageInfo) criterion_);
}
if (criterionCase_ == 47) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(47, (com.google.ads.googleads.v10.common.AppPaymentModelInfo) criterion_);
}
if (criterionCase_ == 48) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(48, (com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_);
}
if (criterionCase_ == 49) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(49, (com.google.ads.googleads.v10.common.CustomIntentInfo) criterion_);
}
if (systemServingStatus_ != com.google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(52, systemServingStatus_);
}
if (approvalStatus_ != com.google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(53, approvalStatus_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(56, criterionId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(57, adGroup_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(58, negative_);
}
{
int dataSize = 0;
for (int i = 0; i < disapprovalReasons_.size(); i++) {
dataSize += computeStringSizeNoTag(disapprovalReasons_.getRaw(i));
}
size += dataSize;
size += 2 * getDisapprovalReasonsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < labels_.size(); i++) {
dataSize += computeStringSizeNoTag(labels_.getRaw(i));
}
size += dataSize;
size += 2 * getLabelsList().size();
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(61, bidModifier_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(62, cpcBidMicros_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(63, cpmBidMicros_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(64, cpvBidMicros_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(65, percentCpcBidMicros_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(66, effectiveCpcBidMicros_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(67, effectiveCpmBidMicros_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(68, effectiveCpvBidMicros_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(69, effectivePercentCpcBidMicros_);
}
{
int dataSize = 0;
for (int i = 0; i < finalUrls_.size(); i++) {
dataSize += computeStringSizeNoTag(finalUrls_.getRaw(i));
}
size += dataSize;
size += 2 * getFinalUrlsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < finalMobileUrls_.size(); i++) {
dataSize += computeStringSizeNoTag(finalMobileUrls_.getRaw(i));
}
size += dataSize;
size += 2 * getFinalMobileUrlsList().size();
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(72, finalUrlSuffix_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(73, trackingUrlTemplate_);
}
if (criterionCase_ == 74) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(74, (com.google.ads.googleads.v10.common.CustomAudienceInfo) criterion_);
}
if (criterionCase_ == 75) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(75, (com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(77, displayName_);
}
if (criterionCase_ == 79) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(79, (com.google.ads.googleads.v10.common.AudienceInfo) 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.AdGroupCriterion)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.AdGroupCriterion other = (com.google.ads.googleads.v10.resources.AdGroupCriterion) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasCriterionId() != other.hasCriterionId()) return false;
if (hasCriterionId()) {
if (getCriterionId()
!= other.getCriterionId()) return false;
}
if (!getDisplayName()
.equals(other.getDisplayName())) return false;
if (status_ != other.status_) return false;
if (hasQualityInfo() != other.hasQualityInfo()) return false;
if (hasQualityInfo()) {
if (!getQualityInfo()
.equals(other.getQualityInfo())) return false;
}
if (hasAdGroup() != other.hasAdGroup()) return false;
if (hasAdGroup()) {
if (!getAdGroup()
.equals(other.getAdGroup())) return false;
}
if (type_ != other.type_) return false;
if (hasNegative() != other.hasNegative()) return false;
if (hasNegative()) {
if (getNegative()
!= other.getNegative()) return false;
}
if (systemServingStatus_ != other.systemServingStatus_) return false;
if (approvalStatus_ != other.approvalStatus_) return false;
if (!getDisapprovalReasonsList()
.equals(other.getDisapprovalReasonsList())) return false;
if (!getLabelsList()
.equals(other.getLabelsList())) return false;
if (hasBidModifier() != other.hasBidModifier()) return false;
if (hasBidModifier()) {
if (java.lang.Double.doubleToLongBits(getBidModifier())
!= java.lang.Double.doubleToLongBits(
other.getBidModifier())) return false;
}
if (hasCpcBidMicros() != other.hasCpcBidMicros()) return false;
if (hasCpcBidMicros()) {
if (getCpcBidMicros()
!= other.getCpcBidMicros()) return false;
}
if (hasCpmBidMicros() != other.hasCpmBidMicros()) return false;
if (hasCpmBidMicros()) {
if (getCpmBidMicros()
!= other.getCpmBidMicros()) return false;
}
if (hasCpvBidMicros() != other.hasCpvBidMicros()) return false;
if (hasCpvBidMicros()) {
if (getCpvBidMicros()
!= other.getCpvBidMicros()) return false;
}
if (hasPercentCpcBidMicros() != other.hasPercentCpcBidMicros()) return false;
if (hasPercentCpcBidMicros()) {
if (getPercentCpcBidMicros()
!= other.getPercentCpcBidMicros()) return false;
}
if (hasEffectiveCpcBidMicros() != other.hasEffectiveCpcBidMicros()) return false;
if (hasEffectiveCpcBidMicros()) {
if (getEffectiveCpcBidMicros()
!= other.getEffectiveCpcBidMicros()) return false;
}
if (hasEffectiveCpmBidMicros() != other.hasEffectiveCpmBidMicros()) return false;
if (hasEffectiveCpmBidMicros()) {
if (getEffectiveCpmBidMicros()
!= other.getEffectiveCpmBidMicros()) return false;
}
if (hasEffectiveCpvBidMicros() != other.hasEffectiveCpvBidMicros()) return false;
if (hasEffectiveCpvBidMicros()) {
if (getEffectiveCpvBidMicros()
!= other.getEffectiveCpvBidMicros()) return false;
}
if (hasEffectivePercentCpcBidMicros() != other.hasEffectivePercentCpcBidMicros()) return false;
if (hasEffectivePercentCpcBidMicros()) {
if (getEffectivePercentCpcBidMicros()
!= other.getEffectivePercentCpcBidMicros()) return false;
}
if (effectiveCpcBidSource_ != other.effectiveCpcBidSource_) return false;
if (effectiveCpmBidSource_ != other.effectiveCpmBidSource_) return false;
if (effectiveCpvBidSource_ != other.effectiveCpvBidSource_) return false;
if (effectivePercentCpcBidSource_ != other.effectivePercentCpcBidSource_) return false;
if (hasPositionEstimates() != other.hasPositionEstimates()) return false;
if (hasPositionEstimates()) {
if (!getPositionEstimates()
.equals(other.getPositionEstimates())) return false;
}
if (!getFinalUrlsList()
.equals(other.getFinalUrlsList())) return false;
if (!getFinalMobileUrlsList()
.equals(other.getFinalMobileUrlsList())) return false;
if (hasFinalUrlSuffix() != other.hasFinalUrlSuffix()) return false;
if (hasFinalUrlSuffix()) {
if (!getFinalUrlSuffix()
.equals(other.getFinalUrlSuffix())) return false;
}
if (hasTrackingUrlTemplate() != other.hasTrackingUrlTemplate()) return false;
if (hasTrackingUrlTemplate()) {
if (!getTrackingUrlTemplate()
.equals(other.getTrackingUrlTemplate())) return false;
}
if (!getUrlCustomParametersList()
.equals(other.getUrlCustomParametersList())) return false;
if (!getCriterionCase().equals(other.getCriterionCase())) return false;
switch (criterionCase_) {
case 27:
if (!getKeyword()
.equals(other.getKeyword())) return false;
break;
case 28:
if (!getPlacement()
.equals(other.getPlacement())) return false;
break;
case 29:
if (!getMobileAppCategory()
.equals(other.getMobileAppCategory())) return false;
break;
case 30:
if (!getMobileApplication()
.equals(other.getMobileApplication())) return false;
break;
case 32:
if (!getListingGroup()
.equals(other.getListingGroup())) return false;
break;
case 36:
if (!getAgeRange()
.equals(other.getAgeRange())) return false;
break;
case 37:
if (!getGender()
.equals(other.getGender())) return false;
break;
case 38:
if (!getIncomeRange()
.equals(other.getIncomeRange())) return false;
break;
case 39:
if (!getParentalStatus()
.equals(other.getParentalStatus())) return false;
break;
case 42:
if (!getUserList()
.equals(other.getUserList())) return false;
break;
case 40:
if (!getYoutubeVideo()
.equals(other.getYoutubeVideo())) return false;
break;
case 41:
if (!getYoutubeChannel()
.equals(other.getYoutubeChannel())) return false;
break;
case 43:
if (!getTopic()
.equals(other.getTopic())) return false;
break;
case 45:
if (!getUserInterest()
.equals(other.getUserInterest())) return false;
break;
case 46:
if (!getWebpage()
.equals(other.getWebpage())) return false;
break;
case 47:
if (!getAppPaymentModel()
.equals(other.getAppPaymentModel())) return false;
break;
case 48:
if (!getCustomAffinity()
.equals(other.getCustomAffinity())) return false;
break;
case 49:
if (!getCustomIntent()
.equals(other.getCustomIntent())) return false;
break;
case 74:
if (!getCustomAudience()
.equals(other.getCustomAudience())) return false;
break;
case 75:
if (!getCombinedAudience()
.equals(other.getCombinedAudience())) return false;
break;
case 79:
if (!getAudience()
.equals(other.getAudience())) 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 (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();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (hasQualityInfo()) {
hash = (37 * hash) + QUALITY_INFO_FIELD_NUMBER;
hash = (53 * hash) + getQualityInfo().hashCode();
}
if (hasAdGroup()) {
hash = (37 * hash) + AD_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getAdGroup().hashCode();
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (hasNegative()) {
hash = (37 * hash) + NEGATIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNegative());
}
hash = (37 * hash) + SYSTEM_SERVING_STATUS_FIELD_NUMBER;
hash = (53 * hash) + systemServingStatus_;
hash = (37 * hash) + APPROVAL_STATUS_FIELD_NUMBER;
hash = (53 * hash) + approvalStatus_;
if (getDisapprovalReasonsCount() > 0) {
hash = (37 * hash) + DISAPPROVAL_REASONS_FIELD_NUMBER;
hash = (53 * hash) + getDisapprovalReasonsList().hashCode();
}
if (getLabelsCount() > 0) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + getLabelsList().hashCode();
}
if (hasBidModifier()) {
hash = (37 * hash) + BID_MODIFIER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getBidModifier()));
}
if (hasCpcBidMicros()) {
hash = (37 * hash) + CPC_BID_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCpcBidMicros());
}
if (hasCpmBidMicros()) {
hash = (37 * hash) + CPM_BID_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCpmBidMicros());
}
if (hasCpvBidMicros()) {
hash = (37 * hash) + CPV_BID_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCpvBidMicros());
}
if (hasPercentCpcBidMicros()) {
hash = (37 * hash) + PERCENT_CPC_BID_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPercentCpcBidMicros());
}
if (hasEffectiveCpcBidMicros()) {
hash = (37 * hash) + EFFECTIVE_CPC_BID_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEffectiveCpcBidMicros());
}
if (hasEffectiveCpmBidMicros()) {
hash = (37 * hash) + EFFECTIVE_CPM_BID_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEffectiveCpmBidMicros());
}
if (hasEffectiveCpvBidMicros()) {
hash = (37 * hash) + EFFECTIVE_CPV_BID_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEffectiveCpvBidMicros());
}
if (hasEffectivePercentCpcBidMicros()) {
hash = (37 * hash) + EFFECTIVE_PERCENT_CPC_BID_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEffectivePercentCpcBidMicros());
}
hash = (37 * hash) + EFFECTIVE_CPC_BID_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + effectiveCpcBidSource_;
hash = (37 * hash) + EFFECTIVE_CPM_BID_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + effectiveCpmBidSource_;
hash = (37 * hash) + EFFECTIVE_CPV_BID_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + effectiveCpvBidSource_;
hash = (37 * hash) + EFFECTIVE_PERCENT_CPC_BID_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + effectivePercentCpcBidSource_;
if (hasPositionEstimates()) {
hash = (37 * hash) + POSITION_ESTIMATES_FIELD_NUMBER;
hash = (53 * hash) + getPositionEstimates().hashCode();
}
if (getFinalUrlsCount() > 0) {
hash = (37 * hash) + FINAL_URLS_FIELD_NUMBER;
hash = (53 * hash) + getFinalUrlsList().hashCode();
}
if (getFinalMobileUrlsCount() > 0) {
hash = (37 * hash) + FINAL_MOBILE_URLS_FIELD_NUMBER;
hash = (53 * hash) + getFinalMobileUrlsList().hashCode();
}
if (hasFinalUrlSuffix()) {
hash = (37 * hash) + FINAL_URL_SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getFinalUrlSuffix().hashCode();
}
if (hasTrackingUrlTemplate()) {
hash = (37 * hash) + TRACKING_URL_TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTrackingUrlTemplate().hashCode();
}
if (getUrlCustomParametersCount() > 0) {
hash = (37 * hash) + URL_CUSTOM_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getUrlCustomParametersList().hashCode();
}
switch (criterionCase_) {
case 27:
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeyword().hashCode();
break;
case 28:
hash = (37 * hash) + PLACEMENT_FIELD_NUMBER;
hash = (53 * hash) + getPlacement().hashCode();
break;
case 29:
hash = (37 * hash) + MOBILE_APP_CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + getMobileAppCategory().hashCode();
break;
case 30:
hash = (37 * hash) + MOBILE_APPLICATION_FIELD_NUMBER;
hash = (53 * hash) + getMobileApplication().hashCode();
break;
case 32:
hash = (37 * hash) + LISTING_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getListingGroup().hashCode();
break;
case 36:
hash = (37 * hash) + AGE_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getAgeRange().hashCode();
break;
case 37:
hash = (37 * hash) + GENDER_FIELD_NUMBER;
hash = (53 * hash) + getGender().hashCode();
break;
case 38:
hash = (37 * hash) + INCOME_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getIncomeRange().hashCode();
break;
case 39:
hash = (37 * hash) + PARENTAL_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getParentalStatus().hashCode();
break;
case 42:
hash = (37 * hash) + USER_LIST_FIELD_NUMBER;
hash = (53 * hash) + getUserList().hashCode();
break;
case 40:
hash = (37 * hash) + YOUTUBE_VIDEO_FIELD_NUMBER;
hash = (53 * hash) + getYoutubeVideo().hashCode();
break;
case 41:
hash = (37 * hash) + YOUTUBE_CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getYoutubeChannel().hashCode();
break;
case 43:
hash = (37 * hash) + TOPIC_FIELD_NUMBER;
hash = (53 * hash) + getTopic().hashCode();
break;
case 45:
hash = (37 * hash) + USER_INTEREST_FIELD_NUMBER;
hash = (53 * hash) + getUserInterest().hashCode();
break;
case 46:
hash = (37 * hash) + WEBPAGE_FIELD_NUMBER;
hash = (53 * hash) + getWebpage().hashCode();
break;
case 47:
hash = (37 * hash) + APP_PAYMENT_MODEL_FIELD_NUMBER;
hash = (53 * hash) + getAppPaymentModel().hashCode();
break;
case 48:
hash = (37 * hash) + CUSTOM_AFFINITY_FIELD_NUMBER;
hash = (53 * hash) + getCustomAffinity().hashCode();
break;
case 49:
hash = (37 * hash) + CUSTOM_INTENT_FIELD_NUMBER;
hash = (53 * hash) + getCustomIntent().hashCode();
break;
case 74:
hash = (37 * hash) + CUSTOM_AUDIENCE_FIELD_NUMBER;
hash = (53 * hash) + getCustomAudience().hashCode();
break;
case 75:
hash = (37 * hash) + COMBINED_AUDIENCE_FIELD_NUMBER;
hash = (53 * hash) + getCombinedAudience().hashCode();
break;
case 79:
hash = (37 * hash) + AUDIENCE_FIELD_NUMBER;
hash = (53 * hash) + getAudience().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion 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.AdGroupCriterion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion 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.AdGroupCriterion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion 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.AdGroupCriterion 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.AdGroupCriterion 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.AdGroupCriterion 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.AdGroupCriterion 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.AdGroupCriterion 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.AdGroupCriterion 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.AdGroupCriterion prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* An ad group criterion.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.AdGroupCriterion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.AdGroupCriterion)
com.google.ads.googleads.v10.resources.AdGroupCriterionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.AdGroupCriterion.class, com.google.ads.googleads.v10.resources.AdGroupCriterion.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.AdGroupCriterion.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceName_ = "";
criterionId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
displayName_ = "";
status_ = 0;
if (qualityInfoBuilder_ == null) {
qualityInfo_ = null;
} else {
qualityInfo_ = null;
qualityInfoBuilder_ = null;
}
adGroup_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
negative_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
systemServingStatus_ = 0;
approvalStatus_ = 0;
disapprovalReasons_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
bidModifier_ = 0D;
bitField0_ = (bitField0_ & ~0x00000020);
cpcBidMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
cpmBidMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
cpvBidMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
percentCpcBidMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000200);
effectiveCpcBidMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
effectiveCpmBidMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000800);
effectiveCpvBidMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00001000);
effectivePercentCpcBidMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00002000);
effectiveCpcBidSource_ = 0;
effectiveCpmBidSource_ = 0;
effectiveCpvBidSource_ = 0;
effectivePercentCpcBidSource_ = 0;
if (positionEstimatesBuilder_ == null) {
positionEstimates_ = null;
} else {
positionEstimates_ = null;
positionEstimatesBuilder_ = null;
}
finalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00004000);
finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00008000);
finalUrlSuffix_ = "";
bitField0_ = (bitField0_ & ~0x00010000);
trackingUrlTemplate_ = "";
bitField0_ = (bitField0_ & ~0x00020000);
if (urlCustomParametersBuilder_ == null) {
urlCustomParameters_ = java.util.Collections.emptyList();
} else {
urlCustomParameters_ = null;
urlCustomParametersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00040000);
if (keywordBuilder_ != null) {
keywordBuilder_.clear();
}
if (placementBuilder_ != null) {
placementBuilder_.clear();
}
if (mobileAppCategoryBuilder_ != null) {
mobileAppCategoryBuilder_.clear();
}
if (mobileApplicationBuilder_ != null) {
mobileApplicationBuilder_.clear();
}
if (listingGroupBuilder_ != null) {
listingGroupBuilder_.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 (topicBuilder_ != null) {
topicBuilder_.clear();
}
if (userInterestBuilder_ != null) {
userInterestBuilder_.clear();
}
if (webpageBuilder_ != null) {
webpageBuilder_.clear();
}
if (appPaymentModelBuilder_ != null) {
appPaymentModelBuilder_.clear();
}
if (customAffinityBuilder_ != null) {
customAffinityBuilder_.clear();
}
if (customIntentBuilder_ != null) {
customIntentBuilder_.clear();
}
if (customAudienceBuilder_ != null) {
customAudienceBuilder_.clear();
}
if (combinedAudienceBuilder_ != null) {
combinedAudienceBuilder_.clear();
}
if (audienceBuilder_ != null) {
audienceBuilder_.clear();
}
criterionCase_ = 0;
criterion_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.AdGroupCriterionProto.internal_static_google_ads_googleads_v10_resources_AdGroupCriterion_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.AdGroupCriterion.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion build() {
com.google.ads.googleads.v10.resources.AdGroupCriterion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdGroupCriterion buildPartial() {
com.google.ads.googleads.v10.resources.AdGroupCriterion result = new com.google.ads.googleads.v10.resources.AdGroupCriterion(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.resourceName_ = resourceName_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.criterionId_ = criterionId_;
to_bitField0_ |= 0x00000001;
}
result.displayName_ = displayName_;
result.status_ = status_;
if (qualityInfoBuilder_ == null) {
result.qualityInfo_ = qualityInfo_;
} else {
result.qualityInfo_ = qualityInfoBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.adGroup_ = adGroup_;
result.type_ = type_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.negative_ = negative_;
to_bitField0_ |= 0x00000004;
}
result.systemServingStatus_ = systemServingStatus_;
result.approvalStatus_ = approvalStatus_;
if (((bitField0_ & 0x00000008) != 0)) {
disapprovalReasons_ = disapprovalReasons_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.disapprovalReasons_ = disapprovalReasons_;
if (((bitField0_ & 0x00000010) != 0)) {
labels_ = labels_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.labels_ = labels_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.bidModifier_ = bidModifier_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.cpcBidMicros_ = cpcBidMicros_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.cpmBidMicros_ = cpmBidMicros_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.cpvBidMicros_ = cpvBidMicros_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.percentCpcBidMicros_ = percentCpcBidMicros_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.effectiveCpcBidMicros_ = effectiveCpcBidMicros_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.effectiveCpmBidMicros_ = effectiveCpmBidMicros_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.effectiveCpvBidMicros_ = effectiveCpvBidMicros_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.effectivePercentCpcBidMicros_ = effectivePercentCpcBidMicros_;
to_bitField0_ |= 0x00000800;
}
result.effectiveCpcBidSource_ = effectiveCpcBidSource_;
result.effectiveCpmBidSource_ = effectiveCpmBidSource_;
result.effectiveCpvBidSource_ = effectiveCpvBidSource_;
result.effectivePercentCpcBidSource_ = effectivePercentCpcBidSource_;
if (positionEstimatesBuilder_ == null) {
result.positionEstimates_ = positionEstimates_;
} else {
result.positionEstimates_ = positionEstimatesBuilder_.build();
}
if (((bitField0_ & 0x00004000) != 0)) {
finalUrls_ = finalUrls_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00004000);
}
result.finalUrls_ = finalUrls_;
if (((bitField0_ & 0x00008000) != 0)) {
finalMobileUrls_ = finalMobileUrls_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00008000);
}
result.finalMobileUrls_ = finalMobileUrls_;
if (((from_bitField0_ & 0x00010000) != 0)) {
to_bitField0_ |= 0x00001000;
}
result.finalUrlSuffix_ = finalUrlSuffix_;
if (((from_bitField0_ & 0x00020000) != 0)) {
to_bitField0_ |= 0x00002000;
}
result.trackingUrlTemplate_ = trackingUrlTemplate_;
if (urlCustomParametersBuilder_ == null) {
if (((bitField0_ & 0x00040000) != 0)) {
urlCustomParameters_ = java.util.Collections.unmodifiableList(urlCustomParameters_);
bitField0_ = (bitField0_ & ~0x00040000);
}
result.urlCustomParameters_ = urlCustomParameters_;
} else {
result.urlCustomParameters_ = urlCustomParametersBuilder_.build();
}
if (criterionCase_ == 27) {
if (keywordBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = keywordBuilder_.build();
}
}
if (criterionCase_ == 28) {
if (placementBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = placementBuilder_.build();
}
}
if (criterionCase_ == 29) {
if (mobileAppCategoryBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = mobileAppCategoryBuilder_.build();
}
}
if (criterionCase_ == 30) {
if (mobileApplicationBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = mobileApplicationBuilder_.build();
}
}
if (criterionCase_ == 32) {
if (listingGroupBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = listingGroupBuilder_.build();
}
}
if (criterionCase_ == 36) {
if (ageRangeBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = ageRangeBuilder_.build();
}
}
if (criterionCase_ == 37) {
if (genderBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = genderBuilder_.build();
}
}
if (criterionCase_ == 38) {
if (incomeRangeBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = incomeRangeBuilder_.build();
}
}
if (criterionCase_ == 39) {
if (parentalStatusBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = parentalStatusBuilder_.build();
}
}
if (criterionCase_ == 42) {
if (userListBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = userListBuilder_.build();
}
}
if (criterionCase_ == 40) {
if (youtubeVideoBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = youtubeVideoBuilder_.build();
}
}
if (criterionCase_ == 41) {
if (youtubeChannelBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = youtubeChannelBuilder_.build();
}
}
if (criterionCase_ == 43) {
if (topicBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = topicBuilder_.build();
}
}
if (criterionCase_ == 45) {
if (userInterestBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = userInterestBuilder_.build();
}
}
if (criterionCase_ == 46) {
if (webpageBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = webpageBuilder_.build();
}
}
if (criterionCase_ == 47) {
if (appPaymentModelBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = appPaymentModelBuilder_.build();
}
}
if (criterionCase_ == 48) {
if (customAffinityBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = customAffinityBuilder_.build();
}
}
if (criterionCase_ == 49) {
if (customIntentBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = customIntentBuilder_.build();
}
}
if (criterionCase_ == 74) {
if (customAudienceBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = customAudienceBuilder_.build();
}
}
if (criterionCase_ == 75) {
if (combinedAudienceBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = combinedAudienceBuilder_.build();
}
}
if (criterionCase_ == 79) {
if (audienceBuilder_ == null) {
result.criterion_ = criterion_;
} else {
result.criterion_ = audienceBuilder_.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.AdGroupCriterion) {
return mergeFrom((com.google.ads.googleads.v10.resources.AdGroupCriterion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.AdGroupCriterion other) {
if (other == com.google.ads.googleads.v10.resources.AdGroupCriterion.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
onChanged();
}
if (other.hasCriterionId()) {
setCriterionId(other.getCriterionId());
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.hasQualityInfo()) {
mergeQualityInfo(other.getQualityInfo());
}
if (other.hasAdGroup()) {
bitField0_ |= 0x00000002;
adGroup_ = other.adGroup_;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasNegative()) {
setNegative(other.getNegative());
}
if (other.systemServingStatus_ != 0) {
setSystemServingStatusValue(other.getSystemServingStatusValue());
}
if (other.approvalStatus_ != 0) {
setApprovalStatusValue(other.getApprovalStatusValue());
}
if (!other.disapprovalReasons_.isEmpty()) {
if (disapprovalReasons_.isEmpty()) {
disapprovalReasons_ = other.disapprovalReasons_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureDisapprovalReasonsIsMutable();
disapprovalReasons_.addAll(other.disapprovalReasons_);
}
onChanged();
}
if (!other.labels_.isEmpty()) {
if (labels_.isEmpty()) {
labels_ = other.labels_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureLabelsIsMutable();
labels_.addAll(other.labels_);
}
onChanged();
}
if (other.hasBidModifier()) {
setBidModifier(other.getBidModifier());
}
if (other.hasCpcBidMicros()) {
setCpcBidMicros(other.getCpcBidMicros());
}
if (other.hasCpmBidMicros()) {
setCpmBidMicros(other.getCpmBidMicros());
}
if (other.hasCpvBidMicros()) {
setCpvBidMicros(other.getCpvBidMicros());
}
if (other.hasPercentCpcBidMicros()) {
setPercentCpcBidMicros(other.getPercentCpcBidMicros());
}
if (other.hasEffectiveCpcBidMicros()) {
setEffectiveCpcBidMicros(other.getEffectiveCpcBidMicros());
}
if (other.hasEffectiveCpmBidMicros()) {
setEffectiveCpmBidMicros(other.getEffectiveCpmBidMicros());
}
if (other.hasEffectiveCpvBidMicros()) {
setEffectiveCpvBidMicros(other.getEffectiveCpvBidMicros());
}
if (other.hasEffectivePercentCpcBidMicros()) {
setEffectivePercentCpcBidMicros(other.getEffectivePercentCpcBidMicros());
}
if (other.effectiveCpcBidSource_ != 0) {
setEffectiveCpcBidSourceValue(other.getEffectiveCpcBidSourceValue());
}
if (other.effectiveCpmBidSource_ != 0) {
setEffectiveCpmBidSourceValue(other.getEffectiveCpmBidSourceValue());
}
if (other.effectiveCpvBidSource_ != 0) {
setEffectiveCpvBidSourceValue(other.getEffectiveCpvBidSourceValue());
}
if (other.effectivePercentCpcBidSource_ != 0) {
setEffectivePercentCpcBidSourceValue(other.getEffectivePercentCpcBidSourceValue());
}
if (other.hasPositionEstimates()) {
mergePositionEstimates(other.getPositionEstimates());
}
if (!other.finalUrls_.isEmpty()) {
if (finalUrls_.isEmpty()) {
finalUrls_ = other.finalUrls_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureFinalUrlsIsMutable();
finalUrls_.addAll(other.finalUrls_);
}
onChanged();
}
if (!other.finalMobileUrls_.isEmpty()) {
if (finalMobileUrls_.isEmpty()) {
finalMobileUrls_ = other.finalMobileUrls_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.addAll(other.finalMobileUrls_);
}
onChanged();
}
if (other.hasFinalUrlSuffix()) {
bitField0_ |= 0x00010000;
finalUrlSuffix_ = other.finalUrlSuffix_;
onChanged();
}
if (other.hasTrackingUrlTemplate()) {
bitField0_ |= 0x00020000;
trackingUrlTemplate_ = other.trackingUrlTemplate_;
onChanged();
}
if (urlCustomParametersBuilder_ == null) {
if (!other.urlCustomParameters_.isEmpty()) {
if (urlCustomParameters_.isEmpty()) {
urlCustomParameters_ = other.urlCustomParameters_;
bitField0_ = (bitField0_ & ~0x00040000);
} else {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.addAll(other.urlCustomParameters_);
}
onChanged();
}
} else {
if (!other.urlCustomParameters_.isEmpty()) {
if (urlCustomParametersBuilder_.isEmpty()) {
urlCustomParametersBuilder_.dispose();
urlCustomParametersBuilder_ = null;
urlCustomParameters_ = other.urlCustomParameters_;
bitField0_ = (bitField0_ & ~0x00040000);
urlCustomParametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUrlCustomParametersFieldBuilder() : null;
} else {
urlCustomParametersBuilder_.addAllMessages(other.urlCustomParameters_);
}
}
}
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 LISTING_GROUP: {
mergeListingGroup(other.getListingGroup());
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 TOPIC: {
mergeTopic(other.getTopic());
break;
}
case USER_INTEREST: {
mergeUserInterest(other.getUserInterest());
break;
}
case WEBPAGE: {
mergeWebpage(other.getWebpage());
break;
}
case APP_PAYMENT_MODEL: {
mergeAppPaymentModel(other.getAppPaymentModel());
break;
}
case CUSTOM_AFFINITY: {
mergeCustomAffinity(other.getCustomAffinity());
break;
}
case CUSTOM_INTENT: {
mergeCustomIntent(other.getCustomIntent());
break;
}
case CUSTOM_AUDIENCE: {
mergeCustomAudience(other.getCustomAudience());
break;
}
case COMBINED_AUDIENCE: {
mergeCombinedAudience(other.getCombinedAudience());
break;
}
case AUDIENCE: {
mergeAudience(other.getAudience());
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 24: {
status_ = input.readEnum();
break;
} // case 24
case 34: {
input.readMessage(
getQualityInfoFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 34
case 82: {
input.readMessage(
getPositionEstimatesFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 82
case 114: {
com.google.ads.googleads.v10.common.CustomParameter m =
input.readMessage(
com.google.ads.googleads.v10.common.CustomParameter.parser(),
extensionRegistry);
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(m);
} else {
urlCustomParametersBuilder_.addMessage(m);
}
break;
} // case 114
case 168: {
effectiveCpcBidSource_ = input.readEnum();
break;
} // case 168
case 176: {
effectiveCpmBidSource_ = input.readEnum();
break;
} // case 176
case 184: {
effectiveCpvBidSource_ = input.readEnum();
break;
} // case 184
case 200: {
type_ = input.readEnum();
break;
} // case 200
case 218: {
input.readMessage(
getKeywordFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 27;
break;
} // case 218
case 226: {
input.readMessage(
getPlacementFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 28;
break;
} // case 226
case 234: {
input.readMessage(
getMobileAppCategoryFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 29;
break;
} // case 234
case 242: {
input.readMessage(
getMobileApplicationFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 30;
break;
} // case 242
case 258: {
input.readMessage(
getListingGroupFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 32;
break;
} // case 258
case 280: {
effectivePercentCpcBidSource_ = input.readEnum();
break;
} // case 280
case 290: {
input.readMessage(
getAgeRangeFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 36;
break;
} // case 290
case 298: {
input.readMessage(
getGenderFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 37;
break;
} // case 298
case 306: {
input.readMessage(
getIncomeRangeFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 38;
break;
} // case 306
case 314: {
input.readMessage(
getParentalStatusFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 39;
break;
} // case 314
case 322: {
input.readMessage(
getYoutubeVideoFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 40;
break;
} // case 322
case 330: {
input.readMessage(
getYoutubeChannelFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 41;
break;
} // case 330
case 338: {
input.readMessage(
getUserListFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 42;
break;
} // case 338
case 346: {
input.readMessage(
getTopicFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 43;
break;
} // case 346
case 362: {
input.readMessage(
getUserInterestFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 45;
break;
} // case 362
case 370: {
input.readMessage(
getWebpageFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 46;
break;
} // case 370
case 378: {
input.readMessage(
getAppPaymentModelFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 47;
break;
} // case 378
case 386: {
input.readMessage(
getCustomAffinityFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 48;
break;
} // case 386
case 394: {
input.readMessage(
getCustomIntentFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 49;
break;
} // case 394
case 416: {
systemServingStatus_ = input.readEnum();
break;
} // case 416
case 424: {
approvalStatus_ = input.readEnum();
break;
} // case 424
case 448: {
criterionId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 448
case 458: {
adGroup_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 458
case 464: {
negative_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 464
case 474: {
java.lang.String s = input.readStringRequireUtf8();
ensureDisapprovalReasonsIsMutable();
disapprovalReasons_.add(s);
break;
} // case 474
case 482: {
java.lang.String s = input.readStringRequireUtf8();
ensureLabelsIsMutable();
labels_.add(s);
break;
} // case 482
case 489: {
bidModifier_ = input.readDouble();
bitField0_ |= 0x00000020;
break;
} // case 489
case 496: {
cpcBidMicros_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 496
case 504: {
cpmBidMicros_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 504
case 512: {
cpvBidMicros_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 512
case 520: {
percentCpcBidMicros_ = input.readInt64();
bitField0_ |= 0x00000200;
break;
} // case 520
case 528: {
effectiveCpcBidMicros_ = input.readInt64();
bitField0_ |= 0x00000400;
break;
} // case 528
case 536: {
effectiveCpmBidMicros_ = input.readInt64();
bitField0_ |= 0x00000800;
break;
} // case 536
case 544: {
effectiveCpvBidMicros_ = input.readInt64();
bitField0_ |= 0x00001000;
break;
} // case 544
case 552: {
effectivePercentCpcBidMicros_ = input.readInt64();
bitField0_ |= 0x00002000;
break;
} // case 552
case 562: {
java.lang.String s = input.readStringRequireUtf8();
ensureFinalUrlsIsMutable();
finalUrls_.add(s);
break;
} // case 562
case 570: {
java.lang.String s = input.readStringRequireUtf8();
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.add(s);
break;
} // case 570
case 578: {
finalUrlSuffix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00010000;
break;
} // case 578
case 586: {
trackingUrlTemplate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00020000;
break;
} // case 586
case 594: {
input.readMessage(
getCustomAudienceFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 74;
break;
} // case 594
case 602: {
input.readMessage(
getCombinedAudienceFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 75;
break;
} // case 602
case 618: {
displayName_ = input.readStringRequireUtf8();
break;
} // case 618
case 634: {
input.readMessage(
getAudienceFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 79;
break;
} // case 634
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 ad group criterion.
* Ad group criterion resource names have the form:
* `customers/{customer_id}/adGroupCriteria/{ad_group_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 ad group criterion.
* Ad group criterion resource names have the form:
* `customers/{customer_id}/adGroupCriteria/{ad_group_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 ad group criterion.
* Ad group criterion resource names have the form:
* `customers/{customer_id}/adGroupCriteria/{ad_group_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 ad group criterion.
* Ad group criterion resource names have the form:
* `customers/{customer_id}/adGroupCriteria/{ad_group_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 ad group criterion.
* Ad group criterion resource names have the form:
* `customers/{customer_id}/adGroupCriteria/{ad_group_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 long criterionId_ ;
/**
*
* Output only. The ID of the criterion.
* This field is ignored for mutates.
*
*
* optional int64 criterion_id = 56 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the criterionId field is set.
*/
@java.lang.Override
public boolean hasCriterionId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The ID of the criterion.
* This field is ignored for mutates.
*
*
* optional int64 criterion_id = 56 [(.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 for mutates.
*
*
* optional int64 criterion_id = 56 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The criterionId to set.
* @return This builder for chaining.
*/
public Builder setCriterionId(long value) {
bitField0_ |= 0x00000001;
criterionId_ = value;
onChanged();
return this;
}
/**
*
* Output only. The ID of the criterion.
* This field is ignored for mutates.
*
*
* optional int64 criterion_id = 56 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCriterionId() {
bitField0_ = (bitField0_ & ~0x00000001);
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 = 77 [(.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 = 77 [(.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 = 77 [(.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 = 77 [(.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 = 77 [(.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 int status_ = 0;
/**
*
* The status of the criterion.
* This is the status of the ad group criterion entity, set by the client.
* Note: UI reports may incorporate additional information that affects
* whether a criterion is eligible to run. In some cases a criterion that's
* REMOVED in the API can still show as enabled in the UI.
* For example, campaigns by default show to users of all age ranges unless
* excluded. The UI will show each age range as "enabled", since they're
* eligible to see the ads; but AdGroupCriterion.status will show "removed",
* since no positive criterion was added.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of the criterion.
* This is the status of the ad group criterion entity, set by the client.
* Note: UI reports may incorporate additional information that affects
* whether a criterion is eligible to run. In some cases a criterion that's
* REMOVED in the API can still show as enabled in the UI.
* For example, campaigns by default show to users of all age ranges unless
* excluded. The UI will show each age range as "enabled", since they're
* eligible to see the ads; but AdGroupCriterion.status will show "removed",
* since no positive criterion was added.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3;
* @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.
* This is the status of the ad group criterion entity, set by the client.
* Note: UI reports may incorporate additional information that affects
* whether a criterion is eligible to run. In some cases a criterion that's
* REMOVED in the API can still show as enabled in the UI.
* For example, campaigns by default show to users of all age ranges unless
* excluded. The UI will show each age range as "enabled", since they're
* eligible to see the ads; but AdGroupCriterion.status will show "removed",
* since no positive criterion was added.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3;
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus result = com.google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus.UNRECOGNIZED : result;
}
/**
*
* The status of the criterion.
* This is the status of the ad group criterion entity, set by the client.
* Note: UI reports may incorporate additional information that affects
* whether a criterion is eligible to run. In some cases a criterion that's
* REMOVED in the API can still show as enabled in the UI.
* For example, campaigns by default show to users of all age ranges unless
* excluded. The UI will show each age range as "enabled", since they're
* eligible to see the ads; but AdGroupCriterion.status will show "removed",
* since no positive criterion was added.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The status of the criterion.
* This is the status of the ad group criterion entity, set by the client.
* Note: UI reports may incorporate additional information that affects
* whether a criterion is eligible to run. In some cases a criterion that's
* REMOVED in the API can still show as enabled in the UI.
* For example, campaigns by default show to users of all age ranges unless
* excluded. The UI will show each age range as "enabled", since they're
* eligible to see the ads; but AdGroupCriterion.status will show "removed",
* since no positive criterion was added.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo qualityInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo, com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.Builder, com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfoOrBuilder> qualityInfoBuilder_;
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the qualityInfo field is set.
*/
public boolean hasQualityInfo() {
return qualityInfoBuilder_ != null || qualityInfo_ != null;
}
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The qualityInfo.
*/
public com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo getQualityInfo() {
if (qualityInfoBuilder_ == null) {
return qualityInfo_ == null ? com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.getDefaultInstance() : qualityInfo_;
} else {
return qualityInfoBuilder_.getMessage();
}
}
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setQualityInfo(com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo value) {
if (qualityInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
qualityInfo_ = value;
onChanged();
} else {
qualityInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setQualityInfo(
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.Builder builderForValue) {
if (qualityInfoBuilder_ == null) {
qualityInfo_ = builderForValue.build();
onChanged();
} else {
qualityInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeQualityInfo(com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo value) {
if (qualityInfoBuilder_ == null) {
if (qualityInfo_ != null) {
qualityInfo_ =
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.newBuilder(qualityInfo_).mergeFrom(value).buildPartial();
} else {
qualityInfo_ = value;
}
onChanged();
} else {
qualityInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearQualityInfo() {
if (qualityInfoBuilder_ == null) {
qualityInfo_ = null;
onChanged();
} else {
qualityInfo_ = null;
qualityInfoBuilder_ = null;
}
return this;
}
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.Builder getQualityInfoBuilder() {
onChanged();
return getQualityInfoFieldBuilder().getBuilder();
}
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfoOrBuilder getQualityInfoOrBuilder() {
if (qualityInfoBuilder_ != null) {
return qualityInfoBuilder_.getMessageOrBuilder();
} else {
return qualityInfo_ == null ?
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.getDefaultInstance() : qualityInfo_;
}
}
/**
*
* Output only. Information regarding the quality of the criterion.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo quality_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo, com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.Builder, com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfoOrBuilder>
getQualityInfoFieldBuilder() {
if (qualityInfoBuilder_ == null) {
qualityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo, com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfo.Builder, com.google.ads.googleads.v10.resources.AdGroupCriterion.QualityInfoOrBuilder>(
getQualityInfo(),
getParentForChildren(),
isClean());
qualityInfo_ = null;
}
return qualityInfoBuilder_;
}
private java.lang.Object adGroup_ = "";
/**
*
* Immutable. The ad group to which the criterion belongs.
*
*
* optional string ad_group = 57 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the adGroup field is set.
*/
public boolean hasAdGroup() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Immutable. The ad group to which the criterion belongs.
*
*
* optional string ad_group = 57 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The adGroup.
*/
public java.lang.String getAdGroup() {
java.lang.Object ref = adGroup_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
adGroup_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The ad group to which the criterion belongs.
*
*
* optional string ad_group = 57 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for adGroup.
*/
public com.google.protobuf.ByteString
getAdGroupBytes() {
java.lang.Object ref = adGroup_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The ad group to which the criterion belongs.
*
*
* optional string ad_group = 57 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The adGroup to set.
* @return This builder for chaining.
*/
public Builder setAdGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
adGroup_ = value;
onChanged();
return this;
}
/**
*
* Immutable. The ad group to which the criterion belongs.
*
*
* optional string ad_group = 57 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearAdGroup() {
bitField0_ = (bitField0_ & ~0x00000002);
adGroup_ = getDefaultInstance().getAdGroup();
onChanged();
return this;
}
/**
*
* Immutable. The ad group to which the criterion belongs.
*
*
* optional string ad_group = 57 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for adGroup to set.
* @return This builder for chaining.
*/
public Builder setAdGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
adGroup_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionTypeEnum.CriterionType type = 25 [(.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 = 25 [(.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 = 25 [(.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 = 25 [(.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 = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private boolean negative_ ;
/**
*
* Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
* This field is immutable. To switch a criterion from positive to negative,
* remove then re-add it.
*
*
* optional bool negative = 58 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the negative field is set.
*/
@java.lang.Override
public boolean hasNegative() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
* This field is immutable. To switch a criterion from positive to negative,
* remove then re-add it.
*
*
* optional bool negative = 58 [(.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.
* This field is immutable. To switch a criterion from positive to negative,
* remove then re-add it.
*
*
* optional bool negative = 58 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The negative to set.
* @return This builder for chaining.
*/
public Builder setNegative(boolean value) {
bitField0_ |= 0x00000004;
negative_ = value;
onChanged();
return this;
}
/**
*
* Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
* This field is immutable. To switch a criterion from positive to negative,
* remove then re-add it.
*
*
* optional bool negative = 58 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearNegative() {
bitField0_ = (bitField0_ & ~0x00000004);
negative_ = false;
onChanged();
return this;
}
private int systemServingStatus_ = 0;
/**
*
* Output only. Serving status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus system_serving_status = 52 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for systemServingStatus.
*/
@java.lang.Override public int getSystemServingStatusValue() {
return systemServingStatus_;
}
/**
*
* Output only. Serving status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus system_serving_status = 52 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for systemServingStatus to set.
* @return This builder for chaining.
*/
public Builder setSystemServingStatusValue(int value) {
systemServingStatus_ = value;
onChanged();
return this;
}
/**
*
* Output only. Serving status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus system_serving_status = 52 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The systemServingStatus.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus getSystemServingStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus result = com.google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus.valueOf(systemServingStatus_);
return result == null ? com.google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. Serving status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus system_serving_status = 52 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The systemServingStatus to set.
* @return This builder for chaining.
*/
public Builder setSystemServingStatus(com.google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus value) {
if (value == null) {
throw new NullPointerException();
}
systemServingStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Serving status of the criterion.
*
*
* .google.ads.googleads.v10.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus system_serving_status = 52 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearSystemServingStatus() {
systemServingStatus_ = 0;
onChanged();
return this;
}
private int approvalStatus_ = 0;
/**
*
* Output only. Approval status of the criterion.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus approval_status = 53 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for approvalStatus.
*/
@java.lang.Override public int getApprovalStatusValue() {
return approvalStatus_;
}
/**
*
* Output only. Approval status of the criterion.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus approval_status = 53 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for approvalStatus to set.
* @return This builder for chaining.
*/
public Builder setApprovalStatusValue(int value) {
approvalStatus_ = value;
onChanged();
return this;
}
/**
*
* Output only. Approval status of the criterion.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus approval_status = 53 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The approvalStatus.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus getApprovalStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus result = com.google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus.valueOf(approvalStatus_);
return result == null ? com.google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. Approval status of the criterion.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus approval_status = 53 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The approvalStatus to set.
* @return This builder for chaining.
*/
public Builder setApprovalStatus(com.google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus value) {
if (value == null) {
throw new NullPointerException();
}
approvalStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Approval status of the criterion.
*
*
* .google.ads.googleads.v10.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus approval_status = 53 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearApprovalStatus() {
approvalStatus_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList disapprovalReasons_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDisapprovalReasonsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
disapprovalReasons_ = new com.google.protobuf.LazyStringArrayList(disapprovalReasons_);
bitField0_ |= 0x00000008;
}
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return A list containing the disapprovalReasons.
*/
public com.google.protobuf.ProtocolStringList
getDisapprovalReasonsList() {
return disapprovalReasons_.getUnmodifiableView();
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The count of disapprovalReasons.
*/
public int getDisapprovalReasonsCount() {
return disapprovalReasons_.size();
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param index The index of the element to return.
* @return The disapprovalReasons at the given index.
*/
public java.lang.String getDisapprovalReasons(int index) {
return disapprovalReasons_.get(index);
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param index The index of the value to return.
* @return The bytes of the disapprovalReasons at the given index.
*/
public com.google.protobuf.ByteString
getDisapprovalReasonsBytes(int index) {
return disapprovalReasons_.getByteString(index);
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param index The index to set the value at.
* @param value The disapprovalReasons to set.
* @return This builder for chaining.
*/
public Builder setDisapprovalReasons(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDisapprovalReasonsIsMutable();
disapprovalReasons_.set(index, value);
onChanged();
return this;
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The disapprovalReasons to add.
* @return This builder for chaining.
*/
public Builder addDisapprovalReasons(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDisapprovalReasonsIsMutable();
disapprovalReasons_.add(value);
onChanged();
return this;
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param values The disapprovalReasons to add.
* @return This builder for chaining.
*/
public Builder addAllDisapprovalReasons(
java.lang.Iterable values) {
ensureDisapprovalReasonsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, disapprovalReasons_);
onChanged();
return this;
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearDisapprovalReasons() {
disapprovalReasons_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Output only. List of disapproval reasons of the criterion.
* The different reasons for disapproving a criterion can be found here:
* https://support.google.com/adspolicy/answer/6008942
* This field is read-only.
*
*
* repeated string disapproval_reasons = 59 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes of the disapprovalReasons to add.
* @return This builder for chaining.
*/
public Builder addDisapprovalReasonsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDisapprovalReasonsIsMutable();
disapprovalReasons_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLabelsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
labels_ = new com.google.protobuf.LazyStringArrayList(labels_);
bitField0_ |= 0x00000010;
}
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return A list containing the labels.
*/
public com.google.protobuf.ProtocolStringList
getLabelsList() {
return labels_.getUnmodifiableView();
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The count of labels.
*/
public int getLabelsCount() {
return labels_.size();
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The labels at the given index.
*/
public java.lang.String getLabels(int index) {
return labels_.get(index);
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the labels at the given index.
*/
public com.google.protobuf.ByteString
getLabelsBytes(int index) {
return labels_.getByteString(index);
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param index The index to set the value at.
* @param value The labels to set.
* @return This builder for chaining.
*/
public Builder setLabels(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.set(index, value);
onChanged();
return this;
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The labels to add.
* @return This builder for chaining.
*/
public Builder addLabels(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.add(value);
onChanged();
return this;
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param values The labels to add.
* @return This builder for chaining.
*/
public Builder addAllLabels(
java.lang.Iterable values) {
ensureLabelsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, labels_);
onChanged();
return this;
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearLabels() {
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Output only. The resource names of labels attached to this ad group criterion.
*
*
* repeated string labels = 60 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes of the labels to add.
* @return This builder for chaining.
*/
public Builder addLabelsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureLabelsIsMutable();
labels_.add(value);
onChanged();
return this;
}
private double bidModifier_ ;
/**
*
* The modifier for the bid when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
*
*
* optional double bid_modifier = 61;
* @return Whether the bidModifier field is set.
*/
@java.lang.Override
public boolean hasBidModifier() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The modifier for the bid when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
*
*
* optional double bid_modifier = 61;
* @return The bidModifier.
*/
@java.lang.Override
public double getBidModifier() {
return bidModifier_;
}
/**
*
* The modifier for the bid when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
*
*
* optional double bid_modifier = 61;
* @param value The bidModifier to set.
* @return This builder for chaining.
*/
public Builder setBidModifier(double value) {
bitField0_ |= 0x00000020;
bidModifier_ = value;
onChanged();
return this;
}
/**
*
* The modifier for the bid when the criterion matches. The modifier must be
* in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
*
*
* optional double bid_modifier = 61;
* @return This builder for chaining.
*/
public Builder clearBidModifier() {
bitField0_ = (bitField0_ & ~0x00000020);
bidModifier_ = 0D;
onChanged();
return this;
}
private long cpcBidMicros_ ;
/**
*
* The CPC (cost-per-click) bid.
*
*
* optional int64 cpc_bid_micros = 62;
* @return Whether the cpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasCpcBidMicros() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The CPC (cost-per-click) bid.
*
*
* optional int64 cpc_bid_micros = 62;
* @return The cpcBidMicros.
*/
@java.lang.Override
public long getCpcBidMicros() {
return cpcBidMicros_;
}
/**
*
* The CPC (cost-per-click) bid.
*
*
* optional int64 cpc_bid_micros = 62;
* @param value The cpcBidMicros to set.
* @return This builder for chaining.
*/
public Builder setCpcBidMicros(long value) {
bitField0_ |= 0x00000040;
cpcBidMicros_ = value;
onChanged();
return this;
}
/**
*
* The CPC (cost-per-click) bid.
*
*
* optional int64 cpc_bid_micros = 62;
* @return This builder for chaining.
*/
public Builder clearCpcBidMicros() {
bitField0_ = (bitField0_ & ~0x00000040);
cpcBidMicros_ = 0L;
onChanged();
return this;
}
private long cpmBidMicros_ ;
/**
*
* The CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 cpm_bid_micros = 63;
* @return Whether the cpmBidMicros field is set.
*/
@java.lang.Override
public boolean hasCpmBidMicros() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* The CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 cpm_bid_micros = 63;
* @return The cpmBidMicros.
*/
@java.lang.Override
public long getCpmBidMicros() {
return cpmBidMicros_;
}
/**
*
* The CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 cpm_bid_micros = 63;
* @param value The cpmBidMicros to set.
* @return This builder for chaining.
*/
public Builder setCpmBidMicros(long value) {
bitField0_ |= 0x00000080;
cpmBidMicros_ = value;
onChanged();
return this;
}
/**
*
* The CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 cpm_bid_micros = 63;
* @return This builder for chaining.
*/
public Builder clearCpmBidMicros() {
bitField0_ = (bitField0_ & ~0x00000080);
cpmBidMicros_ = 0L;
onChanged();
return this;
}
private long cpvBidMicros_ ;
/**
*
* The CPV (cost-per-view) bid.
*
*
* optional int64 cpv_bid_micros = 64;
* @return Whether the cpvBidMicros field is set.
*/
@java.lang.Override
public boolean hasCpvBidMicros() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* The CPV (cost-per-view) bid.
*
*
* optional int64 cpv_bid_micros = 64;
* @return The cpvBidMicros.
*/
@java.lang.Override
public long getCpvBidMicros() {
return cpvBidMicros_;
}
/**
*
* The CPV (cost-per-view) bid.
*
*
* optional int64 cpv_bid_micros = 64;
* @param value The cpvBidMicros to set.
* @return This builder for chaining.
*/
public Builder setCpvBidMicros(long value) {
bitField0_ |= 0x00000100;
cpvBidMicros_ = value;
onChanged();
return this;
}
/**
*
* The CPV (cost-per-view) bid.
*
*
* optional int64 cpv_bid_micros = 64;
* @return This builder for chaining.
*/
public Builder clearCpvBidMicros() {
bitField0_ = (bitField0_ & ~0x00000100);
cpvBidMicros_ = 0L;
onChanged();
return this;
}
private long percentCpcBidMicros_ ;
/**
*
* The CPC bid amount, expressed as a fraction of the advertised price
* for some good or service. The valid range for the fraction is [0,1) and the
* value stored here is 1,000,000 * [fraction].
*
*
* optional int64 percent_cpc_bid_micros = 65;
* @return Whether the percentCpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasPercentCpcBidMicros() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* The CPC bid amount, expressed as a fraction of the advertised price
* for some good or service. The valid range for the fraction is [0,1) and the
* value stored here is 1,000,000 * [fraction].
*
*
* optional int64 percent_cpc_bid_micros = 65;
* @return The percentCpcBidMicros.
*/
@java.lang.Override
public long getPercentCpcBidMicros() {
return percentCpcBidMicros_;
}
/**
*
* The CPC bid amount, expressed as a fraction of the advertised price
* for some good or service. The valid range for the fraction is [0,1) and the
* value stored here is 1,000,000 * [fraction].
*
*
* optional int64 percent_cpc_bid_micros = 65;
* @param value The percentCpcBidMicros to set.
* @return This builder for chaining.
*/
public Builder setPercentCpcBidMicros(long value) {
bitField0_ |= 0x00000200;
percentCpcBidMicros_ = value;
onChanged();
return this;
}
/**
*
* The CPC bid amount, expressed as a fraction of the advertised price
* for some good or service. The valid range for the fraction is [0,1) and the
* value stored here is 1,000,000 * [fraction].
*
*
* optional int64 percent_cpc_bid_micros = 65;
* @return This builder for chaining.
*/
public Builder clearPercentCpcBidMicros() {
bitField0_ = (bitField0_ & ~0x00000200);
percentCpcBidMicros_ = 0L;
onChanged();
return this;
}
private long effectiveCpcBidMicros_ ;
/**
*
* Output only. The effective CPC (cost-per-click) bid.
*
*
* optional int64 effective_cpc_bid_micros = 66 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the effectiveCpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasEffectiveCpcBidMicros() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Output only. The effective CPC (cost-per-click) bid.
*
*
* optional int64 effective_cpc_bid_micros = 66 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpcBidMicros.
*/
@java.lang.Override
public long getEffectiveCpcBidMicros() {
return effectiveCpcBidMicros_;
}
/**
*
* Output only. The effective CPC (cost-per-click) bid.
*
*
* optional int64 effective_cpc_bid_micros = 66 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The effectiveCpcBidMicros to set.
* @return This builder for chaining.
*/
public Builder setEffectiveCpcBidMicros(long value) {
bitField0_ |= 0x00000400;
effectiveCpcBidMicros_ = value;
onChanged();
return this;
}
/**
*
* Output only. The effective CPC (cost-per-click) bid.
*
*
* optional int64 effective_cpc_bid_micros = 66 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEffectiveCpcBidMicros() {
bitField0_ = (bitField0_ & ~0x00000400);
effectiveCpcBidMicros_ = 0L;
onChanged();
return this;
}
private long effectiveCpmBidMicros_ ;
/**
*
* Output only. The effective CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 effective_cpm_bid_micros = 67 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the effectiveCpmBidMicros field is set.
*/
@java.lang.Override
public boolean hasEffectiveCpmBidMicros() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Output only. The effective CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 effective_cpm_bid_micros = 67 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpmBidMicros.
*/
@java.lang.Override
public long getEffectiveCpmBidMicros() {
return effectiveCpmBidMicros_;
}
/**
*
* Output only. The effective CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 effective_cpm_bid_micros = 67 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The effectiveCpmBidMicros to set.
* @return This builder for chaining.
*/
public Builder setEffectiveCpmBidMicros(long value) {
bitField0_ |= 0x00000800;
effectiveCpmBidMicros_ = value;
onChanged();
return this;
}
/**
*
* Output only. The effective CPM (cost-per-thousand viewable impressions) bid.
*
*
* optional int64 effective_cpm_bid_micros = 67 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEffectiveCpmBidMicros() {
bitField0_ = (bitField0_ & ~0x00000800);
effectiveCpmBidMicros_ = 0L;
onChanged();
return this;
}
private long effectiveCpvBidMicros_ ;
/**
*
* Output only. The effective CPV (cost-per-view) bid.
*
*
* optional int64 effective_cpv_bid_micros = 68 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the effectiveCpvBidMicros field is set.
*/
@java.lang.Override
public boolean hasEffectiveCpvBidMicros() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* Output only. The effective CPV (cost-per-view) bid.
*
*
* optional int64 effective_cpv_bid_micros = 68 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpvBidMicros.
*/
@java.lang.Override
public long getEffectiveCpvBidMicros() {
return effectiveCpvBidMicros_;
}
/**
*
* Output only. The effective CPV (cost-per-view) bid.
*
*
* optional int64 effective_cpv_bid_micros = 68 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The effectiveCpvBidMicros to set.
* @return This builder for chaining.
*/
public Builder setEffectiveCpvBidMicros(long value) {
bitField0_ |= 0x00001000;
effectiveCpvBidMicros_ = value;
onChanged();
return this;
}
/**
*
* Output only. The effective CPV (cost-per-view) bid.
*
*
* optional int64 effective_cpv_bid_micros = 68 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEffectiveCpvBidMicros() {
bitField0_ = (bitField0_ & ~0x00001000);
effectiveCpvBidMicros_ = 0L;
onChanged();
return this;
}
private long effectivePercentCpcBidMicros_ ;
/**
*
* Output only. The effective Percent CPC bid amount.
*
*
* optional int64 effective_percent_cpc_bid_micros = 69 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the effectivePercentCpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasEffectivePercentCpcBidMicros() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* Output only. The effective Percent CPC bid amount.
*
*
* optional int64 effective_percent_cpc_bid_micros = 69 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectivePercentCpcBidMicros.
*/
@java.lang.Override
public long getEffectivePercentCpcBidMicros() {
return effectivePercentCpcBidMicros_;
}
/**
*
* Output only. The effective Percent CPC bid amount.
*
*
* optional int64 effective_percent_cpc_bid_micros = 69 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The effectivePercentCpcBidMicros to set.
* @return This builder for chaining.
*/
public Builder setEffectivePercentCpcBidMicros(long value) {
bitField0_ |= 0x00002000;
effectivePercentCpcBidMicros_ = value;
onChanged();
return this;
}
/**
*
* Output only. The effective Percent CPC bid amount.
*
*
* optional int64 effective_percent_cpc_bid_micros = 69 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEffectivePercentCpcBidMicros() {
bitField0_ = (bitField0_ & ~0x00002000);
effectivePercentCpcBidMicros_ = 0L;
onChanged();
return this;
}
private int effectiveCpcBidSource_ = 0;
/**
*
* Output only. Source of the effective CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpc_bid_source = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for effectiveCpcBidSource.
*/
@java.lang.Override public int getEffectiveCpcBidSourceValue() {
return effectiveCpcBidSource_;
}
/**
*
* Output only. Source of the effective CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpc_bid_source = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for effectiveCpcBidSource to set.
* @return This builder for chaining.
*/
public Builder setEffectiveCpcBidSourceValue(int value) {
effectiveCpcBidSource_ = value;
onChanged();
return this;
}
/**
*
* Output only. Source of the effective CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpc_bid_source = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpcBidSource.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource getEffectiveCpcBidSource() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.valueOf(effectiveCpcBidSource_);
return result == null ? com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result;
}
/**
*
* Output only. Source of the effective CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpc_bid_source = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The effectiveCpcBidSource to set.
* @return This builder for chaining.
*/
public Builder setEffectiveCpcBidSource(com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource value) {
if (value == null) {
throw new NullPointerException();
}
effectiveCpcBidSource_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Source of the effective CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpc_bid_source = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEffectiveCpcBidSource() {
effectiveCpcBidSource_ = 0;
onChanged();
return this;
}
private int effectiveCpmBidSource_ = 0;
/**
*
* Output only. Source of the effective CPM bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpm_bid_source = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for effectiveCpmBidSource.
*/
@java.lang.Override public int getEffectiveCpmBidSourceValue() {
return effectiveCpmBidSource_;
}
/**
*
* Output only. Source of the effective CPM bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpm_bid_source = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for effectiveCpmBidSource to set.
* @return This builder for chaining.
*/
public Builder setEffectiveCpmBidSourceValue(int value) {
effectiveCpmBidSource_ = value;
onChanged();
return this;
}
/**
*
* Output only. Source of the effective CPM bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpm_bid_source = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpmBidSource.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource getEffectiveCpmBidSource() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.valueOf(effectiveCpmBidSource_);
return result == null ? com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result;
}
/**
*
* Output only. Source of the effective CPM bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpm_bid_source = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The effectiveCpmBidSource to set.
* @return This builder for chaining.
*/
public Builder setEffectiveCpmBidSource(com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource value) {
if (value == null) {
throw new NullPointerException();
}
effectiveCpmBidSource_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Source of the effective CPM bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpm_bid_source = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEffectiveCpmBidSource() {
effectiveCpmBidSource_ = 0;
onChanged();
return this;
}
private int effectiveCpvBidSource_ = 0;
/**
*
* Output only. Source of the effective CPV bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpv_bid_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for effectiveCpvBidSource.
*/
@java.lang.Override public int getEffectiveCpvBidSourceValue() {
return effectiveCpvBidSource_;
}
/**
*
* Output only. Source of the effective CPV bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpv_bid_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for effectiveCpvBidSource to set.
* @return This builder for chaining.
*/
public Builder setEffectiveCpvBidSourceValue(int value) {
effectiveCpvBidSource_ = value;
onChanged();
return this;
}
/**
*
* Output only. Source of the effective CPV bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpv_bid_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectiveCpvBidSource.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource getEffectiveCpvBidSource() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.valueOf(effectiveCpvBidSource_);
return result == null ? com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result;
}
/**
*
* Output only. Source of the effective CPV bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpv_bid_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The effectiveCpvBidSource to set.
* @return This builder for chaining.
*/
public Builder setEffectiveCpvBidSource(com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource value) {
if (value == null) {
throw new NullPointerException();
}
effectiveCpvBidSource_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Source of the effective CPV bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_cpv_bid_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEffectiveCpvBidSource() {
effectiveCpvBidSource_ = 0;
onChanged();
return this;
}
private int effectivePercentCpcBidSource_ = 0;
/**
*
* Output only. Source of the effective Percent CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_percent_cpc_bid_source = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for effectivePercentCpcBidSource.
*/
@java.lang.Override public int getEffectivePercentCpcBidSourceValue() {
return effectivePercentCpcBidSource_;
}
/**
*
* Output only. Source of the effective Percent CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_percent_cpc_bid_source = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for effectivePercentCpcBidSource to set.
* @return This builder for chaining.
*/
public Builder setEffectivePercentCpcBidSourceValue(int value) {
effectivePercentCpcBidSource_ = value;
onChanged();
return this;
}
/**
*
* Output only. Source of the effective Percent CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_percent_cpc_bid_source = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The effectivePercentCpcBidSource.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource getEffectivePercentCpcBidSource() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.valueOf(effectivePercentCpcBidSource_);
return result == null ? com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result;
}
/**
*
* Output only. Source of the effective Percent CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_percent_cpc_bid_source = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The effectivePercentCpcBidSource to set.
* @return This builder for chaining.
*/
public Builder setEffectivePercentCpcBidSource(com.google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource value) {
if (value == null) {
throw new NullPointerException();
}
effectivePercentCpcBidSource_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Source of the effective Percent CPC bid.
*
*
* .google.ads.googleads.v10.enums.BiddingSourceEnum.BiddingSource effective_percent_cpc_bid_source = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEffectivePercentCpcBidSource() {
effectivePercentCpcBidSource_ = 0;
onChanged();
return this;
}
private com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates positionEstimates_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates, com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.Builder, com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimatesOrBuilder> positionEstimatesBuilder_;
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the positionEstimates field is set.
*/
public boolean hasPositionEstimates() {
return positionEstimatesBuilder_ != null || positionEstimates_ != null;
}
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The positionEstimates.
*/
public com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates getPositionEstimates() {
if (positionEstimatesBuilder_ == null) {
return positionEstimates_ == null ? com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.getDefaultInstance() : positionEstimates_;
} else {
return positionEstimatesBuilder_.getMessage();
}
}
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setPositionEstimates(com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates value) {
if (positionEstimatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
positionEstimates_ = value;
onChanged();
} else {
positionEstimatesBuilder_.setMessage(value);
}
return this;
}
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setPositionEstimates(
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.Builder builderForValue) {
if (positionEstimatesBuilder_ == null) {
positionEstimates_ = builderForValue.build();
onChanged();
} else {
positionEstimatesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergePositionEstimates(com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates value) {
if (positionEstimatesBuilder_ == null) {
if (positionEstimates_ != null) {
positionEstimates_ =
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.newBuilder(positionEstimates_).mergeFrom(value).buildPartial();
} else {
positionEstimates_ = value;
}
onChanged();
} else {
positionEstimatesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearPositionEstimates() {
if (positionEstimatesBuilder_ == null) {
positionEstimates_ = null;
onChanged();
} else {
positionEstimates_ = null;
positionEstimatesBuilder_ = null;
}
return this;
}
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.Builder getPositionEstimatesBuilder() {
onChanged();
return getPositionEstimatesFieldBuilder().getBuilder();
}
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimatesOrBuilder getPositionEstimatesOrBuilder() {
if (positionEstimatesBuilder_ != null) {
return positionEstimatesBuilder_.getMessageOrBuilder();
} else {
return positionEstimates_ == null ?
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.getDefaultInstance() : positionEstimates_;
}
}
/**
*
* Output only. Estimates for criterion bids at various positions.
*
*
* .google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates position_estimates = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates, com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.Builder, com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimatesOrBuilder>
getPositionEstimatesFieldBuilder() {
if (positionEstimatesBuilder_ == null) {
positionEstimatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates, com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimates.Builder, com.google.ads.googleads.v10.resources.AdGroupCriterion.PositionEstimatesOrBuilder>(
getPositionEstimates(),
getParentForChildren(),
isClean());
positionEstimates_ = null;
}
return positionEstimatesBuilder_;
}
private com.google.protobuf.LazyStringList finalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFinalUrlsIsMutable() {
if (!((bitField0_ & 0x00004000) != 0)) {
finalUrls_ = new com.google.protobuf.LazyStringArrayList(finalUrls_);
bitField0_ |= 0x00004000;
}
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @return A list containing the finalUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalUrlsList() {
return finalUrls_.getUnmodifiableView();
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @return The count of finalUrls.
*/
public int getFinalUrlsCount() {
return finalUrls_.size();
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @param index The index of the element to return.
* @return The finalUrls at the given index.
*/
public java.lang.String getFinalUrls(int index) {
return finalUrls_.get(index);
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @param index The index of the value to return.
* @return The bytes of the finalUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalUrlsBytes(int index) {
return finalUrls_.getByteString(index);
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @param index The index to set the value at.
* @param value The finalUrls to set.
* @return This builder for chaining.
*/
public Builder setFinalUrls(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFinalUrlsIsMutable();
finalUrls_.set(index, value);
onChanged();
return this;
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @param value The finalUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalUrls(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFinalUrlsIsMutable();
finalUrls_.add(value);
onChanged();
return this;
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @param values The finalUrls to add.
* @return This builder for chaining.
*/
public Builder addAllFinalUrls(
java.lang.Iterable values) {
ensureFinalUrlsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, finalUrls_);
onChanged();
return this;
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @return This builder for chaining.
*/
public Builder clearFinalUrls() {
finalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
* The list of possible final URLs after all cross-domain redirects for the
* ad.
*
*
* repeated string final_urls = 70;
* @param value The bytes of the finalUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalUrlsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureFinalUrlsIsMutable();
finalUrls_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFinalMobileUrlsIsMutable() {
if (!((bitField0_ & 0x00008000) != 0)) {
finalMobileUrls_ = new com.google.protobuf.LazyStringArrayList(finalMobileUrls_);
bitField0_ |= 0x00008000;
}
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @return A list containing the finalMobileUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalMobileUrlsList() {
return finalMobileUrls_.getUnmodifiableView();
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @return The count of finalMobileUrls.
*/
public int getFinalMobileUrlsCount() {
return finalMobileUrls_.size();
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @param index The index of the element to return.
* @return The finalMobileUrls at the given index.
*/
public java.lang.String getFinalMobileUrls(int index) {
return finalMobileUrls_.get(index);
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @param index The index of the value to return.
* @return The bytes of the finalMobileUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalMobileUrlsBytes(int index) {
return finalMobileUrls_.getByteString(index);
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @param index The index to set the value at.
* @param value The finalMobileUrls to set.
* @return This builder for chaining.
*/
public Builder setFinalMobileUrls(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.set(index, value);
onChanged();
return this;
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @param value The finalMobileUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalMobileUrls(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.add(value);
onChanged();
return this;
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @param values The finalMobileUrls to add.
* @return This builder for chaining.
*/
public Builder addAllFinalMobileUrls(
java.lang.Iterable values) {
ensureFinalMobileUrlsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, finalMobileUrls_);
onChanged();
return this;
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @return This builder for chaining.
*/
public Builder clearFinalMobileUrls() {
finalMobileUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
*
* The list of possible final mobile URLs after all cross-domain redirects.
*
*
* repeated string final_mobile_urls = 71;
* @param value The bytes of the finalMobileUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalMobileUrlsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.add(value);
onChanged();
return this;
}
private java.lang.Object finalUrlSuffix_ = "";
/**
*
* URL template for appending params to final URL.
*
*
* optional string final_url_suffix = 72;
* @return Whether the finalUrlSuffix field is set.
*/
public boolean hasFinalUrlSuffix() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* URL template for appending params to final URL.
*
*
* optional string final_url_suffix = 72;
* @return The finalUrlSuffix.
*/
public java.lang.String getFinalUrlSuffix() {
java.lang.Object ref = finalUrlSuffix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
finalUrlSuffix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL template for appending params to final URL.
*
*
* optional string final_url_suffix = 72;
* @return The bytes for finalUrlSuffix.
*/
public com.google.protobuf.ByteString
getFinalUrlSuffixBytes() {
java.lang.Object ref = finalUrlSuffix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
finalUrlSuffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL template for appending params to final URL.
*
*
* optional string final_url_suffix = 72;
* @param value The finalUrlSuffix to set.
* @return This builder for chaining.
*/
public Builder setFinalUrlSuffix(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00010000;
finalUrlSuffix_ = value;
onChanged();
return this;
}
/**
*
* URL template for appending params to final URL.
*
*
* optional string final_url_suffix = 72;
* @return This builder for chaining.
*/
public Builder clearFinalUrlSuffix() {
bitField0_ = (bitField0_ & ~0x00010000);
finalUrlSuffix_ = getDefaultInstance().getFinalUrlSuffix();
onChanged();
return this;
}
/**
*
* URL template for appending params to final URL.
*
*
* optional string final_url_suffix = 72;
* @param value The bytes for finalUrlSuffix to set.
* @return This builder for chaining.
*/
public Builder setFinalUrlSuffixBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00010000;
finalUrlSuffix_ = value;
onChanged();
return this;
}
private java.lang.Object trackingUrlTemplate_ = "";
/**
*
* The URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 73;
* @return Whether the trackingUrlTemplate field is set.
*/
public boolean hasTrackingUrlTemplate() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* The URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 73;
* @return The trackingUrlTemplate.
*/
public java.lang.String getTrackingUrlTemplate() {
java.lang.Object ref = trackingUrlTemplate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
trackingUrlTemplate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 73;
* @return The bytes for trackingUrlTemplate.
*/
public com.google.protobuf.ByteString
getTrackingUrlTemplateBytes() {
java.lang.Object ref = trackingUrlTemplate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrlTemplate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 73;
* @param value The trackingUrlTemplate to set.
* @return This builder for chaining.
*/
public Builder setTrackingUrlTemplate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00020000;
trackingUrlTemplate_ = value;
onChanged();
return this;
}
/**
*
* The URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 73;
* @return This builder for chaining.
*/
public Builder clearTrackingUrlTemplate() {
bitField0_ = (bitField0_ & ~0x00020000);
trackingUrlTemplate_ = getDefaultInstance().getTrackingUrlTemplate();
onChanged();
return this;
}
/**
*
* The URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 73;
* @param value The bytes for trackingUrlTemplate to set.
* @return This builder for chaining.
*/
public Builder setTrackingUrlTemplateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00020000;
trackingUrlTemplate_ = value;
onChanged();
return this;
}
private java.util.List urlCustomParameters_ =
java.util.Collections.emptyList();
private void ensureUrlCustomParametersIsMutable() {
if (!((bitField0_ & 0x00040000) != 0)) {
urlCustomParameters_ = new java.util.ArrayList(urlCustomParameters_);
bitField0_ |= 0x00040000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomParameter, com.google.ads.googleads.v10.common.CustomParameter.Builder, com.google.ads.googleads.v10.common.CustomParameterOrBuilder> urlCustomParametersBuilder_;
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public java.util.List getUrlCustomParametersList() {
if (urlCustomParametersBuilder_ == null) {
return java.util.Collections.unmodifiableList(urlCustomParameters_);
} else {
return urlCustomParametersBuilder_.getMessageList();
}
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public int getUrlCustomParametersCount() {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.size();
} else {
return urlCustomParametersBuilder_.getCount();
}
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public com.google.ads.googleads.v10.common.CustomParameter getUrlCustomParameters(int index) {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.get(index);
} else {
return urlCustomParametersBuilder_.getMessage(index);
}
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public Builder setUrlCustomParameters(
int index, com.google.ads.googleads.v10.common.CustomParameter value) {
if (urlCustomParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.set(index, value);
onChanged();
} else {
urlCustomParametersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public Builder setUrlCustomParameters(
int index, com.google.ads.googleads.v10.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.set(index, builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public Builder addUrlCustomParameters(com.google.ads.googleads.v10.common.CustomParameter value) {
if (urlCustomParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(value);
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(value);
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public Builder addUrlCustomParameters(
int index, com.google.ads.googleads.v10.common.CustomParameter value) {
if (urlCustomParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(index, value);
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public Builder addUrlCustomParameters(
com.google.ads.googleads.v10.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public Builder addUrlCustomParameters(
int index, com.google.ads.googleads.v10.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(index, builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public Builder addAllUrlCustomParameters(
java.lang.Iterable extends com.google.ads.googleads.v10.common.CustomParameter> values) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, urlCustomParameters_);
onChanged();
} else {
urlCustomParametersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public Builder clearUrlCustomParameters() {
if (urlCustomParametersBuilder_ == null) {
urlCustomParameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
} else {
urlCustomParametersBuilder_.clear();
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public Builder removeUrlCustomParameters(int index) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.remove(index);
onChanged();
} else {
urlCustomParametersBuilder_.remove(index);
}
return this;
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public com.google.ads.googleads.v10.common.CustomParameter.Builder getUrlCustomParametersBuilder(
int index) {
return getUrlCustomParametersFieldBuilder().getBuilder(index);
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public com.google.ads.googleads.v10.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder(
int index) {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.get(index); } else {
return urlCustomParametersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public java.util.List extends com.google.ads.googleads.v10.common.CustomParameterOrBuilder>
getUrlCustomParametersOrBuilderList() {
if (urlCustomParametersBuilder_ != null) {
return urlCustomParametersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(urlCustomParameters_);
}
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public com.google.ads.googleads.v10.common.CustomParameter.Builder addUrlCustomParametersBuilder() {
return getUrlCustomParametersFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.CustomParameter.getDefaultInstance());
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public com.google.ads.googleads.v10.common.CustomParameter.Builder addUrlCustomParametersBuilder(
int index) {
return getUrlCustomParametersFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.CustomParameter.getDefaultInstance());
}
/**
*
* The list of mappings used to substitute custom parameter tags in a
* `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
*
*
* repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 14;
*/
public java.util.List
getUrlCustomParametersBuilderList() {
return getUrlCustomParametersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomParameter, com.google.ads.googleads.v10.common.CustomParameter.Builder, com.google.ads.googleads.v10.common.CustomParameterOrBuilder>
getUrlCustomParametersFieldBuilder() {
if (urlCustomParametersBuilder_ == null) {
urlCustomParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomParameter, com.google.ads.googleads.v10.common.CustomParameter.Builder, com.google.ads.googleads.v10.common.CustomParameterOrBuilder>(
urlCustomParameters_,
((bitField0_ & 0x00040000) != 0),
getParentForChildren(),
isClean());
urlCustomParameters_ = null;
}
return urlCustomParametersBuilder_;
}
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 = 27 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the keyword field is set.
*/
@java.lang.Override
public boolean hasKeyword() {
return criterionCase_ == 27;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 27 [(.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_ == 27) {
return (com.google.ads.googleads.v10.common.KeywordInfo) criterion_;
}
return com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance();
} else {
if (criterionCase_ == 27) {
return keywordBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 27 [(.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_ = 27;
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 27 [(.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_ = 27;
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeKeyword(com.google.ads.googleads.v10.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (criterionCase_ == 27 &&
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_ == 27) {
keywordBuilder_.mergeFrom(value);
} else {
keywordBuilder_.setMessage(value);
}
}
criterionCase_ = 27;
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearKeyword() {
if (keywordBuilder_ == null) {
if (criterionCase_ == 27) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 27) {
criterionCase_ = 0;
criterion_ = null;
}
keywordBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v10.common.KeywordInfo keyword = 27 [(.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 = 27 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getKeywordOrBuilder() {
if ((criterionCase_ == 27) && (keywordBuilder_ != null)) {
return keywordBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 27) {
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 = 27 [(.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_ == 27)) {
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_ = 27;
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 = 28 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the placement field is set.
*/
@java.lang.Override
public boolean hasPlacement() {
return criterionCase_ == 28;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 28 [(.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_ == 28) {
return (com.google.ads.googleads.v10.common.PlacementInfo) criterion_;
}
return com.google.ads.googleads.v10.common.PlacementInfo.getDefaultInstance();
} else {
if (criterionCase_ == 28) {
return placementBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.PlacementInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 28 [(.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_ = 28;
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 28 [(.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_ = 28;
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergePlacement(com.google.ads.googleads.v10.common.PlacementInfo value) {
if (placementBuilder_ == null) {
if (criterionCase_ == 28 &&
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_ == 28) {
placementBuilder_.mergeFrom(value);
} else {
placementBuilder_.setMessage(value);
}
}
criterionCase_ = 28;
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearPlacement() {
if (placementBuilder_ == null) {
if (criterionCase_ == 28) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 28) {
criterionCase_ = 0;
criterion_ = null;
}
placementBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v10.common.PlacementInfo placement = 28 [(.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 = 28 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PlacementInfoOrBuilder getPlacementOrBuilder() {
if ((criterionCase_ == 28) && (placementBuilder_ != null)) {
return placementBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 28) {
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 = 28 [(.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_ == 28)) {
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_ = 28;
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 = 29 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileAppCategory field is set.
*/
@java.lang.Override
public boolean hasMobileAppCategory() {
return criterionCase_ == 29;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 29 [(.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_ == 29) {
return (com.google.ads.googleads.v10.common.MobileAppCategoryInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileAppCategoryInfo.getDefaultInstance();
} else {
if (criterionCase_ == 29) {
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 = 29 [(.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_ = 29;
return this;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 29 [(.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_ = 29;
return this;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeMobileAppCategory(com.google.ads.googleads.v10.common.MobileAppCategoryInfo value) {
if (mobileAppCategoryBuilder_ == null) {
if (criterionCase_ == 29 &&
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_ == 29) {
mobileAppCategoryBuilder_.mergeFrom(value);
} else {
mobileAppCategoryBuilder_.setMessage(value);
}
}
criterionCase_ = 29;
return this;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearMobileAppCategory() {
if (mobileAppCategoryBuilder_ == null) {
if (criterionCase_ == 29) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 29) {
criterionCase_ = 0;
criterion_ = null;
}
mobileAppCategoryBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Mobile app category.
*
*
* .google.ads.googleads.v10.common.MobileAppCategoryInfo mobile_app_category = 29 [(.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 = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() {
if ((criterionCase_ == 29) && (mobileAppCategoryBuilder_ != null)) {
return mobileAppCategoryBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 29) {
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 = 29 [(.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_ == 29)) {
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_ = 29;
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 = 30 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileApplication field is set.
*/
@java.lang.Override
public boolean hasMobileApplication() {
return criterionCase_ == 30;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 30 [(.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_ == 30) {
return (com.google.ads.googleads.v10.common.MobileApplicationInfo) criterion_;
}
return com.google.ads.googleads.v10.common.MobileApplicationInfo.getDefaultInstance();
} else {
if (criterionCase_ == 30) {
return mobileApplicationBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.MobileApplicationInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 30 [(.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_ = 30;
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 30 [(.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_ = 30;
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeMobileApplication(com.google.ads.googleads.v10.common.MobileApplicationInfo value) {
if (mobileApplicationBuilder_ == null) {
if (criterionCase_ == 30 &&
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_ == 30) {
mobileApplicationBuilder_.mergeFrom(value);
} else {
mobileApplicationBuilder_.setMessage(value);
}
}
criterionCase_ = 30;
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearMobileApplication() {
if (mobileApplicationBuilder_ == null) {
if (criterionCase_ == 30) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 30) {
criterionCase_ = 0;
criterion_ = null;
}
mobileApplicationBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v10.common.MobileApplicationInfo mobile_application = 30 [(.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 = 30 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.MobileApplicationInfoOrBuilder getMobileApplicationOrBuilder() {
if ((criterionCase_ == 30) && (mobileApplicationBuilder_ != null)) {
return mobileApplicationBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 30) {
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 = 30 [(.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_ == 30)) {
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_ = 30;
onChanged();;
return mobileApplicationBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ListingGroupInfo, com.google.ads.googleads.v10.common.ListingGroupInfo.Builder, com.google.ads.googleads.v10.common.ListingGroupInfoOrBuilder> listingGroupBuilder_;
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the listingGroup field is set.
*/
@java.lang.Override
public boolean hasListingGroup() {
return criterionCase_ == 32;
}
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
* @return The listingGroup.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ListingGroupInfo getListingGroup() {
if (listingGroupBuilder_ == null) {
if (criterionCase_ == 32) {
return (com.google.ads.googleads.v10.common.ListingGroupInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ListingGroupInfo.getDefaultInstance();
} else {
if (criterionCase_ == 32) {
return listingGroupBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.ListingGroupInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setListingGroup(com.google.ads.googleads.v10.common.ListingGroupInfo value) {
if (listingGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
listingGroupBuilder_.setMessage(value);
}
criterionCase_ = 32;
return this;
}
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setListingGroup(
com.google.ads.googleads.v10.common.ListingGroupInfo.Builder builderForValue) {
if (listingGroupBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
listingGroupBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 32;
return this;
}
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeListingGroup(com.google.ads.googleads.v10.common.ListingGroupInfo value) {
if (listingGroupBuilder_ == null) {
if (criterionCase_ == 32 &&
criterion_ != com.google.ads.googleads.v10.common.ListingGroupInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.ListingGroupInfo.newBuilder((com.google.ads.googleads.v10.common.ListingGroupInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 32) {
listingGroupBuilder_.mergeFrom(value);
} else {
listingGroupBuilder_.setMessage(value);
}
}
criterionCase_ = 32;
return this;
}
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearListingGroup() {
if (listingGroupBuilder_ == null) {
if (criterionCase_ == 32) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 32) {
criterionCase_ = 0;
criterion_ = null;
}
listingGroupBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.ListingGroupInfo.Builder getListingGroupBuilder() {
return getListingGroupFieldBuilder().getBuilder();
}
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ListingGroupInfoOrBuilder getListingGroupOrBuilder() {
if ((criterionCase_ == 32) && (listingGroupBuilder_ != null)) {
return listingGroupBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 32) {
return (com.google.ads.googleads.v10.common.ListingGroupInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ListingGroupInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Listing group.
*
*
* .google.ads.googleads.v10.common.ListingGroupInfo listing_group = 32 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ListingGroupInfo, com.google.ads.googleads.v10.common.ListingGroupInfo.Builder, com.google.ads.googleads.v10.common.ListingGroupInfoOrBuilder>
getListingGroupFieldBuilder() {
if (listingGroupBuilder_ == null) {
if (!(criterionCase_ == 32)) {
criterion_ = com.google.ads.googleads.v10.common.ListingGroupInfo.getDefaultInstance();
}
listingGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ListingGroupInfo, com.google.ads.googleads.v10.common.ListingGroupInfo.Builder, com.google.ads.googleads.v10.common.ListingGroupInfoOrBuilder>(
(com.google.ads.googleads.v10.common.ListingGroupInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 32;
onChanged();;
return listingGroupBuilder_;
}
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 = 36 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the ageRange field is set.
*/
@java.lang.Override
public boolean hasAgeRange() {
return criterionCase_ == 36;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 36 [(.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_ == 36) {
return (com.google.ads.googleads.v10.common.AgeRangeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AgeRangeInfo.getDefaultInstance();
} else {
if (criterionCase_ == 36) {
return ageRangeBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.AgeRangeInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 36 [(.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_ = 36;
return this;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 36 [(.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_ = 36;
return this;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeAgeRange(com.google.ads.googleads.v10.common.AgeRangeInfo value) {
if (ageRangeBuilder_ == null) {
if (criterionCase_ == 36 &&
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_ == 36) {
ageRangeBuilder_.mergeFrom(value);
} else {
ageRangeBuilder_.setMessage(value);
}
}
criterionCase_ = 36;
return this;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearAgeRange() {
if (ageRangeBuilder_ == null) {
if (criterionCase_ == 36) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 36) {
criterionCase_ = 0;
criterion_ = null;
}
ageRangeBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Age range.
*
*
* .google.ads.googleads.v10.common.AgeRangeInfo age_range = 36 [(.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 = 36 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AgeRangeInfoOrBuilder getAgeRangeOrBuilder() {
if ((criterionCase_ == 36) && (ageRangeBuilder_ != null)) {
return ageRangeBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 36) {
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 = 36 [(.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_ == 36)) {
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_ = 36;
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 = 37 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the gender field is set.
*/
@java.lang.Override
public boolean hasGender() {
return criterionCase_ == 37;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 37 [(.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_ == 37) {
return (com.google.ads.googleads.v10.common.GenderInfo) criterion_;
}
return com.google.ads.googleads.v10.common.GenderInfo.getDefaultInstance();
} else {
if (criterionCase_ == 37) {
return genderBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.GenderInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 37 [(.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_ = 37;
return this;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 37 [(.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_ = 37;
return this;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 37 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeGender(com.google.ads.googleads.v10.common.GenderInfo value) {
if (genderBuilder_ == null) {
if (criterionCase_ == 37 &&
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_ == 37) {
genderBuilder_.mergeFrom(value);
} else {
genderBuilder_.setMessage(value);
}
}
criterionCase_ = 37;
return this;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 37 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearGender() {
if (genderBuilder_ == null) {
if (criterionCase_ == 37) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 37) {
criterionCase_ = 0;
criterion_ = null;
}
genderBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Gender.
*
*
* .google.ads.googleads.v10.common.GenderInfo gender = 37 [(.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 = 37 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.GenderInfoOrBuilder getGenderOrBuilder() {
if ((criterionCase_ == 37) && (genderBuilder_ != null)) {
return genderBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 37) {
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 = 37 [(.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_ == 37)) {
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_ = 37;
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 = 38 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the incomeRange field is set.
*/
@java.lang.Override
public boolean hasIncomeRange() {
return criterionCase_ == 38;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 38 [(.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_ == 38) {
return (com.google.ads.googleads.v10.common.IncomeRangeInfo) criterion_;
}
return com.google.ads.googleads.v10.common.IncomeRangeInfo.getDefaultInstance();
} else {
if (criterionCase_ == 38) {
return incomeRangeBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.IncomeRangeInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 38 [(.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_ = 38;
return this;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 38 [(.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_ = 38;
return this;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 38 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeIncomeRange(com.google.ads.googleads.v10.common.IncomeRangeInfo value) {
if (incomeRangeBuilder_ == null) {
if (criterionCase_ == 38 &&
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_ == 38) {
incomeRangeBuilder_.mergeFrom(value);
} else {
incomeRangeBuilder_.setMessage(value);
}
}
criterionCase_ = 38;
return this;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 38 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearIncomeRange() {
if (incomeRangeBuilder_ == null) {
if (criterionCase_ == 38) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 38) {
criterionCase_ = 0;
criterion_ = null;
}
incomeRangeBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Income range.
*
*
* .google.ads.googleads.v10.common.IncomeRangeInfo income_range = 38 [(.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 = 38 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.IncomeRangeInfoOrBuilder getIncomeRangeOrBuilder() {
if ((criterionCase_ == 38) && (incomeRangeBuilder_ != null)) {
return incomeRangeBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 38) {
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 = 38 [(.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_ == 38)) {
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_ = 38;
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 = 39 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the parentalStatus field is set.
*/
@java.lang.Override
public boolean hasParentalStatus() {
return criterionCase_ == 39;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 39 [(.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_ == 39) {
return (com.google.ads.googleads.v10.common.ParentalStatusInfo) criterion_;
}
return com.google.ads.googleads.v10.common.ParentalStatusInfo.getDefaultInstance();
} else {
if (criterionCase_ == 39) {
return parentalStatusBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.ParentalStatusInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 39 [(.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_ = 39;
return this;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 39 [(.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_ = 39;
return this;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 39 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeParentalStatus(com.google.ads.googleads.v10.common.ParentalStatusInfo value) {
if (parentalStatusBuilder_ == null) {
if (criterionCase_ == 39 &&
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_ == 39) {
parentalStatusBuilder_.mergeFrom(value);
} else {
parentalStatusBuilder_.setMessage(value);
}
}
criterionCase_ = 39;
return this;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 39 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearParentalStatus() {
if (parentalStatusBuilder_ == null) {
if (criterionCase_ == 39) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 39) {
criterionCase_ = 0;
criterion_ = null;
}
parentalStatusBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Parental status.
*
*
* .google.ads.googleads.v10.common.ParentalStatusInfo parental_status = 39 [(.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 = 39 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ParentalStatusInfoOrBuilder getParentalStatusOrBuilder() {
if ((criterionCase_ == 39) && (parentalStatusBuilder_ != null)) {
return parentalStatusBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 39) {
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 = 39 [(.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_ == 39)) {
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_ = 39;
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 = 42 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the userList field is set.
*/
@java.lang.Override
public boolean hasUserList() {
return criterionCase_ == 42;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 42 [(.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_ == 42) {
return (com.google.ads.googleads.v10.common.UserListInfo) criterion_;
}
return com.google.ads.googleads.v10.common.UserListInfo.getDefaultInstance();
} else {
if (criterionCase_ == 42) {
return userListBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.UserListInfo.getDefaultInstance();
}
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 42 [(.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_ = 42;
return this;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 42 [(.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_ = 42;
return this;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeUserList(com.google.ads.googleads.v10.common.UserListInfo value) {
if (userListBuilder_ == null) {
if (criterionCase_ == 42 &&
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_ == 42) {
userListBuilder_.mergeFrom(value);
} else {
userListBuilder_.setMessage(value);
}
}
criterionCase_ = 42;
return this;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearUserList() {
if (userListBuilder_ == null) {
if (criterionCase_ == 42) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 42) {
criterionCase_ = 0;
criterion_ = null;
}
userListBuilder_.clear();
}
return this;
}
/**
*
* Immutable. User List.
*
*
* .google.ads.googleads.v10.common.UserListInfo user_list = 42 [(.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 = 42 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListInfoOrBuilder getUserListOrBuilder() {
if ((criterionCase_ == 42) && (userListBuilder_ != null)) {
return userListBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 42) {
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 = 42 [(.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_ == 42)) {
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_ = 42;
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 = 40 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeVideo field is set.
*/
@java.lang.Override
public boolean hasYoutubeVideo() {
return criterionCase_ == 40;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 40 [(.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_ == 40) {
return (com.google.ads.googleads.v10.common.YouTubeVideoInfo) criterion_;
}
return com.google.ads.googleads.v10.common.YouTubeVideoInfo.getDefaultInstance();
} else {
if (criterionCase_ == 40) {
return youtubeVideoBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.YouTubeVideoInfo.getDefaultInstance();
}
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 40 [(.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_ = 40;
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 40 [(.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_ = 40;
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 40 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeYoutubeVideo(com.google.ads.googleads.v10.common.YouTubeVideoInfo value) {
if (youtubeVideoBuilder_ == null) {
if (criterionCase_ == 40 &&
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_ == 40) {
youtubeVideoBuilder_.mergeFrom(value);
} else {
youtubeVideoBuilder_.setMessage(value);
}
}
criterionCase_ = 40;
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 40 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearYoutubeVideo() {
if (youtubeVideoBuilder_ == null) {
if (criterionCase_ == 40) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 40) {
criterionCase_ = 0;
criterion_ = null;
}
youtubeVideoBuilder_.clear();
}
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v10.common.YouTubeVideoInfo youtube_video = 40 [(.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 = 40 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeVideoInfoOrBuilder getYoutubeVideoOrBuilder() {
if ((criterionCase_ == 40) && (youtubeVideoBuilder_ != null)) {
return youtubeVideoBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 40) {
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 = 40 [(.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_ == 40)) {
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_ = 40;
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 = 41 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeChannel field is set.
*/
@java.lang.Override
public boolean hasYoutubeChannel() {
return criterionCase_ == 41;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 41 [(.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_ == 41) {
return (com.google.ads.googleads.v10.common.YouTubeChannelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.YouTubeChannelInfo.getDefaultInstance();
} else {
if (criterionCase_ == 41) {
return youtubeChannelBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.YouTubeChannelInfo.getDefaultInstance();
}
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 41 [(.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_ = 41;
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 41 [(.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_ = 41;
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeYoutubeChannel(com.google.ads.googleads.v10.common.YouTubeChannelInfo value) {
if (youtubeChannelBuilder_ == null) {
if (criterionCase_ == 41 &&
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_ == 41) {
youtubeChannelBuilder_.mergeFrom(value);
} else {
youtubeChannelBuilder_.setMessage(value);
}
}
criterionCase_ = 41;
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearYoutubeChannel() {
if (youtubeChannelBuilder_ == null) {
if (criterionCase_ == 41) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 41) {
criterionCase_ = 0;
criterion_ = null;
}
youtubeChannelBuilder_.clear();
}
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v10.common.YouTubeChannelInfo youtube_channel = 41 [(.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 = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() {
if ((criterionCase_ == 41) && (youtubeChannelBuilder_ != null)) {
return youtubeChannelBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 41) {
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 = 41 [(.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_ == 41)) {
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_ = 41;
onChanged();;
return youtubeChannelBuilder_;
}
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 = 43 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the topic field is set.
*/
@java.lang.Override
public boolean hasTopic() {
return criterionCase_ == 43;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 43 [(.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_ == 43) {
return (com.google.ads.googleads.v10.common.TopicInfo) criterion_;
}
return com.google.ads.googleads.v10.common.TopicInfo.getDefaultInstance();
} else {
if (criterionCase_ == 43) {
return topicBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.TopicInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 43 [(.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_ = 43;
return this;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 43 [(.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_ = 43;
return this;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 43 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeTopic(com.google.ads.googleads.v10.common.TopicInfo value) {
if (topicBuilder_ == null) {
if (criterionCase_ == 43 &&
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_ == 43) {
topicBuilder_.mergeFrom(value);
} else {
topicBuilder_.setMessage(value);
}
}
criterionCase_ = 43;
return this;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 43 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearTopic() {
if (topicBuilder_ == null) {
if (criterionCase_ == 43) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 43) {
criterionCase_ = 0;
criterion_ = null;
}
topicBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Topic.
*
*
* .google.ads.googleads.v10.common.TopicInfo topic = 43 [(.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 = 43 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.TopicInfoOrBuilder getTopicOrBuilder() {
if ((criterionCase_ == 43) && (topicBuilder_ != null)) {
return topicBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 43) {
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 = 43 [(.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_ == 43)) {
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_ = 43;
onChanged();;
return topicBuilder_;
}
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 = 45 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the userInterest field is set.
*/
@java.lang.Override
public boolean hasUserInterest() {
return criterionCase_ == 45;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 45 [(.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_ == 45) {
return (com.google.ads.googleads.v10.common.UserInterestInfo) criterion_;
}
return com.google.ads.googleads.v10.common.UserInterestInfo.getDefaultInstance();
} else {
if (criterionCase_ == 45) {
return userInterestBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.UserInterestInfo.getDefaultInstance();
}
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 45 [(.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_ = 45;
return this;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 45 [(.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_ = 45;
return this;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeUserInterest(com.google.ads.googleads.v10.common.UserInterestInfo value) {
if (userInterestBuilder_ == null) {
if (criterionCase_ == 45 &&
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_ == 45) {
userInterestBuilder_.mergeFrom(value);
} else {
userInterestBuilder_.setMessage(value);
}
}
criterionCase_ = 45;
return this;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearUserInterest() {
if (userInterestBuilder_ == null) {
if (criterionCase_ == 45) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 45) {
criterionCase_ = 0;
criterion_ = null;
}
userInterestBuilder_.clear();
}
return this;
}
/**
*
* Immutable. User Interest.
*
*
* .google.ads.googleads.v10.common.UserInterestInfo user_interest = 45 [(.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 = 45 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserInterestInfoOrBuilder getUserInterestOrBuilder() {
if ((criterionCase_ == 45) && (userInterestBuilder_ != null)) {
return userInterestBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 45) {
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 = 45 [(.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_ == 45)) {
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_ = 45;
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 = 46 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the webpage field is set.
*/
@java.lang.Override
public boolean hasWebpage() {
return criterionCase_ == 46;
}
/**
*
* Immutable. Webpage
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 46 [(.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_ == 46) {
return (com.google.ads.googleads.v10.common.WebpageInfo) criterion_;
}
return com.google.ads.googleads.v10.common.WebpageInfo.getDefaultInstance();
} else {
if (criterionCase_ == 46) {
return webpageBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.WebpageInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Webpage
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 46 [(.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_ = 46;
return this;
}
/**
*
* Immutable. Webpage
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 46 [(.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_ = 46;
return this;
}
/**
*
* Immutable. Webpage
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 46 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeWebpage(com.google.ads.googleads.v10.common.WebpageInfo value) {
if (webpageBuilder_ == null) {
if (criterionCase_ == 46 &&
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_ == 46) {
webpageBuilder_.mergeFrom(value);
} else {
webpageBuilder_.setMessage(value);
}
}
criterionCase_ = 46;
return this;
}
/**
*
* Immutable. Webpage
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 46 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearWebpage() {
if (webpageBuilder_ == null) {
if (criterionCase_ == 46) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 46) {
criterionCase_ = 0;
criterion_ = null;
}
webpageBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Webpage
*
*
* .google.ads.googleads.v10.common.WebpageInfo webpage = 46 [(.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 = 46 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.WebpageInfoOrBuilder getWebpageOrBuilder() {
if ((criterionCase_ == 46) && (webpageBuilder_ != null)) {
return webpageBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 46) {
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 = 46 [(.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_ == 46)) {
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_ = 46;
onChanged();;
return webpageBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AppPaymentModelInfo, com.google.ads.googleads.v10.common.AppPaymentModelInfo.Builder, com.google.ads.googleads.v10.common.AppPaymentModelInfoOrBuilder> appPaymentModelBuilder_;
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the appPaymentModel field is set.
*/
@java.lang.Override
public boolean hasAppPaymentModel() {
return criterionCase_ == 47;
}
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
* @return The appPaymentModel.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AppPaymentModelInfo getAppPaymentModel() {
if (appPaymentModelBuilder_ == null) {
if (criterionCase_ == 47) {
return (com.google.ads.googleads.v10.common.AppPaymentModelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AppPaymentModelInfo.getDefaultInstance();
} else {
if (criterionCase_ == 47) {
return appPaymentModelBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.AppPaymentModelInfo.getDefaultInstance();
}
}
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setAppPaymentModel(com.google.ads.googleads.v10.common.AppPaymentModelInfo value) {
if (appPaymentModelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
appPaymentModelBuilder_.setMessage(value);
}
criterionCase_ = 47;
return this;
}
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setAppPaymentModel(
com.google.ads.googleads.v10.common.AppPaymentModelInfo.Builder builderForValue) {
if (appPaymentModelBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
appPaymentModelBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 47;
return this;
}
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeAppPaymentModel(com.google.ads.googleads.v10.common.AppPaymentModelInfo value) {
if (appPaymentModelBuilder_ == null) {
if (criterionCase_ == 47 &&
criterion_ != com.google.ads.googleads.v10.common.AppPaymentModelInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.AppPaymentModelInfo.newBuilder((com.google.ads.googleads.v10.common.AppPaymentModelInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 47) {
appPaymentModelBuilder_.mergeFrom(value);
} else {
appPaymentModelBuilder_.setMessage(value);
}
}
criterionCase_ = 47;
return this;
}
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearAppPaymentModel() {
if (appPaymentModelBuilder_ == null) {
if (criterionCase_ == 47) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 47) {
criterionCase_ = 0;
criterion_ = null;
}
appPaymentModelBuilder_.clear();
}
return this;
}
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.AppPaymentModelInfo.Builder getAppPaymentModelBuilder() {
return getAppPaymentModelFieldBuilder().getBuilder();
}
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AppPaymentModelInfoOrBuilder getAppPaymentModelOrBuilder() {
if ((criterionCase_ == 47) && (appPaymentModelBuilder_ != null)) {
return appPaymentModelBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 47) {
return (com.google.ads.googleads.v10.common.AppPaymentModelInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AppPaymentModelInfo.getDefaultInstance();
}
}
/**
*
* Immutable. App Payment Model.
*
*
* .google.ads.googleads.v10.common.AppPaymentModelInfo app_payment_model = 47 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AppPaymentModelInfo, com.google.ads.googleads.v10.common.AppPaymentModelInfo.Builder, com.google.ads.googleads.v10.common.AppPaymentModelInfoOrBuilder>
getAppPaymentModelFieldBuilder() {
if (appPaymentModelBuilder_ == null) {
if (!(criterionCase_ == 47)) {
criterion_ = com.google.ads.googleads.v10.common.AppPaymentModelInfo.getDefaultInstance();
}
appPaymentModelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AppPaymentModelInfo, com.google.ads.googleads.v10.common.AppPaymentModelInfo.Builder, com.google.ads.googleads.v10.common.AppPaymentModelInfoOrBuilder>(
(com.google.ads.googleads.v10.common.AppPaymentModelInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 47;
onChanged();;
return appPaymentModelBuilder_;
}
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 = 48 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the customAffinity field is set.
*/
@java.lang.Override
public boolean hasCustomAffinity() {
return criterionCase_ == 48;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 48 [(.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_ == 48) {
return (com.google.ads.googleads.v10.common.CustomAffinityInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomAffinityInfo.getDefaultInstance();
} else {
if (criterionCase_ == 48) {
return customAffinityBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.CustomAffinityInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 48 [(.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_ = 48;
return this;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 48 [(.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_ = 48;
return this;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 48 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeCustomAffinity(com.google.ads.googleads.v10.common.CustomAffinityInfo value) {
if (customAffinityBuilder_ == null) {
if (criterionCase_ == 48 &&
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_ == 48) {
customAffinityBuilder_.mergeFrom(value);
} else {
customAffinityBuilder_.setMessage(value);
}
}
criterionCase_ = 48;
return this;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 48 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearCustomAffinity() {
if (customAffinityBuilder_ == null) {
if (criterionCase_ == 48) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 48) {
criterionCase_ = 0;
criterion_ = null;
}
customAffinityBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Custom Affinity.
*
*
* .google.ads.googleads.v10.common.CustomAffinityInfo custom_affinity = 48 [(.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 = 48 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAffinityInfoOrBuilder getCustomAffinityOrBuilder() {
if ((criterionCase_ == 48) && (customAffinityBuilder_ != null)) {
return customAffinityBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 48) {
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 = 48 [(.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_ == 48)) {
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_ = 48;
onChanged();;
return customAffinityBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomIntentInfo, com.google.ads.googleads.v10.common.CustomIntentInfo.Builder, com.google.ads.googleads.v10.common.CustomIntentInfoOrBuilder> customIntentBuilder_;
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the customIntent field is set.
*/
@java.lang.Override
public boolean hasCustomIntent() {
return criterionCase_ == 49;
}
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
* @return The customIntent.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomIntentInfo getCustomIntent() {
if (customIntentBuilder_ == null) {
if (criterionCase_ == 49) {
return (com.google.ads.googleads.v10.common.CustomIntentInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomIntentInfo.getDefaultInstance();
} else {
if (criterionCase_ == 49) {
return customIntentBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.CustomIntentInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCustomIntent(com.google.ads.googleads.v10.common.CustomIntentInfo value) {
if (customIntentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
customIntentBuilder_.setMessage(value);
}
criterionCase_ = 49;
return this;
}
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCustomIntent(
com.google.ads.googleads.v10.common.CustomIntentInfo.Builder builderForValue) {
if (customIntentBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
customIntentBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 49;
return this;
}
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeCustomIntent(com.google.ads.googleads.v10.common.CustomIntentInfo value) {
if (customIntentBuilder_ == null) {
if (criterionCase_ == 49 &&
criterion_ != com.google.ads.googleads.v10.common.CustomIntentInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.CustomIntentInfo.newBuilder((com.google.ads.googleads.v10.common.CustomIntentInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 49) {
customIntentBuilder_.mergeFrom(value);
} else {
customIntentBuilder_.setMessage(value);
}
}
criterionCase_ = 49;
return this;
}
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearCustomIntent() {
if (customIntentBuilder_ == null) {
if (criterionCase_ == 49) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 49) {
criterionCase_ = 0;
criterion_ = null;
}
customIntentBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.CustomIntentInfo.Builder getCustomIntentBuilder() {
return getCustomIntentFieldBuilder().getBuilder();
}
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomIntentInfoOrBuilder getCustomIntentOrBuilder() {
if ((criterionCase_ == 49) && (customIntentBuilder_ != null)) {
return customIntentBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 49) {
return (com.google.ads.googleads.v10.common.CustomIntentInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomIntentInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Custom Intent.
*
*
* .google.ads.googleads.v10.common.CustomIntentInfo custom_intent = 49 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomIntentInfo, com.google.ads.googleads.v10.common.CustomIntentInfo.Builder, com.google.ads.googleads.v10.common.CustomIntentInfoOrBuilder>
getCustomIntentFieldBuilder() {
if (customIntentBuilder_ == null) {
if (!(criterionCase_ == 49)) {
criterion_ = com.google.ads.googleads.v10.common.CustomIntentInfo.getDefaultInstance();
}
customIntentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.CustomIntentInfo, com.google.ads.googleads.v10.common.CustomIntentInfo.Builder, com.google.ads.googleads.v10.common.CustomIntentInfoOrBuilder>(
(com.google.ads.googleads.v10.common.CustomIntentInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 49;
onChanged();;
return customIntentBuilder_;
}
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 = 74 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the customAudience field is set.
*/
@java.lang.Override
public boolean hasCustomAudience() {
return criterionCase_ == 74;
}
/**
*
* Immutable. Custom Audience.
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 74 [(.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_ == 74) {
return (com.google.ads.googleads.v10.common.CustomAudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CustomAudienceInfo.getDefaultInstance();
} else {
if (criterionCase_ == 74) {
return customAudienceBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.CustomAudienceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Custom Audience.
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 74 [(.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_ = 74;
return this;
}
/**
*
* Immutable. Custom Audience.
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 74 [(.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_ = 74;
return this;
}
/**
*
* Immutable. Custom Audience.
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 74 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeCustomAudience(com.google.ads.googleads.v10.common.CustomAudienceInfo value) {
if (customAudienceBuilder_ == null) {
if (criterionCase_ == 74 &&
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_ == 74) {
customAudienceBuilder_.mergeFrom(value);
} else {
customAudienceBuilder_.setMessage(value);
}
}
criterionCase_ = 74;
return this;
}
/**
*
* Immutable. Custom Audience.
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 74 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearCustomAudience() {
if (customAudienceBuilder_ == null) {
if (criterionCase_ == 74) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 74) {
criterionCase_ = 0;
criterion_ = null;
}
customAudienceBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Custom Audience.
*
*
* .google.ads.googleads.v10.common.CustomAudienceInfo custom_audience = 74 [(.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 = 74 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CustomAudienceInfoOrBuilder getCustomAudienceOrBuilder() {
if ((criterionCase_ == 74) && (customAudienceBuilder_ != null)) {
return customAudienceBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 74) {
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 = 74 [(.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_ == 74)) {
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_ = 74;
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 = 75 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the combinedAudience field is set.
*/
@java.lang.Override
public boolean hasCombinedAudience() {
return criterionCase_ == 75;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 75 [(.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_ == 75) {
return (com.google.ads.googleads.v10.common.CombinedAudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.CombinedAudienceInfo.getDefaultInstance();
} else {
if (criterionCase_ == 75) {
return combinedAudienceBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.CombinedAudienceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 75 [(.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_ = 75;
return this;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 75 [(.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_ = 75;
return this;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 75 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeCombinedAudience(com.google.ads.googleads.v10.common.CombinedAudienceInfo value) {
if (combinedAudienceBuilder_ == null) {
if (criterionCase_ == 75 &&
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_ == 75) {
combinedAudienceBuilder_.mergeFrom(value);
} else {
combinedAudienceBuilder_.setMessage(value);
}
}
criterionCase_ = 75;
return this;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 75 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearCombinedAudience() {
if (combinedAudienceBuilder_ == null) {
if (criterionCase_ == 75) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 75) {
criterionCase_ = 0;
criterion_ = null;
}
combinedAudienceBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Combined Audience.
*
*
* .google.ads.googleads.v10.common.CombinedAudienceInfo combined_audience = 75 [(.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 = 75 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CombinedAudienceInfoOrBuilder getCombinedAudienceOrBuilder() {
if ((criterionCase_ == 75) && (combinedAudienceBuilder_ != null)) {
return combinedAudienceBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 75) {
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 = 75 [(.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_ == 75)) {
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_ = 75;
onChanged();;
return combinedAudienceBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AudienceInfo, com.google.ads.googleads.v10.common.AudienceInfo.Builder, com.google.ads.googleads.v10.common.AudienceInfoOrBuilder> audienceBuilder_;
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the audience field is set.
*/
@java.lang.Override
public boolean hasAudience() {
return criterionCase_ == 79;
}
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
* @return The audience.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AudienceInfo getAudience() {
if (audienceBuilder_ == null) {
if (criterionCase_ == 79) {
return (com.google.ads.googleads.v10.common.AudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AudienceInfo.getDefaultInstance();
} else {
if (criterionCase_ == 79) {
return audienceBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.AudienceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setAudience(com.google.ads.googleads.v10.common.AudienceInfo value) {
if (audienceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
audienceBuilder_.setMessage(value);
}
criterionCase_ = 79;
return this;
}
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setAudience(
com.google.ads.googleads.v10.common.AudienceInfo.Builder builderForValue) {
if (audienceBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
audienceBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 79;
return this;
}
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeAudience(com.google.ads.googleads.v10.common.AudienceInfo value) {
if (audienceBuilder_ == null) {
if (criterionCase_ == 79 &&
criterion_ != com.google.ads.googleads.v10.common.AudienceInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v10.common.AudienceInfo.newBuilder((com.google.ads.googleads.v10.common.AudienceInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 79) {
audienceBuilder_.mergeFrom(value);
} else {
audienceBuilder_.setMessage(value);
}
}
criterionCase_ = 79;
return this;
}
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearAudience() {
if (audienceBuilder_ == null) {
if (criterionCase_ == 79) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 79) {
criterionCase_ = 0;
criterion_ = null;
}
audienceBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.common.AudienceInfo.Builder getAudienceBuilder() {
return getAudienceFieldBuilder().getBuilder();
}
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AudienceInfoOrBuilder getAudienceOrBuilder() {
if ((criterionCase_ == 79) && (audienceBuilder_ != null)) {
return audienceBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 79) {
return (com.google.ads.googleads.v10.common.AudienceInfo) criterion_;
}
return com.google.ads.googleads.v10.common.AudienceInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Audience.
*
*
* .google.ads.googleads.v10.common.AudienceInfo audience = 79 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AudienceInfo, com.google.ads.googleads.v10.common.AudienceInfo.Builder, com.google.ads.googleads.v10.common.AudienceInfoOrBuilder>
getAudienceFieldBuilder() {
if (audienceBuilder_ == null) {
if (!(criterionCase_ == 79)) {
criterion_ = com.google.ads.googleads.v10.common.AudienceInfo.getDefaultInstance();
}
audienceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.AudienceInfo, com.google.ads.googleads.v10.common.AudienceInfo.Builder, com.google.ads.googleads.v10.common.AudienceInfoOrBuilder>(
(com.google.ads.googleads.v10.common.AudienceInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 79;
onChanged();;
return audienceBuilder_;
}
@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.AdGroupCriterion)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.AdGroupCriterion)
private static final com.google.ads.googleads.v10.resources.AdGroupCriterion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.AdGroupCriterion();
}
public static com.google.ads.googleads.v10.resources.AdGroupCriterion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AdGroupCriterion 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.AdGroupCriterion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy