com.google.ads.googleads.v17.resources.SharedCriterion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/resources/shared_criterion.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* A criterion belonging to a shared set.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.SharedCriterion}
*/
public final class SharedCriterion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.SharedCriterion)
SharedCriterionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SharedCriterion.newBuilder() to construct.
private SharedCriterion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SharedCriterion() {
resourceName_ = "";
sharedSet_ = "";
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SharedCriterion();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.SharedCriterionProto.internal_static_google_ads_googleads_v17_resources_SharedCriterion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.SharedCriterionProto.internal_static_google_ads_googleads_v17_resources_SharedCriterion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.SharedCriterion.class, com.google.ads.googleads.v17.resources.SharedCriterion.Builder.class);
}
private int bitField0_;
private int criterionCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object criterion_;
public enum CriterionCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
KEYWORD(3),
YOUTUBE_VIDEO(5),
YOUTUBE_CHANNEL(6),
PLACEMENT(7),
MOBILE_APP_CATEGORY(8),
MOBILE_APPLICATION(9),
BRAND(12),
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 3: return KEYWORD;
case 5: return YOUTUBE_VIDEO;
case 6: return YOUTUBE_CHANNEL;
case 7: return PLACEMENT;
case 8: return MOBILE_APP_CATEGORY;
case 9: return MOBILE_APPLICATION;
case 12: return BRAND;
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;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the shared criterion.
* Shared set resource names have the form:
*
* `customers/{customer_id}/sharedCriteria/{shared_set_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 shared criterion.
* Shared set resource names have the form:
*
* `customers/{customer_id}/sharedCriteria/{shared_set_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 SHARED_SET_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object sharedSet_ = "";
/**
*
* Immutable. The shared set to which the shared criterion belongs.
*
*
* optional string shared_set = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the sharedSet field is set.
*/
@java.lang.Override
public boolean hasSharedSet() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Immutable. The shared set to which the shared criterion belongs.
*
*
* optional string shared_set = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The sharedSet.
*/
@java.lang.Override
public java.lang.String getSharedSet() {
java.lang.Object ref = sharedSet_;
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();
sharedSet_ = s;
return s;
}
}
/**
*
* Immutable. The shared set to which the shared criterion belongs.
*
*
* optional string shared_set = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for sharedSet.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSharedSetBytes() {
java.lang.Object ref = sharedSet_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sharedSet_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CRITERION_ID_FIELD_NUMBER = 11;
private long criterionId_ = 0L;
/**
*
* Output only. The ID of the criterion.
*
* This field is ignored for mutates.
*
*
* optional int64 criterion_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the criterionId field is set.
*/
@java.lang.Override
public boolean hasCriterionId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The ID of the criterion.
*
* This field is ignored for mutates.
*
*
* optional int64 criterion_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The criterionId.
*/
@java.lang.Override
public long getCriterionId() {
return criterionId_;
}
public static final int TYPE_FIELD_NUMBER = 4;
private int type_ = 0;
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType type = 4 [(.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.v17.enums.CriterionTypeEnum.CriterionType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The type.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType getType() {
com.google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType result = com.google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType.forNumber(type_);
return result == null ? com.google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType.UNRECOGNIZED : result;
}
public static final int KEYWORD_FIELD_NUMBER = 3;
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the keyword field is set.
*/
@java.lang.Override
public boolean hasKeyword() {
return criterionCase_ == 3;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
* @return The keyword.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.KeywordInfo getKeyword() {
if (criterionCase_ == 3) {
return (com.google.ads.googleads.v17.common.KeywordInfo) criterion_;
}
return com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance();
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.KeywordInfoOrBuilder getKeywordOrBuilder() {
if (criterionCase_ == 3) {
return (com.google.ads.googleads.v17.common.KeywordInfo) criterion_;
}
return com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance();
}
public static final int YOUTUBE_VIDEO_FIELD_NUMBER = 5;
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeVideo field is set.
*/
@java.lang.Override
public boolean hasYoutubeVideo() {
return criterionCase_ == 5;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeVideo.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YouTubeVideoInfo getYoutubeVideo() {
if (criterionCase_ == 5) {
return (com.google.ads.googleads.v17.common.YouTubeVideoInfo) criterion_;
}
return com.google.ads.googleads.v17.common.YouTubeVideoInfo.getDefaultInstance();
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YouTubeVideoInfoOrBuilder getYoutubeVideoOrBuilder() {
if (criterionCase_ == 5) {
return (com.google.ads.googleads.v17.common.YouTubeVideoInfo) criterion_;
}
return com.google.ads.googleads.v17.common.YouTubeVideoInfo.getDefaultInstance();
}
public static final int YOUTUBE_CHANNEL_FIELD_NUMBER = 6;
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeChannel field is set.
*/
@java.lang.Override
public boolean hasYoutubeChannel() {
return criterionCase_ == 6;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeChannel.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YouTubeChannelInfo getYoutubeChannel() {
if (criterionCase_ == 6) {
return (com.google.ads.googleads.v17.common.YouTubeChannelInfo) criterion_;
}
return com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance();
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() {
if (criterionCase_ == 6) {
return (com.google.ads.googleads.v17.common.YouTubeChannelInfo) criterion_;
}
return com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance();
}
public static final int PLACEMENT_FIELD_NUMBER = 7;
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the placement field is set.
*/
@java.lang.Override
public boolean hasPlacement() {
return criterionCase_ == 7;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return The placement.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PlacementInfo getPlacement() {
if (criterionCase_ == 7) {
return (com.google.ads.googleads.v17.common.PlacementInfo) criterion_;
}
return com.google.ads.googleads.v17.common.PlacementInfo.getDefaultInstance();
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PlacementInfoOrBuilder getPlacementOrBuilder() {
if (criterionCase_ == 7) {
return (com.google.ads.googleads.v17.common.PlacementInfo) criterion_;
}
return com.google.ads.googleads.v17.common.PlacementInfo.getDefaultInstance();
}
public static final int MOBILE_APP_CATEGORY_FIELD_NUMBER = 8;
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileAppCategory field is set.
*/
@java.lang.Override
public boolean hasMobileAppCategory() {
return criterionCase_ == 8;
}
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileAppCategory.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileAppCategoryInfo getMobileAppCategory() {
if (criterionCase_ == 8) {
return (com.google.ads.googleads.v17.common.MobileAppCategoryInfo) criterion_;
}
return com.google.ads.googleads.v17.common.MobileAppCategoryInfo.getDefaultInstance();
}
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() {
if (criterionCase_ == 8) {
return (com.google.ads.googleads.v17.common.MobileAppCategoryInfo) criterion_;
}
return com.google.ads.googleads.v17.common.MobileAppCategoryInfo.getDefaultInstance();
}
public static final int MOBILE_APPLICATION_FIELD_NUMBER = 9;
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileApplication field is set.
*/
@java.lang.Override
public boolean hasMobileApplication() {
return criterionCase_ == 9;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileApplication.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileApplicationInfo getMobileApplication() {
if (criterionCase_ == 9) {
return (com.google.ads.googleads.v17.common.MobileApplicationInfo) criterion_;
}
return com.google.ads.googleads.v17.common.MobileApplicationInfo.getDefaultInstance();
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileApplicationInfoOrBuilder getMobileApplicationOrBuilder() {
if (criterionCase_ == 9) {
return (com.google.ads.googleads.v17.common.MobileApplicationInfo) criterion_;
}
return com.google.ads.googleads.v17.common.MobileApplicationInfo.getDefaultInstance();
}
public static final int BRAND_FIELD_NUMBER = 12;
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the brand field is set.
*/
@java.lang.Override
public boolean hasBrand() {
return criterionCase_ == 12;
}
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return The brand.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BrandInfo getBrand() {
if (criterionCase_ == 12) {
return (com.google.ads.googleads.v17.common.BrandInfo) criterion_;
}
return com.google.ads.googleads.v17.common.BrandInfo.getDefaultInstance();
}
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BrandInfoOrBuilder getBrandOrBuilder() {
if (criterionCase_ == 12) {
return (com.google.ads.googleads.v17.common.BrandInfo) criterion_;
}
return com.google.ads.googleads.v17.common.BrandInfo.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 (criterionCase_ == 3) {
output.writeMessage(3, (com.google.ads.googleads.v17.common.KeywordInfo) criterion_);
}
if (type_ != com.google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType.UNSPECIFIED.getNumber()) {
output.writeEnum(4, type_);
}
if (criterionCase_ == 5) {
output.writeMessage(5, (com.google.ads.googleads.v17.common.YouTubeVideoInfo) criterion_);
}
if (criterionCase_ == 6) {
output.writeMessage(6, (com.google.ads.googleads.v17.common.YouTubeChannelInfo) criterion_);
}
if (criterionCase_ == 7) {
output.writeMessage(7, (com.google.ads.googleads.v17.common.PlacementInfo) criterion_);
}
if (criterionCase_ == 8) {
output.writeMessage(8, (com.google.ads.googleads.v17.common.MobileAppCategoryInfo) criterion_);
}
if (criterionCase_ == 9) {
output.writeMessage(9, (com.google.ads.googleads.v17.common.MobileApplicationInfo) criterion_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, sharedSet_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(11, criterionId_);
}
if (criterionCase_ == 12) {
output.writeMessage(12, (com.google.ads.googleads.v17.common.BrandInfo) 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 (criterionCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.google.ads.googleads.v17.common.KeywordInfo) criterion_);
}
if (type_ != com.google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, type_);
}
if (criterionCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.google.ads.googleads.v17.common.YouTubeVideoInfo) criterion_);
}
if (criterionCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.google.ads.googleads.v17.common.YouTubeChannelInfo) criterion_);
}
if (criterionCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.google.ads.googleads.v17.common.PlacementInfo) criterion_);
}
if (criterionCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.google.ads.googleads.v17.common.MobileAppCategoryInfo) criterion_);
}
if (criterionCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (com.google.ads.googleads.v17.common.MobileApplicationInfo) criterion_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, sharedSet_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, criterionId_);
}
if (criterionCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (com.google.ads.googleads.v17.common.BrandInfo) 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.v17.resources.SharedCriterion)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.SharedCriterion other = (com.google.ads.googleads.v17.resources.SharedCriterion) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasSharedSet() != other.hasSharedSet()) return false;
if (hasSharedSet()) {
if (!getSharedSet()
.equals(other.getSharedSet())) return false;
}
if (hasCriterionId() != other.hasCriterionId()) return false;
if (hasCriterionId()) {
if (getCriterionId()
!= other.getCriterionId()) return false;
}
if (type_ != other.type_) return false;
if (!getCriterionCase().equals(other.getCriterionCase())) return false;
switch (criterionCase_) {
case 3:
if (!getKeyword()
.equals(other.getKeyword())) return false;
break;
case 5:
if (!getYoutubeVideo()
.equals(other.getYoutubeVideo())) return false;
break;
case 6:
if (!getYoutubeChannel()
.equals(other.getYoutubeChannel())) return false;
break;
case 7:
if (!getPlacement()
.equals(other.getPlacement())) return false;
break;
case 8:
if (!getMobileAppCategory()
.equals(other.getMobileAppCategory())) return false;
break;
case 9:
if (!getMobileApplication()
.equals(other.getMobileApplication())) return false;
break;
case 12:
if (!getBrand()
.equals(other.getBrand())) 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 (hasSharedSet()) {
hash = (37 * hash) + SHARED_SET_FIELD_NUMBER;
hash = (53 * hash) + getSharedSet().hashCode();
}
if (hasCriterionId()) {
hash = (37 * hash) + CRITERION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCriterionId());
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
switch (criterionCase_) {
case 3:
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeyword().hashCode();
break;
case 5:
hash = (37 * hash) + YOUTUBE_VIDEO_FIELD_NUMBER;
hash = (53 * hash) + getYoutubeVideo().hashCode();
break;
case 6:
hash = (37 * hash) + YOUTUBE_CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getYoutubeChannel().hashCode();
break;
case 7:
hash = (37 * hash) + PLACEMENT_FIELD_NUMBER;
hash = (53 * hash) + getPlacement().hashCode();
break;
case 8:
hash = (37 * hash) + MOBILE_APP_CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + getMobileAppCategory().hashCode();
break;
case 9:
hash = (37 * hash) + MOBILE_APPLICATION_FIELD_NUMBER;
hash = (53 * hash) + getMobileApplication().hashCode();
break;
case 12:
hash = (37 * hash) + BRAND_FIELD_NUMBER;
hash = (53 * hash) + getBrand().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.SharedCriterion parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.resources.SharedCriterion 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 criterion belonging to a shared set.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.SharedCriterion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.SharedCriterion)
com.google.ads.googleads.v17.resources.SharedCriterionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.SharedCriterionProto.internal_static_google_ads_googleads_v17_resources_SharedCriterion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.SharedCriterionProto.internal_static_google_ads_googleads_v17_resources_SharedCriterion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.SharedCriterion.class, com.google.ads.googleads.v17.resources.SharedCriterion.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.SharedCriterion.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
sharedSet_ = "";
criterionId_ = 0L;
type_ = 0;
if (keywordBuilder_ != null) {
keywordBuilder_.clear();
}
if (youtubeVideoBuilder_ != null) {
youtubeVideoBuilder_.clear();
}
if (youtubeChannelBuilder_ != null) {
youtubeChannelBuilder_.clear();
}
if (placementBuilder_ != null) {
placementBuilder_.clear();
}
if (mobileAppCategoryBuilder_ != null) {
mobileAppCategoryBuilder_.clear();
}
if (mobileApplicationBuilder_ != null) {
mobileApplicationBuilder_.clear();
}
if (brandBuilder_ != null) {
brandBuilder_.clear();
}
criterionCase_ = 0;
criterion_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.SharedCriterionProto.internal_static_google_ads_googleads_v17_resources_SharedCriterion_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.SharedCriterion getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.SharedCriterion.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.SharedCriterion build() {
com.google.ads.googleads.v17.resources.SharedCriterion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.SharedCriterion buildPartial() {
com.google.ads.googleads.v17.resources.SharedCriterion result = new com.google.ads.googleads.v17.resources.SharedCriterion(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.SharedCriterion result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.sharedSet_ = sharedSet_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.criterionId_ = criterionId_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.type_ = type_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.ads.googleads.v17.resources.SharedCriterion result) {
result.criterionCase_ = criterionCase_;
result.criterion_ = this.criterion_;
if (criterionCase_ == 3 &&
keywordBuilder_ != null) {
result.criterion_ = keywordBuilder_.build();
}
if (criterionCase_ == 5 &&
youtubeVideoBuilder_ != null) {
result.criterion_ = youtubeVideoBuilder_.build();
}
if (criterionCase_ == 6 &&
youtubeChannelBuilder_ != null) {
result.criterion_ = youtubeChannelBuilder_.build();
}
if (criterionCase_ == 7 &&
placementBuilder_ != null) {
result.criterion_ = placementBuilder_.build();
}
if (criterionCase_ == 8 &&
mobileAppCategoryBuilder_ != null) {
result.criterion_ = mobileAppCategoryBuilder_.build();
}
if (criterionCase_ == 9 &&
mobileApplicationBuilder_ != null) {
result.criterion_ = mobileApplicationBuilder_.build();
}
if (criterionCase_ == 12 &&
brandBuilder_ != null) {
result.criterion_ = brandBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.resources.SharedCriterion) {
return mergeFrom((com.google.ads.googleads.v17.resources.SharedCriterion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.SharedCriterion other) {
if (other == com.google.ads.googleads.v17.resources.SharedCriterion.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasSharedSet()) {
sharedSet_ = other.sharedSet_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasCriterionId()) {
setCriterionId(other.getCriterionId());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
switch (other.getCriterionCase()) {
case KEYWORD: {
mergeKeyword(other.getKeyword());
break;
}
case YOUTUBE_VIDEO: {
mergeYoutubeVideo(other.getYoutubeVideo());
break;
}
case YOUTUBE_CHANNEL: {
mergeYoutubeChannel(other.getYoutubeChannel());
break;
}
case PLACEMENT: {
mergePlacement(other.getPlacement());
break;
}
case MOBILE_APP_CATEGORY: {
mergeMobileAppCategory(other.getMobileAppCategory());
break;
}
case MOBILE_APPLICATION: {
mergeMobileApplication(other.getMobileApplication());
break;
}
case BRAND: {
mergeBrand(other.getBrand());
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();
bitField0_ |= 0x00000001;
break;
} // case 10
case 26: {
input.readMessage(
getKeywordFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 3;
break;
} // case 26
case 32: {
type_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
input.readMessage(
getYoutubeVideoFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getYoutubeChannelFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getPlacementFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getMobileAppCategoryFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getMobileApplicationFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 9;
break;
} // case 74
case 82: {
sharedSet_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 82
case 88: {
criterionId_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 88
case 98: {
input.readMessage(
getBrandFieldBuilder().getBuilder(),
extensionRegistry);
criterionCase_ = 12;
break;
} // case 98
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 shared criterion.
* Shared set resource names have the form:
*
* `customers/{customer_id}/sharedCriteria/{shared_set_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 shared criterion.
* Shared set resource names have the form:
*
* `customers/{customer_id}/sharedCriteria/{shared_set_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 shared criterion.
* Shared set resource names have the form:
*
* `customers/{customer_id}/sharedCriteria/{shared_set_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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the shared criterion.
* Shared set resource names have the form:
*
* `customers/{customer_id}/sharedCriteria/{shared_set_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();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the shared criterion.
* Shared set resource names have the form:
*
* `customers/{customer_id}/sharedCriteria/{shared_set_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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object sharedSet_ = "";
/**
*
* Immutable. The shared set to which the shared criterion belongs.
*
*
* optional string shared_set = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the sharedSet field is set.
*/
public boolean hasSharedSet() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Immutable. The shared set to which the shared criterion belongs.
*
*
* optional string shared_set = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The sharedSet.
*/
public java.lang.String getSharedSet() {
java.lang.Object ref = sharedSet_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sharedSet_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The shared set to which the shared criterion belongs.
*
*
* optional string shared_set = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for sharedSet.
*/
public com.google.protobuf.ByteString
getSharedSetBytes() {
java.lang.Object ref = sharedSet_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sharedSet_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The shared set to which the shared criterion belongs.
*
*
* optional string shared_set = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The sharedSet to set.
* @return This builder for chaining.
*/
public Builder setSharedSet(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sharedSet_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Immutable. The shared set to which the shared criterion belongs.
*
*
* optional string shared_set = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearSharedSet() {
sharedSet_ = getDefaultInstance().getSharedSet();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Immutable. The shared set to which the shared criterion belongs.
*
*
* optional string shared_set = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for sharedSet to set.
* @return This builder for chaining.
*/
public Builder setSharedSetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sharedSet_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long criterionId_ ;
/**
*
* Output only. The ID of the criterion.
*
* This field is ignored for mutates.
*
*
* optional int64 criterion_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the criterionId field is set.
*/
@java.lang.Override
public boolean hasCriterionId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. The ID of the criterion.
*
* This field is ignored for mutates.
*
*
* optional int64 criterion_id = 11 [(.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 = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The criterionId to set.
* @return This builder for chaining.
*/
public Builder setCriterionId(long value) {
criterionId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The ID of the criterion.
*
* This field is ignored for mutates.
*
*
* optional int64 criterion_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCriterionId() {
bitField0_ = (bitField0_ & ~0x00000004);
criterionId_ = 0L;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType type = 4 [(.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.v17.enums.CriterionTypeEnum.CriterionType type = 4 [(.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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The type.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType getType() {
com.google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType result = com.google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType.forNumber(type_);
return result == null ? com.google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType.UNRECOGNIZED : result;
}
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The type of the criterion.
*
*
* .google.ads.googleads.v17.enums.CriterionTypeEnum.CriterionType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.KeywordInfo, com.google.ads.googleads.v17.common.KeywordInfo.Builder, com.google.ads.googleads.v17.common.KeywordInfoOrBuilder> keywordBuilder_;
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the keyword field is set.
*/
@java.lang.Override
public boolean hasKeyword() {
return criterionCase_ == 3;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
* @return The keyword.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.KeywordInfo getKeyword() {
if (keywordBuilder_ == null) {
if (criterionCase_ == 3) {
return (com.google.ads.googleads.v17.common.KeywordInfo) criterion_;
}
return com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance();
} else {
if (criterionCase_ == 3) {
return keywordBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setKeyword(com.google.ads.googleads.v17.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
keywordBuilder_.setMessage(value);
}
criterionCase_ = 3;
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setKeyword(
com.google.ads.googleads.v17.common.KeywordInfo.Builder builderForValue) {
if (keywordBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
keywordBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 3;
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeKeyword(com.google.ads.googleads.v17.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (criterionCase_ == 3 &&
criterion_ != com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v17.common.KeywordInfo.newBuilder((com.google.ads.googleads.v17.common.KeywordInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 3) {
keywordBuilder_.mergeFrom(value);
} else {
keywordBuilder_.setMessage(value);
}
}
criterionCase_ = 3;
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearKeyword() {
if (keywordBuilder_ == null) {
if (criterionCase_ == 3) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 3) {
criterionCase_ = 0;
criterion_ = null;
}
keywordBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.KeywordInfo.Builder getKeywordBuilder() {
return getKeywordFieldBuilder().getBuilder();
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.KeywordInfoOrBuilder getKeywordOrBuilder() {
if ((criterionCase_ == 3) && (keywordBuilder_ != null)) {
return keywordBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 3) {
return (com.google.ads.googleads.v17.common.KeywordInfo) criterion_;
}
return com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Keyword.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword = 3 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.KeywordInfo, com.google.ads.googleads.v17.common.KeywordInfo.Builder, com.google.ads.googleads.v17.common.KeywordInfoOrBuilder>
getKeywordFieldBuilder() {
if (keywordBuilder_ == null) {
if (!(criterionCase_ == 3)) {
criterion_ = com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance();
}
keywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.KeywordInfo, com.google.ads.googleads.v17.common.KeywordInfo.Builder, com.google.ads.googleads.v17.common.KeywordInfoOrBuilder>(
(com.google.ads.googleads.v17.common.KeywordInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 3;
onChanged();
return keywordBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.YouTubeVideoInfo, com.google.ads.googleads.v17.common.YouTubeVideoInfo.Builder, com.google.ads.googleads.v17.common.YouTubeVideoInfoOrBuilder> youtubeVideoBuilder_;
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeVideo field is set.
*/
@java.lang.Override
public boolean hasYoutubeVideo() {
return criterionCase_ == 5;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeVideo.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YouTubeVideoInfo getYoutubeVideo() {
if (youtubeVideoBuilder_ == null) {
if (criterionCase_ == 5) {
return (com.google.ads.googleads.v17.common.YouTubeVideoInfo) criterion_;
}
return com.google.ads.googleads.v17.common.YouTubeVideoInfo.getDefaultInstance();
} else {
if (criterionCase_ == 5) {
return youtubeVideoBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.YouTubeVideoInfo.getDefaultInstance();
}
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setYoutubeVideo(com.google.ads.googleads.v17.common.YouTubeVideoInfo value) {
if (youtubeVideoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
youtubeVideoBuilder_.setMessage(value);
}
criterionCase_ = 5;
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setYoutubeVideo(
com.google.ads.googleads.v17.common.YouTubeVideoInfo.Builder builderForValue) {
if (youtubeVideoBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
youtubeVideoBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 5;
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeYoutubeVideo(com.google.ads.googleads.v17.common.YouTubeVideoInfo value) {
if (youtubeVideoBuilder_ == null) {
if (criterionCase_ == 5 &&
criterion_ != com.google.ads.googleads.v17.common.YouTubeVideoInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v17.common.YouTubeVideoInfo.newBuilder((com.google.ads.googleads.v17.common.YouTubeVideoInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 5) {
youtubeVideoBuilder_.mergeFrom(value);
} else {
youtubeVideoBuilder_.setMessage(value);
}
}
criterionCase_ = 5;
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearYoutubeVideo() {
if (youtubeVideoBuilder_ == null) {
if (criterionCase_ == 5) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 5) {
criterionCase_ = 0;
criterion_ = null;
}
youtubeVideoBuilder_.clear();
}
return this;
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.YouTubeVideoInfo.Builder getYoutubeVideoBuilder() {
return getYoutubeVideoFieldBuilder().getBuilder();
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YouTubeVideoInfoOrBuilder getYoutubeVideoOrBuilder() {
if ((criterionCase_ == 5) && (youtubeVideoBuilder_ != null)) {
return youtubeVideoBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 5) {
return (com.google.ads.googleads.v17.common.YouTubeVideoInfo) criterion_;
}
return com.google.ads.googleads.v17.common.YouTubeVideoInfo.getDefaultInstance();
}
}
/**
*
* Immutable. YouTube Video.
*
*
* .google.ads.googleads.v17.common.YouTubeVideoInfo youtube_video = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.YouTubeVideoInfo, com.google.ads.googleads.v17.common.YouTubeVideoInfo.Builder, com.google.ads.googleads.v17.common.YouTubeVideoInfoOrBuilder>
getYoutubeVideoFieldBuilder() {
if (youtubeVideoBuilder_ == null) {
if (!(criterionCase_ == 5)) {
criterion_ = com.google.ads.googleads.v17.common.YouTubeVideoInfo.getDefaultInstance();
}
youtubeVideoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.YouTubeVideoInfo, com.google.ads.googleads.v17.common.YouTubeVideoInfo.Builder, com.google.ads.googleads.v17.common.YouTubeVideoInfoOrBuilder>(
(com.google.ads.googleads.v17.common.YouTubeVideoInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 5;
onChanged();
return youtubeVideoBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.YouTubeChannelInfo, com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder> youtubeChannelBuilder_;
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeChannel field is set.
*/
@java.lang.Override
public boolean hasYoutubeChannel() {
return criterionCase_ == 6;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeChannel.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YouTubeChannelInfo getYoutubeChannel() {
if (youtubeChannelBuilder_ == null) {
if (criterionCase_ == 6) {
return (com.google.ads.googleads.v17.common.YouTubeChannelInfo) criterion_;
}
return com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance();
} else {
if (criterionCase_ == 6) {
return youtubeChannelBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance();
}
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setYoutubeChannel(com.google.ads.googleads.v17.common.YouTubeChannelInfo value) {
if (youtubeChannelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
youtubeChannelBuilder_.setMessage(value);
}
criterionCase_ = 6;
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setYoutubeChannel(
com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder builderForValue) {
if (youtubeChannelBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
youtubeChannelBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 6;
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeYoutubeChannel(com.google.ads.googleads.v17.common.YouTubeChannelInfo value) {
if (youtubeChannelBuilder_ == null) {
if (criterionCase_ == 6 &&
criterion_ != com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v17.common.YouTubeChannelInfo.newBuilder((com.google.ads.googleads.v17.common.YouTubeChannelInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 6) {
youtubeChannelBuilder_.mergeFrom(value);
} else {
youtubeChannelBuilder_.setMessage(value);
}
}
criterionCase_ = 6;
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearYoutubeChannel() {
if (youtubeChannelBuilder_ == null) {
if (criterionCase_ == 6) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 6) {
criterionCase_ = 0;
criterion_ = null;
}
youtubeChannelBuilder_.clear();
}
return this;
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder getYoutubeChannelBuilder() {
return getYoutubeChannelFieldBuilder().getBuilder();
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() {
if ((criterionCase_ == 6) && (youtubeChannelBuilder_ != null)) {
return youtubeChannelBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 6) {
return (com.google.ads.googleads.v17.common.YouTubeChannelInfo) criterion_;
}
return com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance();
}
}
/**
*
* Immutable. YouTube Channel.
*
*
* .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.YouTubeChannelInfo, com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder>
getYoutubeChannelFieldBuilder() {
if (youtubeChannelBuilder_ == null) {
if (!(criterionCase_ == 6)) {
criterion_ = com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance();
}
youtubeChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.YouTubeChannelInfo, com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder>(
(com.google.ads.googleads.v17.common.YouTubeChannelInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 6;
onChanged();
return youtubeChannelBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PlacementInfo, com.google.ads.googleads.v17.common.PlacementInfo.Builder, com.google.ads.googleads.v17.common.PlacementInfoOrBuilder> placementBuilder_;
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the placement field is set.
*/
@java.lang.Override
public boolean hasPlacement() {
return criterionCase_ == 7;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
* @return The placement.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PlacementInfo getPlacement() {
if (placementBuilder_ == null) {
if (criterionCase_ == 7) {
return (com.google.ads.googleads.v17.common.PlacementInfo) criterion_;
}
return com.google.ads.googleads.v17.common.PlacementInfo.getDefaultInstance();
} else {
if (criterionCase_ == 7) {
return placementBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.PlacementInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setPlacement(com.google.ads.googleads.v17.common.PlacementInfo value) {
if (placementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
placementBuilder_.setMessage(value);
}
criterionCase_ = 7;
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setPlacement(
com.google.ads.googleads.v17.common.PlacementInfo.Builder builderForValue) {
if (placementBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
placementBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 7;
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergePlacement(com.google.ads.googleads.v17.common.PlacementInfo value) {
if (placementBuilder_ == null) {
if (criterionCase_ == 7 &&
criterion_ != com.google.ads.googleads.v17.common.PlacementInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v17.common.PlacementInfo.newBuilder((com.google.ads.googleads.v17.common.PlacementInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 7) {
placementBuilder_.mergeFrom(value);
} else {
placementBuilder_.setMessage(value);
}
}
criterionCase_ = 7;
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearPlacement() {
if (placementBuilder_ == null) {
if (criterionCase_ == 7) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 7) {
criterionCase_ = 0;
criterion_ = null;
}
placementBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.PlacementInfo.Builder getPlacementBuilder() {
return getPlacementFieldBuilder().getBuilder();
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PlacementInfoOrBuilder getPlacementOrBuilder() {
if ((criterionCase_ == 7) && (placementBuilder_ != null)) {
return placementBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 7) {
return (com.google.ads.googleads.v17.common.PlacementInfo) criterion_;
}
return com.google.ads.googleads.v17.common.PlacementInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Placement.
*
*
* .google.ads.googleads.v17.common.PlacementInfo placement = 7 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PlacementInfo, com.google.ads.googleads.v17.common.PlacementInfo.Builder, com.google.ads.googleads.v17.common.PlacementInfoOrBuilder>
getPlacementFieldBuilder() {
if (placementBuilder_ == null) {
if (!(criterionCase_ == 7)) {
criterion_ = com.google.ads.googleads.v17.common.PlacementInfo.getDefaultInstance();
}
placementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PlacementInfo, com.google.ads.googleads.v17.common.PlacementInfo.Builder, com.google.ads.googleads.v17.common.PlacementInfoOrBuilder>(
(com.google.ads.googleads.v17.common.PlacementInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 7;
onChanged();
return placementBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MobileAppCategoryInfo, com.google.ads.googleads.v17.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v17.common.MobileAppCategoryInfoOrBuilder> mobileAppCategoryBuilder_;
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileAppCategory field is set.
*/
@java.lang.Override
public boolean hasMobileAppCategory() {
return criterionCase_ == 8;
}
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileAppCategory.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileAppCategoryInfo getMobileAppCategory() {
if (mobileAppCategoryBuilder_ == null) {
if (criterionCase_ == 8) {
return (com.google.ads.googleads.v17.common.MobileAppCategoryInfo) criterion_;
}
return com.google.ads.googleads.v17.common.MobileAppCategoryInfo.getDefaultInstance();
} else {
if (criterionCase_ == 8) {
return mobileAppCategoryBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.MobileAppCategoryInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMobileAppCategory(com.google.ads.googleads.v17.common.MobileAppCategoryInfo value) {
if (mobileAppCategoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
mobileAppCategoryBuilder_.setMessage(value);
}
criterionCase_ = 8;
return this;
}
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMobileAppCategory(
com.google.ads.googleads.v17.common.MobileAppCategoryInfo.Builder builderForValue) {
if (mobileAppCategoryBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
mobileAppCategoryBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 8;
return this;
}
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeMobileAppCategory(com.google.ads.googleads.v17.common.MobileAppCategoryInfo value) {
if (mobileAppCategoryBuilder_ == null) {
if (criterionCase_ == 8 &&
criterion_ != com.google.ads.googleads.v17.common.MobileAppCategoryInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v17.common.MobileAppCategoryInfo.newBuilder((com.google.ads.googleads.v17.common.MobileAppCategoryInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 8) {
mobileAppCategoryBuilder_.mergeFrom(value);
} else {
mobileAppCategoryBuilder_.setMessage(value);
}
}
criterionCase_ = 8;
return this;
}
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearMobileAppCategory() {
if (mobileAppCategoryBuilder_ == null) {
if (criterionCase_ == 8) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 8) {
criterionCase_ = 0;
criterion_ = null;
}
mobileAppCategoryBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.MobileAppCategoryInfo.Builder getMobileAppCategoryBuilder() {
return getMobileAppCategoryFieldBuilder().getBuilder();
}
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() {
if ((criterionCase_ == 8) && (mobileAppCategoryBuilder_ != null)) {
return mobileAppCategoryBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 8) {
return (com.google.ads.googleads.v17.common.MobileAppCategoryInfo) criterion_;
}
return com.google.ads.googleads.v17.common.MobileAppCategoryInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Mobile App Category.
*
*
* .google.ads.googleads.v17.common.MobileAppCategoryInfo mobile_app_category = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MobileAppCategoryInfo, com.google.ads.googleads.v17.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v17.common.MobileAppCategoryInfoOrBuilder>
getMobileAppCategoryFieldBuilder() {
if (mobileAppCategoryBuilder_ == null) {
if (!(criterionCase_ == 8)) {
criterion_ = com.google.ads.googleads.v17.common.MobileAppCategoryInfo.getDefaultInstance();
}
mobileAppCategoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MobileAppCategoryInfo, com.google.ads.googleads.v17.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v17.common.MobileAppCategoryInfoOrBuilder>(
(com.google.ads.googleads.v17.common.MobileAppCategoryInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 8;
onChanged();
return mobileAppCategoryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MobileApplicationInfo, com.google.ads.googleads.v17.common.MobileApplicationInfo.Builder, com.google.ads.googleads.v17.common.MobileApplicationInfoOrBuilder> mobileApplicationBuilder_;
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mobileApplication field is set.
*/
@java.lang.Override
public boolean hasMobileApplication() {
return criterionCase_ == 9;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mobileApplication.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileApplicationInfo getMobileApplication() {
if (mobileApplicationBuilder_ == null) {
if (criterionCase_ == 9) {
return (com.google.ads.googleads.v17.common.MobileApplicationInfo) criterion_;
}
return com.google.ads.googleads.v17.common.MobileApplicationInfo.getDefaultInstance();
} else {
if (criterionCase_ == 9) {
return mobileApplicationBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.MobileApplicationInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMobileApplication(com.google.ads.googleads.v17.common.MobileApplicationInfo value) {
if (mobileApplicationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
mobileApplicationBuilder_.setMessage(value);
}
criterionCase_ = 9;
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMobileApplication(
com.google.ads.googleads.v17.common.MobileApplicationInfo.Builder builderForValue) {
if (mobileApplicationBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
mobileApplicationBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 9;
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeMobileApplication(com.google.ads.googleads.v17.common.MobileApplicationInfo value) {
if (mobileApplicationBuilder_ == null) {
if (criterionCase_ == 9 &&
criterion_ != com.google.ads.googleads.v17.common.MobileApplicationInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v17.common.MobileApplicationInfo.newBuilder((com.google.ads.googleads.v17.common.MobileApplicationInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 9) {
mobileApplicationBuilder_.mergeFrom(value);
} else {
mobileApplicationBuilder_.setMessage(value);
}
}
criterionCase_ = 9;
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearMobileApplication() {
if (mobileApplicationBuilder_ == null) {
if (criterionCase_ == 9) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 9) {
criterionCase_ = 0;
criterion_ = null;
}
mobileApplicationBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.MobileApplicationInfo.Builder getMobileApplicationBuilder() {
return getMobileApplicationFieldBuilder().getBuilder();
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileApplicationInfoOrBuilder getMobileApplicationOrBuilder() {
if ((criterionCase_ == 9) && (mobileApplicationBuilder_ != null)) {
return mobileApplicationBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 9) {
return (com.google.ads.googleads.v17.common.MobileApplicationInfo) criterion_;
}
return com.google.ads.googleads.v17.common.MobileApplicationInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Mobile application.
*
*
* .google.ads.googleads.v17.common.MobileApplicationInfo mobile_application = 9 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MobileApplicationInfo, com.google.ads.googleads.v17.common.MobileApplicationInfo.Builder, com.google.ads.googleads.v17.common.MobileApplicationInfoOrBuilder>
getMobileApplicationFieldBuilder() {
if (mobileApplicationBuilder_ == null) {
if (!(criterionCase_ == 9)) {
criterion_ = com.google.ads.googleads.v17.common.MobileApplicationInfo.getDefaultInstance();
}
mobileApplicationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MobileApplicationInfo, com.google.ads.googleads.v17.common.MobileApplicationInfo.Builder, com.google.ads.googleads.v17.common.MobileApplicationInfoOrBuilder>(
(com.google.ads.googleads.v17.common.MobileApplicationInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 9;
onChanged();
return mobileApplicationBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.BrandInfo, com.google.ads.googleads.v17.common.BrandInfo.Builder, com.google.ads.googleads.v17.common.BrandInfoOrBuilder> brandBuilder_;
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the brand field is set.
*/
@java.lang.Override
public boolean hasBrand() {
return criterionCase_ == 12;
}
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return The brand.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BrandInfo getBrand() {
if (brandBuilder_ == null) {
if (criterionCase_ == 12) {
return (com.google.ads.googleads.v17.common.BrandInfo) criterion_;
}
return com.google.ads.googleads.v17.common.BrandInfo.getDefaultInstance();
} else {
if (criterionCase_ == 12) {
return brandBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.BrandInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setBrand(com.google.ads.googleads.v17.common.BrandInfo value) {
if (brandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criterion_ = value;
onChanged();
} else {
brandBuilder_.setMessage(value);
}
criterionCase_ = 12;
return this;
}
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setBrand(
com.google.ads.googleads.v17.common.BrandInfo.Builder builderForValue) {
if (brandBuilder_ == null) {
criterion_ = builderForValue.build();
onChanged();
} else {
brandBuilder_.setMessage(builderForValue.build());
}
criterionCase_ = 12;
return this;
}
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeBrand(com.google.ads.googleads.v17.common.BrandInfo value) {
if (brandBuilder_ == null) {
if (criterionCase_ == 12 &&
criterion_ != com.google.ads.googleads.v17.common.BrandInfo.getDefaultInstance()) {
criterion_ = com.google.ads.googleads.v17.common.BrandInfo.newBuilder((com.google.ads.googleads.v17.common.BrandInfo) criterion_)
.mergeFrom(value).buildPartial();
} else {
criterion_ = value;
}
onChanged();
} else {
if (criterionCase_ == 12) {
brandBuilder_.mergeFrom(value);
} else {
brandBuilder_.setMessage(value);
}
}
criterionCase_ = 12;
return this;
}
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearBrand() {
if (brandBuilder_ == null) {
if (criterionCase_ == 12) {
criterionCase_ = 0;
criterion_ = null;
onChanged();
}
} else {
if (criterionCase_ == 12) {
criterionCase_ = 0;
criterion_ = null;
}
brandBuilder_.clear();
}
return this;
}
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.BrandInfo.Builder getBrandBuilder() {
return getBrandFieldBuilder().getBuilder();
}
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BrandInfoOrBuilder getBrandOrBuilder() {
if ((criterionCase_ == 12) && (brandBuilder_ != null)) {
return brandBuilder_.getMessageOrBuilder();
} else {
if (criterionCase_ == 12) {
return (com.google.ads.googleads.v17.common.BrandInfo) criterion_;
}
return com.google.ads.googleads.v17.common.BrandInfo.getDefaultInstance();
}
}
/**
*
* Immutable. Brand.
*
*
* .google.ads.googleads.v17.common.BrandInfo brand = 12 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.BrandInfo, com.google.ads.googleads.v17.common.BrandInfo.Builder, com.google.ads.googleads.v17.common.BrandInfoOrBuilder>
getBrandFieldBuilder() {
if (brandBuilder_ == null) {
if (!(criterionCase_ == 12)) {
criterion_ = com.google.ads.googleads.v17.common.BrandInfo.getDefaultInstance();
}
brandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.BrandInfo, com.google.ads.googleads.v17.common.BrandInfo.Builder, com.google.ads.googleads.v17.common.BrandInfoOrBuilder>(
(com.google.ads.googleads.v17.common.BrandInfo) criterion_,
getParentForChildren(),
isClean());
criterion_ = null;
}
criterionCase_ = 12;
onChanged();
return brandBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.resources.SharedCriterion)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.SharedCriterion)
private static final com.google.ads.googleads.v17.resources.SharedCriterion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.SharedCriterion();
}
public static com.google.ads.googleads.v17.resources.SharedCriterion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SharedCriterion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.SharedCriterion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy