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

com.google.ads.googleads.v16.resources.Recommendation Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v16/resources/recommendation.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v16.resources;

/**
 * 
 * A recommendation.
 * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation} */ public final class Recommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation) RecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use Recommendation.newBuilder() to construct. private Recommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Recommendation() { resourceName_ = ""; type_ = 0; campaignBudget_ = ""; campaign_ = ""; adGroup_ = ""; campaigns_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Recommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.class, com.google.ads.googleads.v16.resources.Recommendation.Builder.class); } public interface MerchantInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.MerchantInfo) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The Merchant Center account ID.
     * 
* * int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ long getId(); /** *
     * Output only. The name of the Merchant Center account.
     * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The name. */ java.lang.String getName(); /** *
     * Output only. The name of the Merchant Center account.
     * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Output only. Whether the Merchant Center account is a Multi-Client
     * account (MCA).
     * 
* * bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The multiClient. */ boolean getMultiClient(); } /** *
   * The Merchant Center account details.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MerchantInfo} */ public static final class MerchantInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.MerchantInfo) MerchantInfoOrBuilder { private static final long serialVersionUID = 0L; // Use MerchantInfo.newBuilder() to construct. private MerchantInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MerchantInfo() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MerchantInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MerchantInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MerchantInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.class, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private long id_ = 0L; /** *
     * Output only. The Merchant Center account ID.
     * 
* * int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * Output only. The name of the Merchant Center account.
     * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * Output only. The name of the Merchant Center account.
     * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MULTI_CLIENT_FIELD_NUMBER = 3; private boolean multiClient_ = false; /** *
     * Output only. Whether the Merchant Center account is a Multi-Client
     * account (MCA).
     * 
* * bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The multiClient. */ @java.lang.Override public boolean getMultiClient() { return multiClient_; } 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 (id_ != 0L) { output.writeInt64(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (multiClient_ != false) { output.writeBool(3, multiClient_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (multiClient_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, multiClient_); } 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.v16.resources.Recommendation.MerchantInfo)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo other = (com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo) obj; if (getId() != other.getId()) return false; if (!getName() .equals(other.getName())) return false; if (getMultiClient() != other.getMultiClient()) 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(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + MULTI_CLIENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMultiClient()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo 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.v16.resources.Recommendation.MerchantInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo 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.v16.resources.Recommendation.MerchantInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo 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.v16.resources.Recommendation.MerchantInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo 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.v16.resources.Recommendation.MerchantInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo 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.v16.resources.Recommendation.MerchantInfo 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; } /** *
     * The Merchant Center account details.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MerchantInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.MerchantInfo) com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MerchantInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MerchantInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.class, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = 0L; name_ = ""; multiClient_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MerchantInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo build() { com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo result = new com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.multiClient_ = multiClient_; } } @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.v16.resources.Recommendation.MerchantInfo) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) return this; if (other.getId() != 0L) { setId(other.getId()); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000002; onChanged(); } if (other.getMultiClient() != false) { setMultiClient(other.getMultiClient()); } 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 8: { id_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { multiClient_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 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 id_ ; /** *
       * Output only. The Merchant Center account ID.
       * 
* * int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
       * Output only. The Merchant Center account ID.
       * 
* * int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The Merchant Center account ID.
       * 
* * int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Output only. The name of the Merchant Center account.
       * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The name of the Merchant Center account.
       * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The name of the Merchant Center account.
       * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The name of the Merchant Center account.
       * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. The name of the Merchant Center account.
       * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private boolean multiClient_ ; /** *
       * Output only. Whether the Merchant Center account is a Multi-Client
       * account (MCA).
       * 
* * bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The multiClient. */ @java.lang.Override public boolean getMultiClient() { return multiClient_; } /** *
       * Output only. Whether the Merchant Center account is a Multi-Client
       * account (MCA).
       * 
* * bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The multiClient to set. * @return This builder for chaining. */ public Builder setMultiClient(boolean value) { multiClient_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. Whether the Merchant Center account is a Multi-Client
       * account (MCA).
       * 
* * bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearMultiClient() { bitField0_ = (bitField0_ & ~0x00000004); multiClient_ = false; 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.v16.resources.Recommendation.MerchantInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.MerchantInfo) private static final com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo(); } public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MerchantInfo 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.v16.resources.Recommendation.MerchantInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecommendationImpactOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.RecommendationImpact) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Base metrics at the time the recommendation was generated.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the baseMetrics field is set. */ boolean hasBaseMetrics(); /** *
     * Output only. Base metrics at the time the recommendation was generated.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The baseMetrics. */ com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getBaseMetrics(); /** *
     * Output only. Base metrics at the time the recommendation was generated.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getBaseMetricsOrBuilder(); /** *
     * Output only. Estimated metrics if the recommendation is applied.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the potentialMetrics field is set. */ boolean hasPotentialMetrics(); /** *
     * Output only. Estimated metrics if the recommendation is applied.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The potentialMetrics. */ com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getPotentialMetrics(); /** *
     * Output only. Estimated metrics if the recommendation is applied.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getPotentialMetricsOrBuilder(); } /** *
   * The impact of making the change as described in the recommendation.
   * Some types of recommendations may not have impact information.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RecommendationImpact} */ public static final class RecommendationImpact extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.RecommendationImpact) RecommendationImpactOrBuilder { private static final long serialVersionUID = 0L; // Use RecommendationImpact.newBuilder() to construct. private RecommendationImpact(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecommendationImpact() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecommendationImpact(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.class, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder.class); } private int bitField0_; public static final int BASE_METRICS_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics baseMetrics_; /** *
     * Output only. Base metrics at the time the recommendation was generated.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the baseMetrics field is set. */ @java.lang.Override public boolean hasBaseMetrics() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. Base metrics at the time the recommendation was generated.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The baseMetrics. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getBaseMetrics() { return baseMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : baseMetrics_; } /** *
     * Output only. Base metrics at the time the recommendation was generated.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getBaseMetricsOrBuilder() { return baseMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : baseMetrics_; } public static final int POTENTIAL_METRICS_FIELD_NUMBER = 2; private com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potentialMetrics_; /** *
     * Output only. Estimated metrics if the recommendation is applied.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the potentialMetrics field is set. */ @java.lang.Override public boolean hasPotentialMetrics() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. Estimated metrics if the recommendation is applied.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The potentialMetrics. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getPotentialMetrics() { return potentialMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : potentialMetrics_; } /** *
     * Output only. Estimated metrics if the recommendation is applied.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getPotentialMetricsOrBuilder() { return potentialMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : potentialMetrics_; } 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.writeMessage(1, getBaseMetrics()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getPotentialMetrics()); } 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 .computeMessageSize(1, getBaseMetrics()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPotentialMetrics()); } 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.v16.resources.Recommendation.RecommendationImpact)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact other = (com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact) obj; if (hasBaseMetrics() != other.hasBaseMetrics()) return false; if (hasBaseMetrics()) { if (!getBaseMetrics() .equals(other.getBaseMetrics())) return false; } if (hasPotentialMetrics() != other.hasPotentialMetrics()) return false; if (hasPotentialMetrics()) { if (!getPotentialMetrics() .equals(other.getPotentialMetrics())) 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 (hasBaseMetrics()) { hash = (37 * hash) + BASE_METRICS_FIELD_NUMBER; hash = (53 * hash) + getBaseMetrics().hashCode(); } if (hasPotentialMetrics()) { hash = (37 * hash) + POTENTIAL_METRICS_FIELD_NUMBER; hash = (53 * hash) + getPotentialMetrics().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact 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; } /** *
     * The impact of making the change as described in the recommendation.
     * Some types of recommendations may not have impact information.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RecommendationImpact} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.RecommendationImpact) com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.class, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBaseMetricsFieldBuilder(); getPotentialMetricsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; baseMetrics_ = null; if (baseMetricsBuilder_ != null) { baseMetricsBuilder_.dispose(); baseMetricsBuilder_ = null; } potentialMetrics_ = null; if (potentialMetricsBuilder_ != null) { potentialMetricsBuilder_.dispose(); potentialMetricsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationImpact_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact build() { com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact result = new com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.baseMetrics_ = baseMetricsBuilder_ == null ? baseMetrics_ : baseMetricsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.potentialMetrics_ = potentialMetricsBuilder_ == null ? potentialMetrics_ : potentialMetricsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance()) return this; if (other.hasBaseMetrics()) { mergeBaseMetrics(other.getBaseMetrics()); } if (other.hasPotentialMetrics()) { mergePotentialMetrics(other.getPotentialMetrics()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getBaseMetricsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getPotentialMetricsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics baseMetrics_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder> baseMetricsBuilder_; /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the baseMetrics field is set. */ public boolean hasBaseMetrics() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The baseMetrics. */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getBaseMetrics() { if (baseMetricsBuilder_ == null) { return baseMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : baseMetrics_; } else { return baseMetricsBuilder_.getMessage(); } } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBaseMetrics(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics value) { if (baseMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } baseMetrics_ = value; } else { baseMetricsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBaseMetrics( com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder builderForValue) { if (baseMetricsBuilder_ == null) { baseMetrics_ = builderForValue.build(); } else { baseMetricsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeBaseMetrics(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics value) { if (baseMetricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && baseMetrics_ != null && baseMetrics_ != com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance()) { getBaseMetricsBuilder().mergeFrom(value); } else { baseMetrics_ = value; } } else { baseMetricsBuilder_.mergeFrom(value); } if (baseMetrics_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearBaseMetrics() { bitField0_ = (bitField0_ & ~0x00000001); baseMetrics_ = null; if (baseMetricsBuilder_ != null) { baseMetricsBuilder_.dispose(); baseMetricsBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder getBaseMetricsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBaseMetricsFieldBuilder().getBuilder(); } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getBaseMetricsOrBuilder() { if (baseMetricsBuilder_ != null) { return baseMetricsBuilder_.getMessageOrBuilder(); } else { return baseMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : baseMetrics_; } } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder> getBaseMetricsFieldBuilder() { if (baseMetricsBuilder_ == null) { baseMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder>( getBaseMetrics(), getParentForChildren(), isClean()); baseMetrics_ = null; } return baseMetricsBuilder_; } private com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potentialMetrics_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder> potentialMetricsBuilder_; /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the potentialMetrics field is set. */ public boolean hasPotentialMetrics() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The potentialMetrics. */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getPotentialMetrics() { if (potentialMetricsBuilder_ == null) { return potentialMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : potentialMetrics_; } else { return potentialMetricsBuilder_.getMessage(); } } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPotentialMetrics(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics value) { if (potentialMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } potentialMetrics_ = value; } else { potentialMetricsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPotentialMetrics( com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder builderForValue) { if (potentialMetricsBuilder_ == null) { potentialMetrics_ = builderForValue.build(); } else { potentialMetricsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergePotentialMetrics(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics value) { if (potentialMetricsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && potentialMetrics_ != null && potentialMetrics_ != com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance()) { getPotentialMetricsBuilder().mergeFrom(value); } else { potentialMetrics_ = value; } } else { potentialMetricsBuilder_.mergeFrom(value); } if (potentialMetrics_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPotentialMetrics() { bitField0_ = (bitField0_ & ~0x00000002); potentialMetrics_ = null; if (potentialMetricsBuilder_ != null) { potentialMetricsBuilder_.dispose(); potentialMetricsBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder getPotentialMetricsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPotentialMetricsFieldBuilder().getBuilder(); } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getPotentialMetricsOrBuilder() { if (potentialMetricsBuilder_ != null) { return potentialMetricsBuilder_.getMessageOrBuilder(); } else { return potentialMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : potentialMetrics_; } } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder> getPotentialMetricsFieldBuilder() { if (potentialMetricsBuilder_ == null) { potentialMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder>( getPotentialMetrics(), getParentForChildren(), isClean()); potentialMetrics_ = null; } return potentialMetricsBuilder_; } @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.v16.resources.Recommendation.RecommendationImpact) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.RecommendationImpact) private static final com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact(); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecommendationMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Number of ad impressions.
     * 
* * optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impressions field is set. */ boolean hasImpressions(); /** *
     * Output only. Number of ad impressions.
     * 
* * optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impressions. */ double getImpressions(); /** *
     * Output only. Number of ad clicks.
     * 
* * optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the clicks field is set. */ boolean hasClicks(); /** *
     * Output only. Number of ad clicks.
     * 
* * optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The clicks. */ double getClicks(); /** *
     * Output only. Cost (in micros) for advertising, in the local currency for
     * the account.
     * 
* * optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the costMicros field is set. */ boolean hasCostMicros(); /** *
     * Output only. Cost (in micros) for advertising, in the local currency for
     * the account.
     * 
* * optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The costMicros. */ long getCostMicros(); /** *
     * Output only. Number of conversions.
     * 
* * optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the conversions field is set. */ boolean hasConversions(); /** *
     * Output only. Number of conversions.
     * 
* * optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The conversions. */ double getConversions(); /** *
     * Output only. Sum of the conversion value of the conversions.
     * 
* * optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the conversionsValue field is set. */ boolean hasConversionsValue(); /** *
     * Output only. Sum of the conversion value of the conversions.
     * 
* * optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The conversionsValue. */ double getConversionsValue(); /** *
     * Output only. Number of video views for a video ad campaign.
     * 
* * optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the videoViews field is set. */ boolean hasVideoViews(); /** *
     * Output only. Number of video views for a video ad campaign.
     * 
* * optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The videoViews. */ double getVideoViews(); } /** *
   * Weekly account performance metrics. For some recommendation types, these
   * are averaged over the past 90-day period and hence can be fractional.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics} */ public static final class RecommendationMetrics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics) RecommendationMetricsOrBuilder { private static final long serialVersionUID = 0L; // Use RecommendationMetrics.newBuilder() to construct. private RecommendationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecommendationMetrics() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecommendationMetrics(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.class, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder.class); } private int bitField0_; public static final int IMPRESSIONS_FIELD_NUMBER = 6; private double impressions_ = 0D; /** *
     * Output only. Number of ad impressions.
     * 
* * optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impressions field is set. */ @java.lang.Override public boolean hasImpressions() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. Number of ad impressions.
     * 
* * optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impressions. */ @java.lang.Override public double getImpressions() { return impressions_; } public static final int CLICKS_FIELD_NUMBER = 7; private double clicks_ = 0D; /** *
     * Output only. Number of ad clicks.
     * 
* * optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the clicks field is set. */ @java.lang.Override public boolean hasClicks() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. Number of ad clicks.
     * 
* * optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The clicks. */ @java.lang.Override public double getClicks() { return clicks_; } public static final int COST_MICROS_FIELD_NUMBER = 8; private long costMicros_ = 0L; /** *
     * Output only. Cost (in micros) for advertising, in the local currency for
     * the account.
     * 
* * optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the costMicros field is set. */ @java.lang.Override public boolean hasCostMicros() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Output only. Cost (in micros) for advertising, in the local currency for
     * the account.
     * 
* * optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The costMicros. */ @java.lang.Override public long getCostMicros() { return costMicros_; } public static final int CONVERSIONS_FIELD_NUMBER = 9; private double conversions_ = 0D; /** *
     * Output only. Number of conversions.
     * 
* * optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the conversions field is set. */ @java.lang.Override public boolean hasConversions() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Output only. Number of conversions.
     * 
* * optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The conversions. */ @java.lang.Override public double getConversions() { return conversions_; } public static final int CONVERSIONS_VALUE_FIELD_NUMBER = 11; private double conversionsValue_ = 0D; /** *
     * Output only. Sum of the conversion value of the conversions.
     * 
* * optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the conversionsValue field is set. */ @java.lang.Override public boolean hasConversionsValue() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Output only. Sum of the conversion value of the conversions.
     * 
* * optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The conversionsValue. */ @java.lang.Override public double getConversionsValue() { return conversionsValue_; } public static final int VIDEO_VIEWS_FIELD_NUMBER = 10; private double videoViews_ = 0D; /** *
     * Output only. Number of video views for a video ad campaign.
     * 
* * optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the videoViews field is set. */ @java.lang.Override public boolean hasVideoViews() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Output only. Number of video views for a video ad campaign.
     * 
* * optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The videoViews. */ @java.lang.Override public double getVideoViews() { return videoViews_; } 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.writeDouble(6, impressions_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeDouble(7, clicks_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(8, costMicros_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeDouble(9, conversions_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeDouble(10, videoViews_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeDouble(11, conversionsValue_); } 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 .computeDoubleSize(6, impressions_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(7, clicks_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, costMicros_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(9, conversions_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(10, videoViews_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(11, conversionsValue_); } 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.v16.resources.Recommendation.RecommendationMetrics)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics other = (com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics) obj; if (hasImpressions() != other.hasImpressions()) return false; if (hasImpressions()) { if (java.lang.Double.doubleToLongBits(getImpressions()) != java.lang.Double.doubleToLongBits( other.getImpressions())) return false; } if (hasClicks() != other.hasClicks()) return false; if (hasClicks()) { if (java.lang.Double.doubleToLongBits(getClicks()) != java.lang.Double.doubleToLongBits( other.getClicks())) return false; } if (hasCostMicros() != other.hasCostMicros()) return false; if (hasCostMicros()) { if (getCostMicros() != other.getCostMicros()) return false; } if (hasConversions() != other.hasConversions()) return false; if (hasConversions()) { if (java.lang.Double.doubleToLongBits(getConversions()) != java.lang.Double.doubleToLongBits( other.getConversions())) return false; } if (hasConversionsValue() != other.hasConversionsValue()) return false; if (hasConversionsValue()) { if (java.lang.Double.doubleToLongBits(getConversionsValue()) != java.lang.Double.doubleToLongBits( other.getConversionsValue())) return false; } if (hasVideoViews() != other.hasVideoViews()) return false; if (hasVideoViews()) { if (java.lang.Double.doubleToLongBits(getVideoViews()) != java.lang.Double.doubleToLongBits( other.getVideoViews())) 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 (hasImpressions()) { hash = (37 * hash) + IMPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getImpressions())); } if (hasClicks()) { hash = (37 * hash) + CLICKS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getClicks())); } if (hasCostMicros()) { hash = (37 * hash) + COST_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCostMicros()); } if (hasConversions()) { hash = (37 * hash) + CONVERSIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getConversions())); } if (hasConversionsValue()) { hash = (37 * hash) + CONVERSIONS_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getConversionsValue())); } if (hasVideoViews()) { hash = (37 * hash) + VIDEO_VIEWS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getVideoViews())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics 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; } /** *
     * Weekly account performance metrics. For some recommendation types, these
     * are averaged over the past 90-day period and hence can be fractional.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics) com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.class, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; impressions_ = 0D; clicks_ = 0D; costMicros_ = 0L; conversions_ = 0D; conversionsValue_ = 0D; videoViews_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationMetrics_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics build() { com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics result = new com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.impressions_ = impressions_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.clicks_ = clicks_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.costMicros_ = costMicros_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.conversions_ = conversions_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.conversionsValue_ = conversionsValue_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.videoViews_ = videoViews_; to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance()) return this; if (other.hasImpressions()) { setImpressions(other.getImpressions()); } if (other.hasClicks()) { setClicks(other.getClicks()); } if (other.hasCostMicros()) { setCostMicros(other.getCostMicros()); } if (other.hasConversions()) { setConversions(other.getConversions()); } if (other.hasConversionsValue()) { setConversionsValue(other.getConversionsValue()); } if (other.hasVideoViews()) { setVideoViews(other.getVideoViews()); } 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 49: { impressions_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 49 case 57: { clicks_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 57 case 64: { costMicros_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 64 case 73: { conversions_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 73 case 81: { videoViews_ = input.readDouble(); bitField0_ |= 0x00000020; break; } // case 81 case 89: { conversionsValue_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 89 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 double impressions_ ; /** *
       * Output only. Number of ad impressions.
       * 
* * optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impressions field is set. */ @java.lang.Override public boolean hasImpressions() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. Number of ad impressions.
       * 
* * optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impressions. */ @java.lang.Override public double getImpressions() { return impressions_; } /** *
       * Output only. Number of ad impressions.
       * 
* * optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The impressions to set. * @return This builder for chaining. */ public Builder setImpressions(double value) { impressions_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. Number of ad impressions.
       * 
* * optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearImpressions() { bitField0_ = (bitField0_ & ~0x00000001); impressions_ = 0D; onChanged(); return this; } private double clicks_ ; /** *
       * Output only. Number of ad clicks.
       * 
* * optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the clicks field is set. */ @java.lang.Override public boolean hasClicks() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. Number of ad clicks.
       * 
* * optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The clicks. */ @java.lang.Override public double getClicks() { return clicks_; } /** *
       * Output only. Number of ad clicks.
       * 
* * optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The clicks to set. * @return This builder for chaining. */ public Builder setClicks(double value) { clicks_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Number of ad clicks.
       * 
* * optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearClicks() { bitField0_ = (bitField0_ & ~0x00000002); clicks_ = 0D; onChanged(); return this; } private long costMicros_ ; /** *
       * Output only. Cost (in micros) for advertising, in the local currency for
       * the account.
       * 
* * optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the costMicros field is set. */ @java.lang.Override public boolean hasCostMicros() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Output only. Cost (in micros) for advertising, in the local currency for
       * the account.
       * 
* * optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The costMicros. */ @java.lang.Override public long getCostMicros() { return costMicros_; } /** *
       * Output only. Cost (in micros) for advertising, in the local currency for
       * the account.
       * 
* * optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The costMicros to set. * @return This builder for chaining. */ public Builder setCostMicros(long value) { costMicros_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. Cost (in micros) for advertising, in the local currency for
       * the account.
       * 
* * optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCostMicros() { bitField0_ = (bitField0_ & ~0x00000004); costMicros_ = 0L; onChanged(); return this; } private double conversions_ ; /** *
       * Output only. Number of conversions.
       * 
* * optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the conversions field is set. */ @java.lang.Override public boolean hasConversions() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Output only. Number of conversions.
       * 
* * optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The conversions. */ @java.lang.Override public double getConversions() { return conversions_; } /** *
       * Output only. Number of conversions.
       * 
* * optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The conversions to set. * @return This builder for chaining. */ public Builder setConversions(double value) { conversions_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Output only. Number of conversions.
       * 
* * optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearConversions() { bitField0_ = (bitField0_ & ~0x00000008); conversions_ = 0D; onChanged(); return this; } private double conversionsValue_ ; /** *
       * Output only. Sum of the conversion value of the conversions.
       * 
* * optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the conversionsValue field is set. */ @java.lang.Override public boolean hasConversionsValue() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Output only. Sum of the conversion value of the conversions.
       * 
* * optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The conversionsValue. */ @java.lang.Override public double getConversionsValue() { return conversionsValue_; } /** *
       * Output only. Sum of the conversion value of the conversions.
       * 
* * optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The conversionsValue to set. * @return This builder for chaining. */ public Builder setConversionsValue(double value) { conversionsValue_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Output only. Sum of the conversion value of the conversions.
       * 
* * optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearConversionsValue() { bitField0_ = (bitField0_ & ~0x00000010); conversionsValue_ = 0D; onChanged(); return this; } private double videoViews_ ; /** *
       * Output only. Number of video views for a video ad campaign.
       * 
* * optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the videoViews field is set. */ @java.lang.Override public boolean hasVideoViews() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Output only. Number of video views for a video ad campaign.
       * 
* * optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The videoViews. */ @java.lang.Override public double getVideoViews() { return videoViews_; } /** *
       * Output only. Number of video views for a video ad campaign.
       * 
* * optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The videoViews to set. * @return This builder for chaining. */ public Builder setVideoViews(double value) { videoViews_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Output only. Number of video views for a video ad campaign.
       * 
* * optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearVideoViews() { bitField0_ = (bitField0_ & ~0x00000020); videoViews_ = 0D; 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.v16.resources.Recommendation.RecommendationMetrics) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics) private static final com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics(); } public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CampaignBudgetRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The current budget amount in micros.
     * 
* * optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the currentBudgetAmountMicros field is set. */ boolean hasCurrentBudgetAmountMicros(); /** *
     * Output only. The current budget amount in micros.
     * 
* * optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentBudgetAmountMicros. */ long getCurrentBudgetAmountMicros(); /** *
     * Output only. The recommended budget amount in micros.
     * 
* * optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedBudgetAmountMicros field is set. */ boolean hasRecommendedBudgetAmountMicros(); /** *
     * Output only. The recommended budget amount in micros.
     * 
* * optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedBudgetAmountMicros. */ long getRecommendedBudgetAmountMicros(); /** *
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getBudgetOptionsList(); /** *
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getBudgetOptions(int index); /** *
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getBudgetOptionsCount(); /** *
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getBudgetOptionsOrBuilderList(); /** *
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder getBudgetOptionsOrBuilder( int index); } /** *
   * The budget recommendation for budget constrained campaigns.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation} */ public static final class CampaignBudgetRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) CampaignBudgetRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use CampaignBudgetRecommendation.newBuilder() to construct. private CampaignBudgetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CampaignBudgetRecommendation() { budgetOptions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CampaignBudgetRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder.class); } public interface CampaignBudgetRecommendationOptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) com.google.protobuf.MessageOrBuilder { /** *
       * Output only. The budget amount for this option.
       * 
* * optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the budgetAmountMicros field is set. */ boolean hasBudgetAmountMicros(); /** *
       * Output only. The budget amount for this option.
       * 
* * optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The budgetAmountMicros. */ long getBudgetAmountMicros(); /** *
       * Output only. The impact estimate if budget is changed to amount
       * specified in this option.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impact field is set. */ boolean hasImpact(); /** *
       * Output only. The impact estimate if budget is changed to amount
       * specified in this option.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact(); /** *
       * Output only. The impact estimate if budget is changed to amount
       * specified in this option.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder(); } /** *
     * The impact estimates for a given budget amount.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption} */ public static final class CampaignBudgetRecommendationOption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) CampaignBudgetRecommendationOptionOrBuilder { private static final long serialVersionUID = 0L; // Use CampaignBudgetRecommendationOption.newBuilder() to construct. private CampaignBudgetRecommendationOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CampaignBudgetRecommendationOption() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CampaignBudgetRecommendationOption(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.class, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder.class); } private int bitField0_; public static final int BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 3; private long budgetAmountMicros_ = 0L; /** *
       * Output only. The budget amount for this option.
       * 
* * optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the budgetAmountMicros field is set. */ @java.lang.Override public boolean hasBudgetAmountMicros() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The budget amount for this option.
       * 
* * optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The budgetAmountMicros. */ @java.lang.Override public long getBudgetAmountMicros() { return budgetAmountMicros_; } public static final int IMPACT_FIELD_NUMBER = 2; private com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact_; /** *
       * Output only. The impact estimate if budget is changed to amount
       * specified in this option.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impact field is set. */ @java.lang.Override public boolean hasImpact() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The impact estimate if budget is changed to amount
       * specified in this option.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact() { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } /** *
       * Output only. The impact estimate if budget is changed to amount
       * specified in this option.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } 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_ & 0x00000002) != 0)) { output.writeMessage(2, getImpact()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(3, budgetAmountMicros_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getImpact()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, budgetAmountMicros_); } 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption other = (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) obj; if (hasBudgetAmountMicros() != other.hasBudgetAmountMicros()) return false; if (hasBudgetAmountMicros()) { if (getBudgetAmountMicros() != other.getBudgetAmountMicros()) return false; } if (hasImpact() != other.hasImpact()) return false; if (hasImpact()) { if (!getImpact() .equals(other.getImpact())) 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 (hasBudgetAmountMicros()) { hash = (37 * hash) + BUDGET_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBudgetAmountMicros()); } if (hasImpact()) { hash = (37 * hash) + IMPACT_FIELD_NUMBER; hash = (53 * hash) + getImpact().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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; } /** *
       * The impact estimates for a given budget amount.
       * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.class, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getImpactFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; budgetAmountMicros_ = 0L; impact_ = null; if (impactBuilder_ != null) { impactBuilder_.dispose(); impactBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption build() { com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption result = new com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.budgetAmountMicros_ = budgetAmountMicros_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.impact_ = impactBuilder_ == null ? impact_ : impactBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.getDefaultInstance()) return this; if (other.hasBudgetAmountMicros()) { setBudgetAmountMicros(other.getBudgetAmountMicros()); } if (other.hasImpact()) { mergeImpact(other.getImpact()); } 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 18: { input.readMessage( getImpactFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { budgetAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 24 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 budgetAmountMicros_ ; /** *
         * Output only. The budget amount for this option.
         * 
* * optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the budgetAmountMicros field is set. */ @java.lang.Override public boolean hasBudgetAmountMicros() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Output only. The budget amount for this option.
         * 
* * optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The budgetAmountMicros. */ @java.lang.Override public long getBudgetAmountMicros() { return budgetAmountMicros_; } /** *
         * Output only. The budget amount for this option.
         * 
* * optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The budgetAmountMicros to set. * @return This builder for chaining. */ public Builder setBudgetAmountMicros(long value) { budgetAmountMicros_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Output only. The budget amount for this option.
         * 
* * optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearBudgetAmountMicros() { bitField0_ = (bitField0_ & ~0x00000001); budgetAmountMicros_ = 0L; onChanged(); return this; } private com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder> impactBuilder_; /** *
         * Output only. The impact estimate if budget is changed to amount
         * specified in this option.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impact field is set. */ public boolean hasImpact() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Output only. The impact estimate if budget is changed to amount
         * specified in this option.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact() { if (impactBuilder_ == null) { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } else { return impactBuilder_.getMessage(); } } /** *
         * Output only. The impact estimate if budget is changed to amount
         * specified in this option.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (value == null) { throw new NullPointerException(); } impact_ = value; } else { impactBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Output only. The impact estimate if budget is changed to amount
         * specified in this option.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact( com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder builderForValue) { if (impactBuilder_ == null) { impact_ = builderForValue.build(); } else { impactBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Output only. The impact estimate if budget is changed to amount
         * specified in this option.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeImpact(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && impact_ != null && impact_ != com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance()) { getImpactBuilder().mergeFrom(value); } else { impact_ = value; } } else { impactBuilder_.mergeFrom(value); } if (impact_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Output only. The impact estimate if budget is changed to amount
         * specified in this option.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearImpact() { bitField0_ = (bitField0_ & ~0x00000002); impact_ = null; if (impactBuilder_ != null) { impactBuilder_.dispose(); impactBuilder_ = null; } onChanged(); return this; } /** *
         * Output only. The impact estimate if budget is changed to amount
         * specified in this option.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder getImpactBuilder() { bitField0_ |= 0x00000002; onChanged(); return getImpactFieldBuilder().getBuilder(); } /** *
         * Output only. The impact estimate if budget is changed to amount
         * specified in this option.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { if (impactBuilder_ != null) { return impactBuilder_.getMessageOrBuilder(); } else { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } } /** *
         * Output only. The impact estimate if budget is changed to amount
         * specified in this option.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder> getImpactFieldBuilder() { if (impactBuilder_ == null) { impactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder>( getImpact(), getParentForChildren(), isClean()); impact_ = null; } return impactBuilder_; } @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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) private static final com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption(); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int CURRENT_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 7; private long currentBudgetAmountMicros_ = 0L; /** *
     * Output only. The current budget amount in micros.
     * 
* * optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the currentBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasCurrentBudgetAmountMicros() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The current budget amount in micros.
     * 
* * optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentBudgetAmountMicros. */ @java.lang.Override public long getCurrentBudgetAmountMicros() { return currentBudgetAmountMicros_; } public static final int RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 8; private long recommendedBudgetAmountMicros_ = 0L; /** *
     * Output only. The recommended budget amount in micros.
     * 
* * optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasRecommendedBudgetAmountMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. The recommended budget amount in micros.
     * 
* * optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedBudgetAmountMicros. */ @java.lang.Override public long getRecommendedBudgetAmountMicros() { return recommendedBudgetAmountMicros_; } public static final int BUDGET_OPTIONS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List budgetOptions_; /** *
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getBudgetOptionsList() { return budgetOptions_; } /** *
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getBudgetOptionsOrBuilderList() { return budgetOptions_; } /** *
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getBudgetOptionsCount() { return budgetOptions_.size(); } /** *
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getBudgetOptions(int index) { return budgetOptions_.get(index); } /** *
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder getBudgetOptionsOrBuilder( int index) { return budgetOptions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < budgetOptions_.size(); i++) { output.writeMessage(3, budgetOptions_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(7, currentBudgetAmountMicros_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(8, recommendedBudgetAmountMicros_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < budgetOptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, budgetOptions_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, currentBudgetAmountMicros_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, recommendedBudgetAmountMicros_); } 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.v16.resources.Recommendation.CampaignBudgetRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) obj; if (hasCurrentBudgetAmountMicros() != other.hasCurrentBudgetAmountMicros()) return false; if (hasCurrentBudgetAmountMicros()) { if (getCurrentBudgetAmountMicros() != other.getCurrentBudgetAmountMicros()) return false; } if (hasRecommendedBudgetAmountMicros() != other.hasRecommendedBudgetAmountMicros()) return false; if (hasRecommendedBudgetAmountMicros()) { if (getRecommendedBudgetAmountMicros() != other.getRecommendedBudgetAmountMicros()) return false; } if (!getBudgetOptionsList() .equals(other.getBudgetOptionsList())) 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 (hasCurrentBudgetAmountMicros()) { hash = (37 * hash) + CURRENT_BUDGET_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCurrentBudgetAmountMicros()); } if (hasRecommendedBudgetAmountMicros()) { hash = (37 * hash) + RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRecommendedBudgetAmountMicros()); } if (getBudgetOptionsCount() > 0) { hash = (37 * hash) + BUDGET_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getBudgetOptionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation 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; } /** *
     * The budget recommendation for budget constrained campaigns.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; currentBudgetAmountMicros_ = 0L; recommendedBudgetAmountMicros_ = 0L; if (budgetOptionsBuilder_ == null) { budgetOptions_ = java.util.Collections.emptyList(); } else { budgetOptions_ = null; budgetOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation result) { if (budgetOptionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { budgetOptions_ = java.util.Collections.unmodifiableList(budgetOptions_); bitField0_ = (bitField0_ & ~0x00000004); } result.budgetOptions_ = budgetOptions_; } else { result.budgetOptions_ = budgetOptionsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.currentBudgetAmountMicros_ = currentBudgetAmountMicros_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.recommendedBudgetAmountMicros_ = recommendedBudgetAmountMicros_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance()) return this; if (other.hasCurrentBudgetAmountMicros()) { setCurrentBudgetAmountMicros(other.getCurrentBudgetAmountMicros()); } if (other.hasRecommendedBudgetAmountMicros()) { setRecommendedBudgetAmountMicros(other.getRecommendedBudgetAmountMicros()); } if (budgetOptionsBuilder_ == null) { if (!other.budgetOptions_.isEmpty()) { if (budgetOptions_.isEmpty()) { budgetOptions_ = other.budgetOptions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureBudgetOptionsIsMutable(); budgetOptions_.addAll(other.budgetOptions_); } onChanged(); } } else { if (!other.budgetOptions_.isEmpty()) { if (budgetOptionsBuilder_.isEmpty()) { budgetOptionsBuilder_.dispose(); budgetOptionsBuilder_ = null; budgetOptions_ = other.budgetOptions_; bitField0_ = (bitField0_ & ~0x00000004); budgetOptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBudgetOptionsFieldBuilder() : null; } else { budgetOptionsBuilder_.addAllMessages(other.budgetOptions_); } } } 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 26: { com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption m = input.readMessage( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.parser(), extensionRegistry); if (budgetOptionsBuilder_ == null) { ensureBudgetOptionsIsMutable(); budgetOptions_.add(m); } else { budgetOptionsBuilder_.addMessage(m); } break; } // case 26 case 56: { currentBudgetAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 56 case 64: { recommendedBudgetAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 64 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 currentBudgetAmountMicros_ ; /** *
       * Output only. The current budget amount in micros.
       * 
* * optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the currentBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasCurrentBudgetAmountMicros() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The current budget amount in micros.
       * 
* * optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentBudgetAmountMicros. */ @java.lang.Override public long getCurrentBudgetAmountMicros() { return currentBudgetAmountMicros_; } /** *
       * Output only. The current budget amount in micros.
       * 
* * optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The currentBudgetAmountMicros to set. * @return This builder for chaining. */ public Builder setCurrentBudgetAmountMicros(long value) { currentBudgetAmountMicros_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The current budget amount in micros.
       * 
* * optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCurrentBudgetAmountMicros() { bitField0_ = (bitField0_ & ~0x00000001); currentBudgetAmountMicros_ = 0L; onChanged(); return this; } private long recommendedBudgetAmountMicros_ ; /** *
       * Output only. The recommended budget amount in micros.
       * 
* * optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasRecommendedBudgetAmountMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The recommended budget amount in micros.
       * 
* * optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedBudgetAmountMicros. */ @java.lang.Override public long getRecommendedBudgetAmountMicros() { return recommendedBudgetAmountMicros_; } /** *
       * Output only. The recommended budget amount in micros.
       * 
* * optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedBudgetAmountMicros to set. * @return This builder for chaining. */ public Builder setRecommendedBudgetAmountMicros(long value) { recommendedBudgetAmountMicros_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The recommended budget amount in micros.
       * 
* * optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedBudgetAmountMicros() { bitField0_ = (bitField0_ & ~0x00000002); recommendedBudgetAmountMicros_ = 0L; onChanged(); return this; } private java.util.List budgetOptions_ = java.util.Collections.emptyList(); private void ensureBudgetOptionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { budgetOptions_ = new java.util.ArrayList(budgetOptions_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder> budgetOptionsBuilder_; /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getBudgetOptionsList() { if (budgetOptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(budgetOptions_); } else { return budgetOptionsBuilder_.getMessageList(); } } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getBudgetOptionsCount() { if (budgetOptionsBuilder_ == null) { return budgetOptions_.size(); } else { return budgetOptionsBuilder_.getCount(); } } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getBudgetOptions(int index) { if (budgetOptionsBuilder_ == null) { return budgetOptions_.get(index); } else { return budgetOptionsBuilder_.getMessage(index); } } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBudgetOptions( int index, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption value) { if (budgetOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBudgetOptionsIsMutable(); budgetOptions_.set(index, value); onChanged(); } else { budgetOptionsBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBudgetOptions( int index, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder builderForValue) { if (budgetOptionsBuilder_ == null) { ensureBudgetOptionsIsMutable(); budgetOptions_.set(index, builderForValue.build()); onChanged(); } else { budgetOptionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addBudgetOptions(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption value) { if (budgetOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBudgetOptionsIsMutable(); budgetOptions_.add(value); onChanged(); } else { budgetOptionsBuilder_.addMessage(value); } return this; } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addBudgetOptions( int index, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption value) { if (budgetOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBudgetOptionsIsMutable(); budgetOptions_.add(index, value); onChanged(); } else { budgetOptionsBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addBudgetOptions( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder builderForValue) { if (budgetOptionsBuilder_ == null) { ensureBudgetOptionsIsMutable(); budgetOptions_.add(builderForValue.build()); onChanged(); } else { budgetOptionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addBudgetOptions( int index, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder builderForValue) { if (budgetOptionsBuilder_ == null) { ensureBudgetOptionsIsMutable(); budgetOptions_.add(index, builderForValue.build()); onChanged(); } else { budgetOptionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllBudgetOptions( java.lang.Iterable values) { if (budgetOptionsBuilder_ == null) { ensureBudgetOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, budgetOptions_); onChanged(); } else { budgetOptionsBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearBudgetOptions() { if (budgetOptionsBuilder_ == null) { budgetOptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { budgetOptionsBuilder_.clear(); } return this; } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeBudgetOptions(int index) { if (budgetOptionsBuilder_ == null) { ensureBudgetOptionsIsMutable(); budgetOptions_.remove(index); onChanged(); } else { budgetOptionsBuilder_.remove(index); } return this; } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder getBudgetOptionsBuilder( int index) { return getBudgetOptionsFieldBuilder().getBuilder(index); } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder getBudgetOptionsOrBuilder( int index) { if (budgetOptionsBuilder_ == null) { return budgetOptions_.get(index); } else { return budgetOptionsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getBudgetOptionsOrBuilderList() { if (budgetOptionsBuilder_ != null) { return budgetOptionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(budgetOptions_); } } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder addBudgetOptionsBuilder() { return getBudgetOptionsFieldBuilder().addBuilder( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.getDefaultInstance()); } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder addBudgetOptionsBuilder( int index) { return getBudgetOptionsFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.getDefaultInstance()); } /** *
       * Output only. The budget amounts and associated impact estimates for some
       * values of possible budget amounts.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getBudgetOptionsBuilderList() { return getBudgetOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder> getBudgetOptionsFieldBuilder() { if (budgetOptionsBuilder_ == null) { budgetOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder>( budgetOptions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); budgetOptions_ = null; } return budgetOptionsBuilder_; } @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.v16.resources.Recommendation.CampaignBudgetRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeywordRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The recommended keyword.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keyword field is set. */ boolean hasKeyword(); /** *
     * Output only. The recommended keyword.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ com.google.ads.googleads.v16.common.KeywordInfo getKeyword(); /** *
     * Output only. The recommended keyword.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder(); /** *
     * Output only. A list of search terms this keyword matches. The same search
     * term may be repeated for multiple keywords.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getSearchTermsList(); /** *
     * Output only. A list of search terms this keyword matches. The same search
     * term may be repeated for multiple keywords.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getSearchTerms(int index); /** *
     * Output only. A list of search terms this keyword matches. The same search
     * term may be repeated for multiple keywords.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getSearchTermsCount(); /** *
     * Output only. A list of search terms this keyword matches. The same search
     * term may be repeated for multiple keywords.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getSearchTermsOrBuilderList(); /** *
     * Output only. A list of search terms this keyword matches. The same search
     * term may be repeated for multiple keywords.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder getSearchTermsOrBuilder( int index); /** *
     * Output only. The recommended CPC (cost-per-click) bid.
     * 
* * optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedCpcBidMicros field is set. */ boolean hasRecommendedCpcBidMicros(); /** *
     * Output only. The recommended CPC (cost-per-click) bid.
     * 
* * optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedCpcBidMicros. */ long getRecommendedCpcBidMicros(); } /** *
   * The keyword recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation} */ public static final class KeywordRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) KeywordRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use KeywordRecommendation.newBuilder() to construct. private KeywordRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeywordRecommendation() { searchTerms_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new KeywordRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.Builder.class); } public interface SearchTermOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm) com.google.protobuf.MessageOrBuilder { /** *
       * Output only. The text of the search term.
       * 
* * string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The text. */ java.lang.String getText(); /** *
       * Output only. The text of the search term.
       * 
* * string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); /** *
       * Output only. Estimated number of historical weekly searches for this
       * search term.
       * 
* * int64 estimated_weekly_search_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The estimatedWeeklySearchCount. */ long getEstimatedWeeklySearchCount(); } /** *
     * Information about a search term as related to a keyword recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm} */ public static final class SearchTerm extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm) SearchTermOrBuilder { private static final long serialVersionUID = 0L; // Use SearchTerm.newBuilder() to construct. private SearchTerm(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchTerm() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SearchTerm(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_SearchTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_SearchTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder.class); } public static final int TEXT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object text_ = ""; /** *
       * Output only. The text of the search term.
       * 
* * string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The text. */ @java.lang.Override public java.lang.String getText() { java.lang.Object ref = text_; 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(); text_ = s; return s; } } /** *
       * Output only. The text of the search term.
       * 
* * string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ESTIMATED_WEEKLY_SEARCH_COUNT_FIELD_NUMBER = 2; private long estimatedWeeklySearchCount_ = 0L; /** *
       * Output only. Estimated number of historical weekly searches for this
       * search term.
       * 
* * int64 estimated_weekly_search_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The estimatedWeeklySearchCount. */ @java.lang.Override public long getEstimatedWeeklySearchCount() { return estimatedWeeklySearchCount_; } 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(text_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); } if (estimatedWeeklySearchCount_ != 0L) { output.writeInt64(2, estimatedWeeklySearchCount_); } 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(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); } if (estimatedWeeklySearchCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, estimatedWeeklySearchCount_); } 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm other = (com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm) obj; if (!getText() .equals(other.getText())) return false; if (getEstimatedWeeklySearchCount() != other.getEstimatedWeeklySearchCount()) 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(); hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + ESTIMATED_WEEKLY_SEARCH_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEstimatedWeeklySearchCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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; } /** *
       * Information about a search term as related to a keyword recommendation.
       * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm) com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_SearchTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_SearchTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; text_ = ""; estimatedWeeklySearchCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_SearchTerm_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm build() { com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm result = new com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.text_ = text_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.estimatedWeeklySearchCount_ = estimatedWeeklySearchCount_; } } @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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.getDefaultInstance()) return this; if (!other.getText().isEmpty()) { text_ = other.text_; bitField0_ |= 0x00000001; onChanged(); } if (other.getEstimatedWeeklySearchCount() != 0L) { setEstimatedWeeklySearchCount(other.getEstimatedWeeklySearchCount()); } 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: { text_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { estimatedWeeklySearchCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object text_ = ""; /** *
         * Output only. The text of the search term.
         * 
* * string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Output only. The text of the search term.
         * 
* * string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Output only. The text of the search term.
         * 
* * string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The text to set. * @return This builder for chaining. */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } text_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Output only. The text of the search term.
         * 
* * string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearText() { text_ = getDefaultInstance().getText(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * Output only. The text of the search term.
         * 
* * string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); text_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long estimatedWeeklySearchCount_ ; /** *
         * Output only. Estimated number of historical weekly searches for this
         * search term.
         * 
* * int64 estimated_weekly_search_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The estimatedWeeklySearchCount. */ @java.lang.Override public long getEstimatedWeeklySearchCount() { return estimatedWeeklySearchCount_; } /** *
         * Output only. Estimated number of historical weekly searches for this
         * search term.
         * 
* * int64 estimated_weekly_search_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The estimatedWeeklySearchCount to set. * @return This builder for chaining. */ public Builder setEstimatedWeeklySearchCount(long value) { estimatedWeeklySearchCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Output only. Estimated number of historical weekly searches for this
         * search term.
         * 
* * int64 estimated_weekly_search_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearEstimatedWeeklySearchCount() { bitField0_ = (bitField0_ & ~0x00000002); estimatedWeeklySearchCount_ = 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm) private static final com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm(); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int KEYWORD_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.common.KeywordInfo keyword_; /** *
     * Output only. The recommended keyword.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keyword field is set. */ @java.lang.Override public boolean hasKeyword() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The recommended keyword.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ @java.lang.Override public com.google.ads.googleads.v16.common.KeywordInfo getKeyword() { return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_; } /** *
     * Output only. The recommended keyword.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder() { return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_; } public static final int SEARCH_TERMS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List searchTerms_; /** *
     * Output only. A list of search terms this keyword matches. The same search
     * term may be repeated for multiple keywords.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getSearchTermsList() { return searchTerms_; } /** *
     * Output only. A list of search terms this keyword matches. The same search
     * term may be repeated for multiple keywords.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getSearchTermsOrBuilderList() { return searchTerms_; } /** *
     * Output only. A list of search terms this keyword matches. The same search
     * term may be repeated for multiple keywords.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getSearchTermsCount() { return searchTerms_.size(); } /** *
     * Output only. A list of search terms this keyword matches. The same search
     * term may be repeated for multiple keywords.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getSearchTerms(int index) { return searchTerms_.get(index); } /** *
     * Output only. A list of search terms this keyword matches. The same search
     * term may be repeated for multiple keywords.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder getSearchTermsOrBuilder( int index) { return searchTerms_.get(index); } public static final int RECOMMENDED_CPC_BID_MICROS_FIELD_NUMBER = 3; private long recommendedCpcBidMicros_ = 0L; /** *
     * Output only. The recommended CPC (cost-per-click) bid.
     * 
* * optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedCpcBidMicros field is set. */ @java.lang.Override public boolean hasRecommendedCpcBidMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. The recommended CPC (cost-per-click) bid.
     * 
* * optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedCpcBidMicros. */ @java.lang.Override public long getRecommendedCpcBidMicros() { return recommendedCpcBidMicros_; } 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.writeMessage(1, getKeyword()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(3, recommendedCpcBidMicros_); } for (int i = 0; i < searchTerms_.size(); i++) { output.writeMessage(4, searchTerms_.get(i)); } 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 .computeMessageSize(1, getKeyword()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, recommendedCpcBidMicros_); } for (int i = 0; i < searchTerms_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, searchTerms_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) obj; if (hasKeyword() != other.hasKeyword()) return false; if (hasKeyword()) { if (!getKeyword() .equals(other.getKeyword())) return false; } if (!getSearchTermsList() .equals(other.getSearchTermsList())) return false; if (hasRecommendedCpcBidMicros() != other.hasRecommendedCpcBidMicros()) return false; if (hasRecommendedCpcBidMicros()) { if (getRecommendedCpcBidMicros() != other.getRecommendedCpcBidMicros()) 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 (hasKeyword()) { hash = (37 * hash) + KEYWORD_FIELD_NUMBER; hash = (53 * hash) + getKeyword().hashCode(); } if (getSearchTermsCount() > 0) { hash = (37 * hash) + SEARCH_TERMS_FIELD_NUMBER; hash = (53 * hash) + getSearchTermsList().hashCode(); } if (hasRecommendedCpcBidMicros()) { hash = (37 * hash) + RECOMMENDED_CPC_BID_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRecommendedCpcBidMicros()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation 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; } /** *
     * The keyword recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKeywordFieldBuilder(); getSearchTermsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; keyword_ = null; if (keywordBuilder_ != null) { keywordBuilder_.dispose(); keywordBuilder_ = null; } if (searchTermsBuilder_ == null) { searchTerms_ = java.util.Collections.emptyList(); } else { searchTerms_ = null; searchTermsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); recommendedCpcBidMicros_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation result) { if (searchTermsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { searchTerms_ = java.util.Collections.unmodifiableList(searchTerms_); bitField0_ = (bitField0_ & ~0x00000002); } result.searchTerms_ = searchTerms_; } else { result.searchTerms_ = searchTermsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.keyword_ = keywordBuilder_ == null ? keyword_ : keywordBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.recommendedCpcBidMicros_ = recommendedCpcBidMicros_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.getDefaultInstance()) return this; if (other.hasKeyword()) { mergeKeyword(other.getKeyword()); } if (searchTermsBuilder_ == null) { if (!other.searchTerms_.isEmpty()) { if (searchTerms_.isEmpty()) { searchTerms_ = other.searchTerms_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSearchTermsIsMutable(); searchTerms_.addAll(other.searchTerms_); } onChanged(); } } else { if (!other.searchTerms_.isEmpty()) { if (searchTermsBuilder_.isEmpty()) { searchTermsBuilder_.dispose(); searchTermsBuilder_ = null; searchTerms_ = other.searchTerms_; bitField0_ = (bitField0_ & ~0x00000002); searchTermsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSearchTermsFieldBuilder() : null; } else { searchTermsBuilder_.addAllMessages(other.searchTerms_); } } } if (other.hasRecommendedCpcBidMicros()) { setRecommendedCpcBidMicros(other.getRecommendedCpcBidMicros()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getKeywordFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 24: { recommendedCpcBidMicros_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm m = input.readMessage( com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.parser(), extensionRegistry); if (searchTermsBuilder_ == null) { ensureSearchTermsIsMutable(); searchTerms_.add(m); } else { searchTermsBuilder_.addMessage(m); } break; } // case 34 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 com.google.ads.googleads.v16.common.KeywordInfo keyword_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder> keywordBuilder_; /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keyword field is set. */ public boolean hasKeyword() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ public com.google.ads.googleads.v16.common.KeywordInfo getKeyword() { if (keywordBuilder_ == null) { return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_; } else { return keywordBuilder_.getMessage(); } } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword(com.google.ads.googleads.v16.common.KeywordInfo value) { if (keywordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyword_ = value; } else { keywordBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword( com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) { if (keywordBuilder_ == null) { keyword_ = builderForValue.build(); } else { keywordBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeKeyword(com.google.ads.googleads.v16.common.KeywordInfo value) { if (keywordBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && keyword_ != null && keyword_ != com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance()) { getKeywordBuilder().mergeFrom(value); } else { keyword_ = value; } } else { keywordBuilder_.mergeFrom(value); } if (keyword_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearKeyword() { bitField0_ = (bitField0_ & ~0x00000001); keyword_ = null; if (keywordBuilder_ != null) { keywordBuilder_.dispose(); keywordBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfo.Builder getKeywordBuilder() { bitField0_ |= 0x00000001; onChanged(); return getKeywordFieldBuilder().getBuilder(); } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder() { if (keywordBuilder_ != null) { return keywordBuilder_.getMessageOrBuilder(); } else { return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_; } } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder> getKeywordFieldBuilder() { if (keywordBuilder_ == null) { keywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>( getKeyword(), getParentForChildren(), isClean()); keyword_ = null; } return keywordBuilder_; } private java.util.List searchTerms_ = java.util.Collections.emptyList(); private void ensureSearchTermsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { searchTerms_ = new java.util.ArrayList(searchTerms_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder> searchTermsBuilder_; /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getSearchTermsList() { if (searchTermsBuilder_ == null) { return java.util.Collections.unmodifiableList(searchTerms_); } else { return searchTermsBuilder_.getMessageList(); } } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getSearchTermsCount() { if (searchTermsBuilder_ == null) { return searchTerms_.size(); } else { return searchTermsBuilder_.getCount(); } } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getSearchTerms(int index) { if (searchTermsBuilder_ == null) { return searchTerms_.get(index); } else { return searchTermsBuilder_.getMessage(index); } } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSearchTerms( int index, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm value) { if (searchTermsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSearchTermsIsMutable(); searchTerms_.set(index, value); onChanged(); } else { searchTermsBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSearchTerms( int index, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder builderForValue) { if (searchTermsBuilder_ == null) { ensureSearchTermsIsMutable(); searchTerms_.set(index, builderForValue.build()); onChanged(); } else { searchTermsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addSearchTerms(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm value) { if (searchTermsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSearchTermsIsMutable(); searchTerms_.add(value); onChanged(); } else { searchTermsBuilder_.addMessage(value); } return this; } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addSearchTerms( int index, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm value) { if (searchTermsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSearchTermsIsMutable(); searchTerms_.add(index, value); onChanged(); } else { searchTermsBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addSearchTerms( com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder builderForValue) { if (searchTermsBuilder_ == null) { ensureSearchTermsIsMutable(); searchTerms_.add(builderForValue.build()); onChanged(); } else { searchTermsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addSearchTerms( int index, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder builderForValue) { if (searchTermsBuilder_ == null) { ensureSearchTermsIsMutable(); searchTerms_.add(index, builderForValue.build()); onChanged(); } else { searchTermsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllSearchTerms( java.lang.Iterable values) { if (searchTermsBuilder_ == null) { ensureSearchTermsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, searchTerms_); onChanged(); } else { searchTermsBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSearchTerms() { if (searchTermsBuilder_ == null) { searchTerms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { searchTermsBuilder_.clear(); } return this; } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeSearchTerms(int index) { if (searchTermsBuilder_ == null) { ensureSearchTermsIsMutable(); searchTerms_.remove(index); onChanged(); } else { searchTermsBuilder_.remove(index); } return this; } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder getSearchTermsBuilder( int index) { return getSearchTermsFieldBuilder().getBuilder(index); } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder getSearchTermsOrBuilder( int index) { if (searchTermsBuilder_ == null) { return searchTerms_.get(index); } else { return searchTermsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getSearchTermsOrBuilderList() { if (searchTermsBuilder_ != null) { return searchTermsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(searchTerms_); } } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder addSearchTermsBuilder() { return getSearchTermsFieldBuilder().addBuilder( com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.getDefaultInstance()); } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder addSearchTermsBuilder( int index) { return getSearchTermsFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.getDefaultInstance()); } /** *
       * Output only. A list of search terms this keyword matches. The same search
       * term may be repeated for multiple keywords.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getSearchTermsBuilderList() { return getSearchTermsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder> getSearchTermsFieldBuilder() { if (searchTermsBuilder_ == null) { searchTermsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder>( searchTerms_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); searchTerms_ = null; } return searchTermsBuilder_; } private long recommendedCpcBidMicros_ ; /** *
       * Output only. The recommended CPC (cost-per-click) bid.
       * 
* * optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedCpcBidMicros field is set. */ @java.lang.Override public boolean hasRecommendedCpcBidMicros() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Output only. The recommended CPC (cost-per-click) bid.
       * 
* * optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedCpcBidMicros. */ @java.lang.Override public long getRecommendedCpcBidMicros() { return recommendedCpcBidMicros_; } /** *
       * Output only. The recommended CPC (cost-per-click) bid.
       * 
* * optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedCpcBidMicros to set. * @return This builder for chaining. */ public Builder setRecommendedCpcBidMicros(long value) { recommendedCpcBidMicros_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. The recommended CPC (cost-per-click) bid.
       * 
* * optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedCpcBidMicros() { bitField0_ = (bitField0_ & ~0x00000004); recommendedCpcBidMicros_ = 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.v16.resources.Recommendation.KeywordRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TextAdRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ad field is set. */ boolean hasAd(); /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ com.google.ads.googleads.v16.resources.Ad getAd(); /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder(); /** *
     * Output only. Creation date of the recommended ad.
     * YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the creationDate field is set. */ boolean hasCreationDate(); /** *
     * Output only. Creation date of the recommended ad.
     * YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The creationDate. */ java.lang.String getCreationDate(); /** *
     * Output only. Creation date of the recommended ad.
     * YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for creationDate. */ com.google.protobuf.ByteString getCreationDateBytes(); /** *
     * Output only. Date, if present, is the earliest when the recommendation
     * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the autoApplyDate field is set. */ boolean hasAutoApplyDate(); /** *
     * Output only. Date, if present, is the earliest when the recommendation
     * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The autoApplyDate. */ java.lang.String getAutoApplyDate(); /** *
     * Output only. Date, if present, is the earliest when the recommendation
     * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for autoApplyDate. */ com.google.protobuf.ByteString getAutoApplyDateBytes(); } /** *
   * The text ad recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation} */ public static final class TextAdRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) TextAdRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use TextAdRecommendation.newBuilder() to construct. private TextAdRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TextAdRecommendation() { creationDate_ = ""; autoApplyDate_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TextAdRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TextAdRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TextAdRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.Builder.class); } private int bitField0_; public static final int AD_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Ad ad_; /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ad field is set. */ @java.lang.Override public boolean hasAd() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Ad getAd() { return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_; } /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder() { return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_; } public static final int CREATION_DATE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object creationDate_ = ""; /** *
     * Output only. Creation date of the recommended ad.
     * YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the creationDate field is set. */ @java.lang.Override public boolean hasCreationDate() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. Creation date of the recommended ad.
     * YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The creationDate. */ @java.lang.Override public java.lang.String getCreationDate() { java.lang.Object ref = creationDate_; 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(); creationDate_ = s; return s; } } /** *
     * Output only. Creation date of the recommended ad.
     * YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for creationDate. */ @java.lang.Override public com.google.protobuf.ByteString getCreationDateBytes() { java.lang.Object ref = creationDate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); creationDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUTO_APPLY_DATE_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object autoApplyDate_ = ""; /** *
     * Output only. Date, if present, is the earliest when the recommendation
     * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the autoApplyDate field is set. */ @java.lang.Override public boolean hasAutoApplyDate() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Output only. Date, if present, is the earliest when the recommendation
     * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The autoApplyDate. */ @java.lang.Override public java.lang.String getAutoApplyDate() { java.lang.Object ref = autoApplyDate_; 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(); autoApplyDate_ = s; return s; } } /** *
     * Output only. Date, if present, is the earliest when the recommendation
     * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for autoApplyDate. */ @java.lang.Override public com.google.protobuf.ByteString getAutoApplyDateBytes() { java.lang.Object ref = autoApplyDate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); autoApplyDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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.writeMessage(1, getAd()); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, creationDate_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, autoApplyDate_); } 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 .computeMessageSize(1, getAd()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, creationDate_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, autoApplyDate_); } 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.v16.resources.Recommendation.TextAdRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) obj; if (hasAd() != other.hasAd()) return false; if (hasAd()) { if (!getAd() .equals(other.getAd())) return false; } if (hasCreationDate() != other.hasCreationDate()) return false; if (hasCreationDate()) { if (!getCreationDate() .equals(other.getCreationDate())) return false; } if (hasAutoApplyDate() != other.hasAutoApplyDate()) return false; if (hasAutoApplyDate()) { if (!getAutoApplyDate() .equals(other.getAutoApplyDate())) 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 (hasAd()) { hash = (37 * hash) + AD_FIELD_NUMBER; hash = (53 * hash) + getAd().hashCode(); } if (hasCreationDate()) { hash = (37 * hash) + CREATION_DATE_FIELD_NUMBER; hash = (53 * hash) + getCreationDate().hashCode(); } if (hasAutoApplyDate()) { hash = (37 * hash) + AUTO_APPLY_DATE_FIELD_NUMBER; hash = (53 * hash) + getAutoApplyDate().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation 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; } /** *
     * The text ad recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TextAdRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TextAdRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAdFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ad_ = null; if (adBuilder_ != null) { adBuilder_.dispose(); adBuilder_ = null; } creationDate_ = ""; autoApplyDate_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TextAdRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.ad_ = adBuilder_ == null ? ad_ : adBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.creationDate_ = creationDate_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.autoApplyDate_ = autoApplyDate_; to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.getDefaultInstance()) return this; if (other.hasAd()) { mergeAd(other.getAd()); } if (other.hasCreationDate()) { creationDate_ = other.creationDate_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasAutoApplyDate()) { autoApplyDate_ = other.autoApplyDate_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getAdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 34: { creationDate_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 34 case 42: { autoApplyDate_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 42 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 com.google.ads.googleads.v16.resources.Ad ad_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> adBuilder_; /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ad field is set. */ public boolean hasAd() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ public com.google.ads.googleads.v16.resources.Ad getAd() { if (adBuilder_ == null) { return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_; } else { return adBuilder_.getMessage(); } } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAd(com.google.ads.googleads.v16.resources.Ad value) { if (adBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ad_ = value; } else { adBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAd( com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) { if (adBuilder_ == null) { ad_ = builderForValue.build(); } else { adBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAd(com.google.ads.googleads.v16.resources.Ad value) { if (adBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && ad_ != null && ad_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) { getAdBuilder().mergeFrom(value); } else { ad_ = value; } } else { adBuilder_.mergeFrom(value); } if (ad_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAd() { bitField0_ = (bitField0_ & ~0x00000001); ad_ = null; if (adBuilder_ != null) { adBuilder_.dispose(); adBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Ad.Builder getAdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAdFieldBuilder().getBuilder(); } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder() { if (adBuilder_ != null) { return adBuilder_.getMessageOrBuilder(); } else { return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_; } } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> getAdFieldBuilder() { if (adBuilder_ == null) { adBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>( getAd(), getParentForChildren(), isClean()); ad_ = null; } return adBuilder_; } private java.lang.Object creationDate_ = ""; /** *
       * Output only. Creation date of the recommended ad.
       * YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the creationDate field is set. */ public boolean hasCreationDate() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. Creation date of the recommended ad.
       * YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The creationDate. */ public java.lang.String getCreationDate() { java.lang.Object ref = creationDate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creationDate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. Creation date of the recommended ad.
       * YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for creationDate. */ public com.google.protobuf.ByteString getCreationDateBytes() { java.lang.Object ref = creationDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); creationDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. Creation date of the recommended ad.
       * YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The creationDate to set. * @return This builder for chaining. */ public Builder setCreationDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } creationDate_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Creation date of the recommended ad.
       * YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCreationDate() { creationDate_ = getDefaultInstance().getCreationDate(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. Creation date of the recommended ad.
       * YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for creationDate to set. * @return This builder for chaining. */ public Builder setCreationDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); creationDate_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object autoApplyDate_ = ""; /** *
       * Output only. Date, if present, is the earliest when the recommendation
       * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the autoApplyDate field is set. */ public boolean hasAutoApplyDate() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Output only. Date, if present, is the earliest when the recommendation
       * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The autoApplyDate. */ public java.lang.String getAutoApplyDate() { java.lang.Object ref = autoApplyDate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); autoApplyDate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. Date, if present, is the earliest when the recommendation
       * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for autoApplyDate. */ public com.google.protobuf.ByteString getAutoApplyDateBytes() { java.lang.Object ref = autoApplyDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); autoApplyDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. Date, if present, is the earliest when the recommendation
       * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The autoApplyDate to set. * @return This builder for chaining. */ public Builder setAutoApplyDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } autoApplyDate_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. Date, if present, is the earliest when the recommendation
       * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAutoApplyDate() { autoApplyDate_ = getDefaultInstance().getAutoApplyDate(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Output only. Date, if present, is the earliest when the recommendation
       * will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for autoApplyDate to set. * @return This builder for chaining. */ public Builder setAutoApplyDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); autoApplyDate_ = value; bitField0_ |= 0x00000004; 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.v16.resources.Recommendation.TextAdRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TargetCpaOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The available goals and corresponding options for Target CPA
     * strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getOptionsList(); /** *
     * Output only. The available goals and corresponding options for Target CPA
     * strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getOptions(int index); /** *
     * Output only. The available goals and corresponding options for Target CPA
     * strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getOptionsCount(); /** *
     * Output only. The available goals and corresponding options for Target CPA
     * strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getOptionsOrBuilderList(); /** *
     * Output only. The available goals and corresponding options for Target CPA
     * strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder getOptionsOrBuilder( int index); /** *
     * Output only. The recommended average CPA target. See required budget
     * amount and impact of using this recommendation in options list.
     * 
* * optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedTargetCpaMicros field is set. */ boolean hasRecommendedTargetCpaMicros(); /** *
     * Output only. The recommended average CPA target. See required budget
     * amount and impact of using this recommendation in options list.
     * 
* * optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetCpaMicros. */ long getRecommendedTargetCpaMicros(); } /** *
   * The Target CPA opt-in recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation} */ public static final class TargetCpaOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) TargetCpaOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use TargetCpaOptInRecommendation.newBuilder() to construct. private TargetCpaOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TargetCpaOptInRecommendation() { options_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TargetCpaOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.Builder.class); } public interface TargetCpaOptInRecommendationOptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) com.google.protobuf.MessageOrBuilder { /** *
       * Output only. The goal achieved by this option.
       * 
* * .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for goal. */ int getGoalValue(); /** *
       * Output only. The goal achieved by this option.
       * 
* * .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The goal. */ com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal getGoal(); /** *
       * Output only. Average CPA target.
       * 
* * optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetCpaMicros field is set. */ boolean hasTargetCpaMicros(); /** *
       * Output only. Average CPA target.
       * 
* * optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetCpaMicros. */ long getTargetCpaMicros(); /** *
       * Output only. The minimum campaign budget, in local currency for the
       * account, required to achieve the target CPA. Amount is specified in
       * micros, where one million is equivalent to one currency unit.
       * 
* * optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the requiredCampaignBudgetAmountMicros field is set. */ boolean hasRequiredCampaignBudgetAmountMicros(); /** *
       * Output only. The minimum campaign budget, in local currency for the
       * account, required to achieve the target CPA. Amount is specified in
       * micros, where one million is equivalent to one currency unit.
       * 
* * optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredCampaignBudgetAmountMicros. */ long getRequiredCampaignBudgetAmountMicros(); /** *
       * Output only. The impact estimate if this option is selected.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impact field is set. */ boolean hasImpact(); /** *
       * Output only. The impact estimate if this option is selected.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact(); /** *
       * Output only. The impact estimate if this option is selected.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder(); } /** *
     * The Target CPA opt-in option with impact estimate.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption} */ public static final class TargetCpaOptInRecommendationOption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) TargetCpaOptInRecommendationOptionOrBuilder { private static final long serialVersionUID = 0L; // Use TargetCpaOptInRecommendationOption.newBuilder() to construct. private TargetCpaOptInRecommendationOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TargetCpaOptInRecommendationOption() { goal_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TargetCpaOptInRecommendationOption(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.class, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder.class); } private int bitField0_; public static final int GOAL_FIELD_NUMBER = 1; private int goal_ = 0; /** *
       * Output only. The goal achieved by this option.
       * 
* * .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for goal. */ @java.lang.Override public int getGoalValue() { return goal_; } /** *
       * Output only. The goal achieved by this option.
       * 
* * .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The goal. */ @java.lang.Override public com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal getGoal() { com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal result = com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.forNumber(goal_); return result == null ? com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNRECOGNIZED : result; } public static final int TARGET_CPA_MICROS_FIELD_NUMBER = 5; private long targetCpaMicros_ = 0L; /** *
       * Output only. Average CPA target.
       * 
* * optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetCpaMicros field is set. */ @java.lang.Override public boolean hasTargetCpaMicros() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. Average CPA target.
       * 
* * optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetCpaMicros. */ @java.lang.Override public long getTargetCpaMicros() { return targetCpaMicros_; } public static final int REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 6; private long requiredCampaignBudgetAmountMicros_ = 0L; /** *
       * Output only. The minimum campaign budget, in local currency for the
       * account, required to achieve the target CPA. Amount is specified in
       * micros, where one million is equivalent to one currency unit.
       * 
* * optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the requiredCampaignBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasRequiredCampaignBudgetAmountMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The minimum campaign budget, in local currency for the
       * account, required to achieve the target CPA. Amount is specified in
       * micros, where one million is equivalent to one currency unit.
       * 
* * optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredCampaignBudgetAmountMicros. */ @java.lang.Override public long getRequiredCampaignBudgetAmountMicros() { return requiredCampaignBudgetAmountMicros_; } public static final int IMPACT_FIELD_NUMBER = 4; private com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact_; /** *
       * Output only. The impact estimate if this option is selected.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impact field is set. */ @java.lang.Override public boolean hasImpact() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Output only. The impact estimate if this option is selected.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact() { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } /** *
       * Output only. The impact estimate if this option is selected.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } 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 (goal_ != com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNSPECIFIED.getNumber()) { output.writeEnum(1, goal_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getImpact()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(5, targetCpaMicros_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(6, requiredCampaignBudgetAmountMicros_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (goal_ != com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, goal_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getImpact()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, targetCpaMicros_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, requiredCampaignBudgetAmountMicros_); } 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption other = (com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) obj; if (goal_ != other.goal_) return false; if (hasTargetCpaMicros() != other.hasTargetCpaMicros()) return false; if (hasTargetCpaMicros()) { if (getTargetCpaMicros() != other.getTargetCpaMicros()) return false; } if (hasRequiredCampaignBudgetAmountMicros() != other.hasRequiredCampaignBudgetAmountMicros()) return false; if (hasRequiredCampaignBudgetAmountMicros()) { if (getRequiredCampaignBudgetAmountMicros() != other.getRequiredCampaignBudgetAmountMicros()) return false; } if (hasImpact() != other.hasImpact()) return false; if (hasImpact()) { if (!getImpact() .equals(other.getImpact())) 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(); hash = (37 * hash) + GOAL_FIELD_NUMBER; hash = (53 * hash) + goal_; if (hasTargetCpaMicros()) { hash = (37 * hash) + TARGET_CPA_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTargetCpaMicros()); } if (hasRequiredCampaignBudgetAmountMicros()) { hash = (37 * hash) + REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRequiredCampaignBudgetAmountMicros()); } if (hasImpact()) { hash = (37 * hash) + IMPACT_FIELD_NUMBER; hash = (53 * hash) + getImpact().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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; } /** *
       * The Target CPA opt-in option with impact estimate.
       * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.class, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getImpactFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; goal_ = 0; targetCpaMicros_ = 0L; requiredCampaignBudgetAmountMicros_ = 0L; impact_ = null; if (impactBuilder_ != null) { impactBuilder_.dispose(); impactBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption build() { com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption result = new com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.goal_ = goal_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.targetCpaMicros_ = targetCpaMicros_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.requiredCampaignBudgetAmountMicros_ = requiredCampaignBudgetAmountMicros_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.impact_ = impactBuilder_ == null ? impact_ : impactBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.getDefaultInstance()) return this; if (other.goal_ != 0) { setGoalValue(other.getGoalValue()); } if (other.hasTargetCpaMicros()) { setTargetCpaMicros(other.getTargetCpaMicros()); } if (other.hasRequiredCampaignBudgetAmountMicros()) { setRequiredCampaignBudgetAmountMicros(other.getRequiredCampaignBudgetAmountMicros()); } if (other.hasImpact()) { mergeImpact(other.getImpact()); } 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 8: { goal_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 34: { input.readMessage( getImpactFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { targetCpaMicros_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 40 case 48: { requiredCampaignBudgetAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 48 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 goal_ = 0; /** *
         * Output only. The goal achieved by this option.
         * 
* * .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for goal. */ @java.lang.Override public int getGoalValue() { return goal_; } /** *
         * Output only. The goal achieved by this option.
         * 
* * .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for goal to set. * @return This builder for chaining. */ public Builder setGoalValue(int value) { goal_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Output only. The goal achieved by this option.
         * 
* * .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The goal. */ @java.lang.Override public com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal getGoal() { com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal result = com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.forNumber(goal_); return result == null ? com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNRECOGNIZED : result; } /** *
         * Output only. The goal achieved by this option.
         * 
* * .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The goal to set. * @return This builder for chaining. */ public Builder setGoal(com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; goal_ = value.getNumber(); onChanged(); return this; } /** *
         * Output only. The goal achieved by this option.
         * 
* * .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearGoal() { bitField0_ = (bitField0_ & ~0x00000001); goal_ = 0; onChanged(); return this; } private long targetCpaMicros_ ; /** *
         * Output only. Average CPA target.
         * 
* * optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetCpaMicros field is set. */ @java.lang.Override public boolean hasTargetCpaMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Output only. Average CPA target.
         * 
* * optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetCpaMicros. */ @java.lang.Override public long getTargetCpaMicros() { return targetCpaMicros_; } /** *
         * Output only. Average CPA target.
         * 
* * optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The targetCpaMicros to set. * @return This builder for chaining. */ public Builder setTargetCpaMicros(long value) { targetCpaMicros_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Output only. Average CPA target.
         * 
* * optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTargetCpaMicros() { bitField0_ = (bitField0_ & ~0x00000002); targetCpaMicros_ = 0L; onChanged(); return this; } private long requiredCampaignBudgetAmountMicros_ ; /** *
         * Output only. The minimum campaign budget, in local currency for the
         * account, required to achieve the target CPA. Amount is specified in
         * micros, where one million is equivalent to one currency unit.
         * 
* * optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the requiredCampaignBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasRequiredCampaignBudgetAmountMicros() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * Output only. The minimum campaign budget, in local currency for the
         * account, required to achieve the target CPA. Amount is specified in
         * micros, where one million is equivalent to one currency unit.
         * 
* * optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredCampaignBudgetAmountMicros. */ @java.lang.Override public long getRequiredCampaignBudgetAmountMicros() { return requiredCampaignBudgetAmountMicros_; } /** *
         * Output only. The minimum campaign budget, in local currency for the
         * account, required to achieve the target CPA. Amount is specified in
         * micros, where one million is equivalent to one currency unit.
         * 
* * optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The requiredCampaignBudgetAmountMicros to set. * @return This builder for chaining. */ public Builder setRequiredCampaignBudgetAmountMicros(long value) { requiredCampaignBudgetAmountMicros_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Output only. The minimum campaign budget, in local currency for the
         * account, required to achieve the target CPA. Amount is specified in
         * micros, where one million is equivalent to one currency unit.
         * 
* * optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRequiredCampaignBudgetAmountMicros() { bitField0_ = (bitField0_ & ~0x00000004); requiredCampaignBudgetAmountMicros_ = 0L; onChanged(); return this; } private com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder> impactBuilder_; /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impact field is set. */ public boolean hasImpact() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact() { if (impactBuilder_ == null) { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } else { return impactBuilder_.getMessage(); } } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (value == null) { throw new NullPointerException(); } impact_ = value; } else { impactBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact( com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder builderForValue) { if (impactBuilder_ == null) { impact_ = builderForValue.build(); } else { impactBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeImpact(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && impact_ != null && impact_ != com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance()) { getImpactBuilder().mergeFrom(value); } else { impact_ = value; } } else { impactBuilder_.mergeFrom(value); } if (impact_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearImpact() { bitField0_ = (bitField0_ & ~0x00000008); impact_ = null; if (impactBuilder_ != null) { impactBuilder_.dispose(); impactBuilder_ = null; } onChanged(); return this; } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder getImpactBuilder() { bitField0_ |= 0x00000008; onChanged(); return getImpactFieldBuilder().getBuilder(); } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { if (impactBuilder_ != null) { return impactBuilder_.getMessageOrBuilder(); } else { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder> getImpactFieldBuilder() { if (impactBuilder_ == null) { impactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder>( getImpact(), getParentForChildren(), isClean()); impact_ = null; } return impactBuilder_; } @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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) private static final com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption(); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int OPTIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List options_; /** *
     * Output only. The available goals and corresponding options for Target CPA
     * strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getOptionsList() { return options_; } /** *
     * Output only. The available goals and corresponding options for Target CPA
     * strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getOptionsOrBuilderList() { return options_; } /** *
     * Output only. The available goals and corresponding options for Target CPA
     * strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getOptionsCount() { return options_.size(); } /** *
     * Output only. The available goals and corresponding options for Target CPA
     * strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getOptions(int index) { return options_.get(index); } /** *
     * Output only. The available goals and corresponding options for Target CPA
     * strategy.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder getOptionsOrBuilder( int index) { return options_.get(index); } public static final int RECOMMENDED_TARGET_CPA_MICROS_FIELD_NUMBER = 3; private long recommendedTargetCpaMicros_ = 0L; /** *
     * Output only. The recommended average CPA target. See required budget
     * amount and impact of using this recommendation in options list.
     * 
* * optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedTargetCpaMicros field is set. */ @java.lang.Override public boolean hasRecommendedTargetCpaMicros() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The recommended average CPA target. See required budget
     * amount and impact of using this recommendation in options list.
     * 
* * optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetCpaMicros. */ @java.lang.Override public long getRecommendedTargetCpaMicros() { return recommendedTargetCpaMicros_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < options_.size(); i++) { output.writeMessage(1, options_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(3, recommendedTargetCpaMicros_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < options_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, options_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, recommendedTargetCpaMicros_); } 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.v16.resources.Recommendation.TargetCpaOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) obj; if (!getOptionsList() .equals(other.getOptionsList())) return false; if (hasRecommendedTargetCpaMicros() != other.hasRecommendedTargetCpaMicros()) return false; if (hasRecommendedTargetCpaMicros()) { if (getRecommendedTargetCpaMicros() != other.getRecommendedTargetCpaMicros()) 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 (getOptionsCount() > 0) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptionsList().hashCode(); } if (hasRecommendedTargetCpaMicros()) { hash = (37 * hash) + RECOMMENDED_TARGET_CPA_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRecommendedTargetCpaMicros()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation 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; } /** *
     * The Target CPA opt-in recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); } else { options_ = null; optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); recommendedTargetCpaMicros_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation result) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { options_ = java.util.Collections.unmodifiableList(options_); bitField0_ = (bitField0_ & ~0x00000001); } result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.recommendedTargetCpaMicros_ = recommendedTargetCpaMicros_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance()) return this; if (optionsBuilder_ == null) { if (!other.options_.isEmpty()) { if (options_.isEmpty()) { options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOptionsIsMutable(); options_.addAll(other.options_); } onChanged(); } } else { if (!other.options_.isEmpty()) { if (optionsBuilder_.isEmpty()) { optionsBuilder_.dispose(); optionsBuilder_ = null; options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000001); optionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOptionsFieldBuilder() : null; } else { optionsBuilder_.addAllMessages(other.options_); } } } if (other.hasRecommendedTargetCpaMicros()) { setRecommendedTargetCpaMicros(other.getRecommendedTargetCpaMicros()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption m = input.readMessage( com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.parser(), extensionRegistry); if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(m); } else { optionsBuilder_.addMessage(m); } break; } // case 10 case 24: { recommendedTargetCpaMicros_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List options_ = java.util.Collections.emptyList(); private void ensureOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { options_ = new java.util.ArrayList(options_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder> optionsBuilder_; /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getOptionsList() { if (optionsBuilder_ == null) { return java.util.Collections.unmodifiableList(options_); } else { return optionsBuilder_.getMessageList(); } } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getOptionsCount() { if (optionsBuilder_ == null) { return options_.size(); } else { return optionsBuilder_.getCount(); } } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getOptions(int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessage(index); } } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOptions( int index, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.set(index, value); onChanged(); } else { optionsBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOptions( int index, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.set(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOptions(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(value); onChanged(); } else { optionsBuilder_.addMessage(value); } return this; } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOptions( int index, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(index, value); onChanged(); } else { optionsBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOptions( com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOptions( int index, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllOptions( java.lang.Iterable values) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, options_); onChanged(); } else { optionsBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { optionsBuilder_.clear(); } return this; } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeOptions(int index) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.remove(index); onChanged(); } else { optionsBuilder_.remove(index); } return this; } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder getOptionsBuilder( int index) { return getOptionsFieldBuilder().getBuilder(index); } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder getOptionsOrBuilder( int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getOptionsOrBuilderList() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(options_); } } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder addOptionsBuilder() { return getOptionsFieldBuilder().addBuilder( com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.getDefaultInstance()); } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder addOptionsBuilder( int index) { return getOptionsFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.getDefaultInstance()); } /** *
       * Output only. The available goals and corresponding options for Target CPA
       * strategy.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getOptionsBuilderList() { return getOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder>( options_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } private long recommendedTargetCpaMicros_ ; /** *
       * Output only. The recommended average CPA target. See required budget
       * amount and impact of using this recommendation in options list.
       * 
* * optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedTargetCpaMicros field is set. */ @java.lang.Override public boolean hasRecommendedTargetCpaMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The recommended average CPA target. See required budget
       * amount and impact of using this recommendation in options list.
       * 
* * optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetCpaMicros. */ @java.lang.Override public long getRecommendedTargetCpaMicros() { return recommendedTargetCpaMicros_; } /** *
       * Output only. The recommended average CPA target. See required budget
       * amount and impact of using this recommendation in options list.
       * 
* * optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedTargetCpaMicros to set. * @return This builder for chaining. */ public Builder setRecommendedTargetCpaMicros(long value) { recommendedTargetCpaMicros_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The recommended average CPA target. See required budget
       * amount and impact of using this recommendation in options list.
       * 
* * optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedTargetCpaMicros() { bitField0_ = (bitField0_ & ~0x00000002); recommendedTargetCpaMicros_ = 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.v16.resources.Recommendation.TargetCpaOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MaximizeConversionsOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The recommended new budget amount.
     * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedBudgetAmountMicros field is set. */ boolean hasRecommendedBudgetAmountMicros(); /** *
     * Output only. The recommended new budget amount.
     * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedBudgetAmountMicros. */ long getRecommendedBudgetAmountMicros(); } /** *
   * The Maximize Conversions Opt-In recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation} */ public static final class MaximizeConversionsOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) MaximizeConversionsOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use MaximizeConversionsOptInRecommendation.newBuilder() to construct. private MaximizeConversionsOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MaximizeConversionsOptInRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MaximizeConversionsOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionsOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionsOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder.class); } private int bitField0_; public static final int RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 2; private long recommendedBudgetAmountMicros_ = 0L; /** *
     * Output only. The recommended new budget amount.
     * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasRecommendedBudgetAmountMicros() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The recommended new budget amount.
     * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedBudgetAmountMicros. */ @java.lang.Override public long getRecommendedBudgetAmountMicros() { return recommendedBudgetAmountMicros_; } 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(2, recommendedBudgetAmountMicros_); } 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(2, recommendedBudgetAmountMicros_); } 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) obj; if (hasRecommendedBudgetAmountMicros() != other.hasRecommendedBudgetAmountMicros()) return false; if (hasRecommendedBudgetAmountMicros()) { if (getRecommendedBudgetAmountMicros() != other.getRecommendedBudgetAmountMicros()) 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 (hasRecommendedBudgetAmountMicros()) { hash = (37 * hash) + RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRecommendedBudgetAmountMicros()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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; } /** *
     * The Maximize Conversions Opt-In recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionsOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionsOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recommendedBudgetAmountMicros_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionsOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.recommendedBudgetAmountMicros_ = recommendedBudgetAmountMicros_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance()) return this; if (other.hasRecommendedBudgetAmountMicros()) { setRecommendedBudgetAmountMicros(other.getRecommendedBudgetAmountMicros()); } 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: { recommendedBudgetAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 16 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 recommendedBudgetAmountMicros_ ; /** *
       * Output only. The recommended new budget amount.
       * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasRecommendedBudgetAmountMicros() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The recommended new budget amount.
       * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedBudgetAmountMicros. */ @java.lang.Override public long getRecommendedBudgetAmountMicros() { return recommendedBudgetAmountMicros_; } /** *
       * Output only. The recommended new budget amount.
       * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedBudgetAmountMicros to set. * @return This builder for chaining. */ public Builder setRecommendedBudgetAmountMicros(long value) { recommendedBudgetAmountMicros_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The recommended new budget amount.
       * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedBudgetAmountMicros() { bitField0_ = (bitField0_ & ~0x00000001); recommendedBudgetAmountMicros_ = 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnhancedCpcOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * The Enhanced Cost-Per-Click Opt-In recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation} */ public static final class EnhancedCpcOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) EnhancedCpcOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use EnhancedCpcOptInRecommendation.newBuilder() to construct. private EnhancedCpcOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnhancedCpcOptInRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnhancedCpcOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_EnhancedCpcOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_EnhancedCpcOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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; } /** *
     * The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_EnhancedCpcOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_EnhancedCpcOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_EnhancedCpcOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation(this); 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SearchPartnersOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * The Search Partners Opt-In recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation} */ public static final class SearchPartnersOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) SearchPartnersOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use SearchPartnersOptInRecommendation.newBuilder() to construct. private SearchPartnersOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchPartnersOptInRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SearchPartnersOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SearchPartnersOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SearchPartnersOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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; } /** *
     * The Search Partners Opt-In recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SearchPartnersOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SearchPartnersOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SearchPartnersOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation(this); 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.SearchPartnersOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MaximizeClicksOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The recommended new budget amount.
     * Only set if the current budget is too high.
     * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedBudgetAmountMicros field is set. */ boolean hasRecommendedBudgetAmountMicros(); /** *
     * Output only. The recommended new budget amount.
     * Only set if the current budget is too high.
     * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedBudgetAmountMicros. */ long getRecommendedBudgetAmountMicros(); } /** *
   * The Maximize Clicks opt-in recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation} */ public static final class MaximizeClicksOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) MaximizeClicksOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use MaximizeClicksOptInRecommendation.newBuilder() to construct. private MaximizeClicksOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MaximizeClicksOptInRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MaximizeClicksOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeClicksOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeClicksOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder.class); } private int bitField0_; public static final int RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 2; private long recommendedBudgetAmountMicros_ = 0L; /** *
     * Output only. The recommended new budget amount.
     * Only set if the current budget is too high.
     * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasRecommendedBudgetAmountMicros() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The recommended new budget amount.
     * Only set if the current budget is too high.
     * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedBudgetAmountMicros. */ @java.lang.Override public long getRecommendedBudgetAmountMicros() { return recommendedBudgetAmountMicros_; } 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(2, recommendedBudgetAmountMicros_); } 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(2, recommendedBudgetAmountMicros_); } 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) obj; if (hasRecommendedBudgetAmountMicros() != other.hasRecommendedBudgetAmountMicros()) return false; if (hasRecommendedBudgetAmountMicros()) { if (getRecommendedBudgetAmountMicros() != other.getRecommendedBudgetAmountMicros()) 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 (hasRecommendedBudgetAmountMicros()) { hash = (37 * hash) + RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRecommendedBudgetAmountMicros()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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; } /** *
     * The Maximize Clicks opt-in recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeClicksOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeClicksOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recommendedBudgetAmountMicros_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeClicksOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.recommendedBudgetAmountMicros_ = recommendedBudgetAmountMicros_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance()) return this; if (other.hasRecommendedBudgetAmountMicros()) { setRecommendedBudgetAmountMicros(other.getRecommendedBudgetAmountMicros()); } 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: { recommendedBudgetAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 16 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 recommendedBudgetAmountMicros_ ; /** *
       * Output only. The recommended new budget amount.
       * Only set if the current budget is too high.
       * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasRecommendedBudgetAmountMicros() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The recommended new budget amount.
       * Only set if the current budget is too high.
       * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedBudgetAmountMicros. */ @java.lang.Override public long getRecommendedBudgetAmountMicros() { return recommendedBudgetAmountMicros_; } /** *
       * Output only. The recommended new budget amount.
       * Only set if the current budget is too high.
       * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedBudgetAmountMicros to set. * @return This builder for chaining. */ public Builder setRecommendedBudgetAmountMicros(long value) { recommendedBudgetAmountMicros_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The recommended new budget amount.
       * Only set if the current budget is too high.
       * 
* * optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedBudgetAmountMicros() { bitField0_ = (bitField0_ & ~0x00000001); recommendedBudgetAmountMicros_ = 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptimizeAdRotationRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * The Optimize Ad Rotation recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation} */ public static final class OptimizeAdRotationRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) OptimizeAdRotationRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use OptimizeAdRotationRecommendation.newBuilder() to construct. private OptimizeAdRotationRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptimizeAdRotationRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptimizeAdRotationRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_OptimizeAdRotationRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_OptimizeAdRotationRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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; } /** *
     * The Optimize Ad Rotation recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_OptimizeAdRotationRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_OptimizeAdRotationRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_OptimizeAdRotationRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation(this); 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.OptimizeAdRotationRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CalloutAssetRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. New callout extension assets recommended at the campaign
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedCampaignCalloutAssetsList(); /** *
     * Output only. New callout extension assets recommended at the campaign
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignCalloutAssets(int index); /** *
     * Output only. New callout extension assets recommended at the campaign
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getRecommendedCampaignCalloutAssetsCount(); /** *
     * Output only. New callout extension assets recommended at the campaign
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedCampaignCalloutAssetsOrBuilderList(); /** *
     * Output only. New callout extension assets recommended at the campaign
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignCalloutAssetsOrBuilder( int index); /** *
     * Output only. New callout extension assets recommended at the customer
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedCustomerCalloutAssetsList(); /** *
     * Output only. New callout extension assets recommended at the customer
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerCalloutAssets(int index); /** *
     * Output only. New callout extension assets recommended at the customer
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getRecommendedCustomerCalloutAssetsCount(); /** *
     * Output only. New callout extension assets recommended at the customer
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedCustomerCalloutAssetsOrBuilderList(); /** *
     * Output only. New callout extension assets recommended at the customer
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerCalloutAssetsOrBuilder( int index); } /** *
   * The callout asset recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation} */ public static final class CalloutAssetRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) CalloutAssetRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use CalloutAssetRecommendation.newBuilder() to construct. private CalloutAssetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CalloutAssetRecommendation() { recommendedCampaignCalloutAssets_ = java.util.Collections.emptyList(); recommendedCustomerCalloutAssets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CalloutAssetRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CalloutAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CalloutAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.Builder.class); } public static final int RECOMMENDED_CAMPAIGN_CALLOUT_ASSETS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List recommendedCampaignCalloutAssets_; /** *
     * Output only. New callout extension assets recommended at the campaign
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedCampaignCalloutAssetsList() { return recommendedCampaignCalloutAssets_; } /** *
     * Output only. New callout extension assets recommended at the campaign
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedCampaignCalloutAssetsOrBuilderList() { return recommendedCampaignCalloutAssets_; } /** *
     * Output only. New callout extension assets recommended at the campaign
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getRecommendedCampaignCalloutAssetsCount() { return recommendedCampaignCalloutAssets_.size(); } /** *
     * Output only. New callout extension assets recommended at the campaign
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignCalloutAssets(int index) { return recommendedCampaignCalloutAssets_.get(index); } /** *
     * Output only. New callout extension assets recommended at the campaign
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignCalloutAssetsOrBuilder( int index) { return recommendedCampaignCalloutAssets_.get(index); } public static final int RECOMMENDED_CUSTOMER_CALLOUT_ASSETS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List recommendedCustomerCalloutAssets_; /** *
     * Output only. New callout extension assets recommended at the customer
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedCustomerCalloutAssetsList() { return recommendedCustomerCalloutAssets_; } /** *
     * Output only. New callout extension assets recommended at the customer
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedCustomerCalloutAssetsOrBuilderList() { return recommendedCustomerCalloutAssets_; } /** *
     * Output only. New callout extension assets recommended at the customer
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getRecommendedCustomerCalloutAssetsCount() { return recommendedCustomerCalloutAssets_.size(); } /** *
     * Output only. New callout extension assets recommended at the customer
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerCalloutAssets(int index) { return recommendedCustomerCalloutAssets_.get(index); } /** *
     * Output only. New callout extension assets recommended at the customer
     * level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerCalloutAssetsOrBuilder( int index) { return recommendedCustomerCalloutAssets_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < recommendedCampaignCalloutAssets_.size(); i++) { output.writeMessage(1, recommendedCampaignCalloutAssets_.get(i)); } for (int i = 0; i < recommendedCustomerCalloutAssets_.size(); i++) { output.writeMessage(2, recommendedCustomerCalloutAssets_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < recommendedCampaignCalloutAssets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, recommendedCampaignCalloutAssets_.get(i)); } for (int i = 0; i < recommendedCustomerCalloutAssets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, recommendedCustomerCalloutAssets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) obj; if (!getRecommendedCampaignCalloutAssetsList() .equals(other.getRecommendedCampaignCalloutAssetsList())) return false; if (!getRecommendedCustomerCalloutAssetsList() .equals(other.getRecommendedCustomerCalloutAssetsList())) 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 (getRecommendedCampaignCalloutAssetsCount() > 0) { hash = (37 * hash) + RECOMMENDED_CAMPAIGN_CALLOUT_ASSETS_FIELD_NUMBER; hash = (53 * hash) + getRecommendedCampaignCalloutAssetsList().hashCode(); } if (getRecommendedCustomerCalloutAssetsCount() > 0) { hash = (37 * hash) + RECOMMENDED_CUSTOMER_CALLOUT_ASSETS_FIELD_NUMBER; hash = (53 * hash) + getRecommendedCustomerCalloutAssetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation 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; } /** *
     * The callout asset recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CalloutAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CalloutAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (recommendedCampaignCalloutAssetsBuilder_ == null) { recommendedCampaignCalloutAssets_ = java.util.Collections.emptyList(); } else { recommendedCampaignCalloutAssets_ = null; recommendedCampaignCalloutAssetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (recommendedCustomerCalloutAssetsBuilder_ == null) { recommendedCustomerCalloutAssets_ = java.util.Collections.emptyList(); } else { recommendedCustomerCalloutAssets_ = null; recommendedCustomerCalloutAssetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CalloutAssetRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation result) { if (recommendedCampaignCalloutAssetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { recommendedCampaignCalloutAssets_ = java.util.Collections.unmodifiableList(recommendedCampaignCalloutAssets_); bitField0_ = (bitField0_ & ~0x00000001); } result.recommendedCampaignCalloutAssets_ = recommendedCampaignCalloutAssets_; } else { result.recommendedCampaignCalloutAssets_ = recommendedCampaignCalloutAssetsBuilder_.build(); } if (recommendedCustomerCalloutAssetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { recommendedCustomerCalloutAssets_ = java.util.Collections.unmodifiableList(recommendedCustomerCalloutAssets_); bitField0_ = (bitField0_ & ~0x00000002); } result.recommendedCustomerCalloutAssets_ = recommendedCustomerCalloutAssets_; } else { result.recommendedCustomerCalloutAssets_ = recommendedCustomerCalloutAssetsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.getDefaultInstance()) return this; if (recommendedCampaignCalloutAssetsBuilder_ == null) { if (!other.recommendedCampaignCalloutAssets_.isEmpty()) { if (recommendedCampaignCalloutAssets_.isEmpty()) { recommendedCampaignCalloutAssets_ = other.recommendedCampaignCalloutAssets_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRecommendedCampaignCalloutAssetsIsMutable(); recommendedCampaignCalloutAssets_.addAll(other.recommendedCampaignCalloutAssets_); } onChanged(); } } else { if (!other.recommendedCampaignCalloutAssets_.isEmpty()) { if (recommendedCampaignCalloutAssetsBuilder_.isEmpty()) { recommendedCampaignCalloutAssetsBuilder_.dispose(); recommendedCampaignCalloutAssetsBuilder_ = null; recommendedCampaignCalloutAssets_ = other.recommendedCampaignCalloutAssets_; bitField0_ = (bitField0_ & ~0x00000001); recommendedCampaignCalloutAssetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecommendedCampaignCalloutAssetsFieldBuilder() : null; } else { recommendedCampaignCalloutAssetsBuilder_.addAllMessages(other.recommendedCampaignCalloutAssets_); } } } if (recommendedCustomerCalloutAssetsBuilder_ == null) { if (!other.recommendedCustomerCalloutAssets_.isEmpty()) { if (recommendedCustomerCalloutAssets_.isEmpty()) { recommendedCustomerCalloutAssets_ = other.recommendedCustomerCalloutAssets_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRecommendedCustomerCalloutAssetsIsMutable(); recommendedCustomerCalloutAssets_.addAll(other.recommendedCustomerCalloutAssets_); } onChanged(); } } else { if (!other.recommendedCustomerCalloutAssets_.isEmpty()) { if (recommendedCustomerCalloutAssetsBuilder_.isEmpty()) { recommendedCustomerCalloutAssetsBuilder_.dispose(); recommendedCustomerCalloutAssetsBuilder_ = null; recommendedCustomerCalloutAssets_ = other.recommendedCustomerCalloutAssets_; bitField0_ = (bitField0_ & ~0x00000002); recommendedCustomerCalloutAssetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecommendedCustomerCalloutAssetsFieldBuilder() : null; } else { recommendedCustomerCalloutAssetsBuilder_.addAllMessages(other.recommendedCustomerCalloutAssets_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.ads.googleads.v16.resources.Asset m = input.readMessage( com.google.ads.googleads.v16.resources.Asset.parser(), extensionRegistry); if (recommendedCampaignCalloutAssetsBuilder_ == null) { ensureRecommendedCampaignCalloutAssetsIsMutable(); recommendedCampaignCalloutAssets_.add(m); } else { recommendedCampaignCalloutAssetsBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.ads.googleads.v16.resources.Asset m = input.readMessage( com.google.ads.googleads.v16.resources.Asset.parser(), extensionRegistry); if (recommendedCustomerCalloutAssetsBuilder_ == null) { ensureRecommendedCustomerCalloutAssetsIsMutable(); recommendedCustomerCalloutAssets_.add(m); } else { recommendedCustomerCalloutAssetsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List recommendedCampaignCalloutAssets_ = java.util.Collections.emptyList(); private void ensureRecommendedCampaignCalloutAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { recommendedCampaignCalloutAssets_ = new java.util.ArrayList(recommendedCampaignCalloutAssets_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> recommendedCampaignCalloutAssetsBuilder_; /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCampaignCalloutAssetsList() { if (recommendedCampaignCalloutAssetsBuilder_ == null) { return java.util.Collections.unmodifiableList(recommendedCampaignCalloutAssets_); } else { return recommendedCampaignCalloutAssetsBuilder_.getMessageList(); } } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getRecommendedCampaignCalloutAssetsCount() { if (recommendedCampaignCalloutAssetsBuilder_ == null) { return recommendedCampaignCalloutAssets_.size(); } else { return recommendedCampaignCalloutAssetsBuilder_.getCount(); } } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignCalloutAssets(int index) { if (recommendedCampaignCalloutAssetsBuilder_ == null) { return recommendedCampaignCalloutAssets_.get(index); } else { return recommendedCampaignCalloutAssetsBuilder_.getMessage(index); } } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedCampaignCalloutAssets( int index, com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCampaignCalloutAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCampaignCalloutAssetsIsMutable(); recommendedCampaignCalloutAssets_.set(index, value); onChanged(); } else { recommendedCampaignCalloutAssetsBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedCampaignCalloutAssets( int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCampaignCalloutAssetsBuilder_ == null) { ensureRecommendedCampaignCalloutAssetsIsMutable(); recommendedCampaignCalloutAssets_.set(index, builderForValue.build()); onChanged(); } else { recommendedCampaignCalloutAssetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCampaignCalloutAssets(com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCampaignCalloutAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCampaignCalloutAssetsIsMutable(); recommendedCampaignCalloutAssets_.add(value); onChanged(); } else { recommendedCampaignCalloutAssetsBuilder_.addMessage(value); } return this; } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCampaignCalloutAssets( int index, com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCampaignCalloutAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCampaignCalloutAssetsIsMutable(); recommendedCampaignCalloutAssets_.add(index, value); onChanged(); } else { recommendedCampaignCalloutAssetsBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCampaignCalloutAssets( com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCampaignCalloutAssetsBuilder_ == null) { ensureRecommendedCampaignCalloutAssetsIsMutable(); recommendedCampaignCalloutAssets_.add(builderForValue.build()); onChanged(); } else { recommendedCampaignCalloutAssetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCampaignCalloutAssets( int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCampaignCalloutAssetsBuilder_ == null) { ensureRecommendedCampaignCalloutAssetsIsMutable(); recommendedCampaignCalloutAssets_.add(index, builderForValue.build()); onChanged(); } else { recommendedCampaignCalloutAssetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllRecommendedCampaignCalloutAssets( java.lang.Iterable values) { if (recommendedCampaignCalloutAssetsBuilder_ == null) { ensureRecommendedCampaignCalloutAssetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recommendedCampaignCalloutAssets_); onChanged(); } else { recommendedCampaignCalloutAssetsBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRecommendedCampaignCalloutAssets() { if (recommendedCampaignCalloutAssetsBuilder_ == null) { recommendedCampaignCalloutAssets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { recommendedCampaignCalloutAssetsBuilder_.clear(); } return this; } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeRecommendedCampaignCalloutAssets(int index) { if (recommendedCampaignCalloutAssetsBuilder_ == null) { ensureRecommendedCampaignCalloutAssetsIsMutable(); recommendedCampaignCalloutAssets_.remove(index); onChanged(); } else { recommendedCampaignCalloutAssetsBuilder_.remove(index); } return this; } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder getRecommendedCampaignCalloutAssetsBuilder( int index) { return getRecommendedCampaignCalloutAssetsFieldBuilder().getBuilder(index); } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignCalloutAssetsOrBuilder( int index) { if (recommendedCampaignCalloutAssetsBuilder_ == null) { return recommendedCampaignCalloutAssets_.get(index); } else { return recommendedCampaignCalloutAssetsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCampaignCalloutAssetsOrBuilderList() { if (recommendedCampaignCalloutAssetsBuilder_ != null) { return recommendedCampaignCalloutAssetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recommendedCampaignCalloutAssets_); } } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCampaignCalloutAssetsBuilder() { return getRecommendedCampaignCalloutAssetsFieldBuilder().addBuilder( com.google.ads.googleads.v16.resources.Asset.getDefaultInstance()); } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCampaignCalloutAssetsBuilder( int index) { return getRecommendedCampaignCalloutAssetsFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.resources.Asset.getDefaultInstance()); } /** *
       * Output only. New callout extension assets recommended at the campaign
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCampaignCalloutAssetsBuilderList() { return getRecommendedCampaignCalloutAssetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> getRecommendedCampaignCalloutAssetsFieldBuilder() { if (recommendedCampaignCalloutAssetsBuilder_ == null) { recommendedCampaignCalloutAssetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>( recommendedCampaignCalloutAssets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); recommendedCampaignCalloutAssets_ = null; } return recommendedCampaignCalloutAssetsBuilder_; } private java.util.List recommendedCustomerCalloutAssets_ = java.util.Collections.emptyList(); private void ensureRecommendedCustomerCalloutAssetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { recommendedCustomerCalloutAssets_ = new java.util.ArrayList(recommendedCustomerCalloutAssets_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> recommendedCustomerCalloutAssetsBuilder_; /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCustomerCalloutAssetsList() { if (recommendedCustomerCalloutAssetsBuilder_ == null) { return java.util.Collections.unmodifiableList(recommendedCustomerCalloutAssets_); } else { return recommendedCustomerCalloutAssetsBuilder_.getMessageList(); } } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getRecommendedCustomerCalloutAssetsCount() { if (recommendedCustomerCalloutAssetsBuilder_ == null) { return recommendedCustomerCalloutAssets_.size(); } else { return recommendedCustomerCalloutAssetsBuilder_.getCount(); } } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerCalloutAssets(int index) { if (recommendedCustomerCalloutAssetsBuilder_ == null) { return recommendedCustomerCalloutAssets_.get(index); } else { return recommendedCustomerCalloutAssetsBuilder_.getMessage(index); } } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedCustomerCalloutAssets( int index, com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCustomerCalloutAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCustomerCalloutAssetsIsMutable(); recommendedCustomerCalloutAssets_.set(index, value); onChanged(); } else { recommendedCustomerCalloutAssetsBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedCustomerCalloutAssets( int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCustomerCalloutAssetsBuilder_ == null) { ensureRecommendedCustomerCalloutAssetsIsMutable(); recommendedCustomerCalloutAssets_.set(index, builderForValue.build()); onChanged(); } else { recommendedCustomerCalloutAssetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCustomerCalloutAssets(com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCustomerCalloutAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCustomerCalloutAssetsIsMutable(); recommendedCustomerCalloutAssets_.add(value); onChanged(); } else { recommendedCustomerCalloutAssetsBuilder_.addMessage(value); } return this; } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCustomerCalloutAssets( int index, com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCustomerCalloutAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCustomerCalloutAssetsIsMutable(); recommendedCustomerCalloutAssets_.add(index, value); onChanged(); } else { recommendedCustomerCalloutAssetsBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCustomerCalloutAssets( com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCustomerCalloutAssetsBuilder_ == null) { ensureRecommendedCustomerCalloutAssetsIsMutable(); recommendedCustomerCalloutAssets_.add(builderForValue.build()); onChanged(); } else { recommendedCustomerCalloutAssetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCustomerCalloutAssets( int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCustomerCalloutAssetsBuilder_ == null) { ensureRecommendedCustomerCalloutAssetsIsMutable(); recommendedCustomerCalloutAssets_.add(index, builderForValue.build()); onChanged(); } else { recommendedCustomerCalloutAssetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllRecommendedCustomerCalloutAssets( java.lang.Iterable values) { if (recommendedCustomerCalloutAssetsBuilder_ == null) { ensureRecommendedCustomerCalloutAssetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recommendedCustomerCalloutAssets_); onChanged(); } else { recommendedCustomerCalloutAssetsBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRecommendedCustomerCalloutAssets() { if (recommendedCustomerCalloutAssetsBuilder_ == null) { recommendedCustomerCalloutAssets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { recommendedCustomerCalloutAssetsBuilder_.clear(); } return this; } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeRecommendedCustomerCalloutAssets(int index) { if (recommendedCustomerCalloutAssetsBuilder_ == null) { ensureRecommendedCustomerCalloutAssetsIsMutable(); recommendedCustomerCalloutAssets_.remove(index); onChanged(); } else { recommendedCustomerCalloutAssetsBuilder_.remove(index); } return this; } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder getRecommendedCustomerCalloutAssetsBuilder( int index) { return getRecommendedCustomerCalloutAssetsFieldBuilder().getBuilder(index); } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerCalloutAssetsOrBuilder( int index) { if (recommendedCustomerCalloutAssetsBuilder_ == null) { return recommendedCustomerCalloutAssets_.get(index); } else { return recommendedCustomerCalloutAssetsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCustomerCalloutAssetsOrBuilderList() { if (recommendedCustomerCalloutAssetsBuilder_ != null) { return recommendedCustomerCalloutAssetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recommendedCustomerCalloutAssets_); } } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCustomerCalloutAssetsBuilder() { return getRecommendedCustomerCalloutAssetsFieldBuilder().addBuilder( com.google.ads.googleads.v16.resources.Asset.getDefaultInstance()); } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCustomerCalloutAssetsBuilder( int index) { return getRecommendedCustomerCalloutAssetsFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.resources.Asset.getDefaultInstance()); } /** *
       * Output only. New callout extension assets recommended at the customer
       * level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCustomerCalloutAssetsBuilderList() { return getRecommendedCustomerCalloutAssetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> getRecommendedCustomerCalloutAssetsFieldBuilder() { if (recommendedCustomerCalloutAssetsBuilder_ == null) { recommendedCustomerCalloutAssetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>( recommendedCustomerCalloutAssets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); recommendedCustomerCalloutAssets_ = null; } return recommendedCustomerCalloutAssetsBuilder_; } @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.v16.resources.Recommendation.CalloutAssetRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SitelinkAssetRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. New sitelink assets recommended at the campaign level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedCampaignSitelinkAssetsList(); /** *
     * Output only. New sitelink assets recommended at the campaign level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignSitelinkAssets(int index); /** *
     * Output only. New sitelink assets recommended at the campaign level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getRecommendedCampaignSitelinkAssetsCount(); /** *
     * Output only. New sitelink assets recommended at the campaign level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedCampaignSitelinkAssetsOrBuilderList(); /** *
     * Output only. New sitelink assets recommended at the campaign level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignSitelinkAssetsOrBuilder( int index); /** *
     * Output only. New sitelink assets recommended at the customer level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedCustomerSitelinkAssetsList(); /** *
     * Output only. New sitelink assets recommended at the customer level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerSitelinkAssets(int index); /** *
     * Output only. New sitelink assets recommended at the customer level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getRecommendedCustomerSitelinkAssetsCount(); /** *
     * Output only. New sitelink assets recommended at the customer level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedCustomerSitelinkAssetsOrBuilderList(); /** *
     * Output only. New sitelink assets recommended at the customer level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerSitelinkAssetsOrBuilder( int index); } /** *
   * The sitelink asset recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation} */ public static final class SitelinkAssetRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) SitelinkAssetRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use SitelinkAssetRecommendation.newBuilder() to construct. private SitelinkAssetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SitelinkAssetRecommendation() { recommendedCampaignSitelinkAssets_ = java.util.Collections.emptyList(); recommendedCustomerSitelinkAssets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SitelinkAssetRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SitelinkAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SitelinkAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.Builder.class); } public static final int RECOMMENDED_CAMPAIGN_SITELINK_ASSETS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List recommendedCampaignSitelinkAssets_; /** *
     * Output only. New sitelink assets recommended at the campaign level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedCampaignSitelinkAssetsList() { return recommendedCampaignSitelinkAssets_; } /** *
     * Output only. New sitelink assets recommended at the campaign level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedCampaignSitelinkAssetsOrBuilderList() { return recommendedCampaignSitelinkAssets_; } /** *
     * Output only. New sitelink assets recommended at the campaign level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getRecommendedCampaignSitelinkAssetsCount() { return recommendedCampaignSitelinkAssets_.size(); } /** *
     * Output only. New sitelink assets recommended at the campaign level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignSitelinkAssets(int index) { return recommendedCampaignSitelinkAssets_.get(index); } /** *
     * Output only. New sitelink assets recommended at the campaign level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignSitelinkAssetsOrBuilder( int index) { return recommendedCampaignSitelinkAssets_.get(index); } public static final int RECOMMENDED_CUSTOMER_SITELINK_ASSETS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List recommendedCustomerSitelinkAssets_; /** *
     * Output only. New sitelink assets recommended at the customer level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedCustomerSitelinkAssetsList() { return recommendedCustomerSitelinkAssets_; } /** *
     * Output only. New sitelink assets recommended at the customer level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedCustomerSitelinkAssetsOrBuilderList() { return recommendedCustomerSitelinkAssets_; } /** *
     * Output only. New sitelink assets recommended at the customer level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getRecommendedCustomerSitelinkAssetsCount() { return recommendedCustomerSitelinkAssets_.size(); } /** *
     * Output only. New sitelink assets recommended at the customer level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerSitelinkAssets(int index) { return recommendedCustomerSitelinkAssets_.get(index); } /** *
     * Output only. New sitelink assets recommended at the customer level.
     * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerSitelinkAssetsOrBuilder( int index) { return recommendedCustomerSitelinkAssets_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < recommendedCampaignSitelinkAssets_.size(); i++) { output.writeMessage(1, recommendedCampaignSitelinkAssets_.get(i)); } for (int i = 0; i < recommendedCustomerSitelinkAssets_.size(); i++) { output.writeMessage(2, recommendedCustomerSitelinkAssets_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < recommendedCampaignSitelinkAssets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, recommendedCampaignSitelinkAssets_.get(i)); } for (int i = 0; i < recommendedCustomerSitelinkAssets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, recommendedCustomerSitelinkAssets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) obj; if (!getRecommendedCampaignSitelinkAssetsList() .equals(other.getRecommendedCampaignSitelinkAssetsList())) return false; if (!getRecommendedCustomerSitelinkAssetsList() .equals(other.getRecommendedCustomerSitelinkAssetsList())) 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 (getRecommendedCampaignSitelinkAssetsCount() > 0) { hash = (37 * hash) + RECOMMENDED_CAMPAIGN_SITELINK_ASSETS_FIELD_NUMBER; hash = (53 * hash) + getRecommendedCampaignSitelinkAssetsList().hashCode(); } if (getRecommendedCustomerSitelinkAssetsCount() > 0) { hash = (37 * hash) + RECOMMENDED_CUSTOMER_SITELINK_ASSETS_FIELD_NUMBER; hash = (53 * hash) + getRecommendedCustomerSitelinkAssetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation 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; } /** *
     * The sitelink asset recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SitelinkAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SitelinkAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (recommendedCampaignSitelinkAssetsBuilder_ == null) { recommendedCampaignSitelinkAssets_ = java.util.Collections.emptyList(); } else { recommendedCampaignSitelinkAssets_ = null; recommendedCampaignSitelinkAssetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (recommendedCustomerSitelinkAssetsBuilder_ == null) { recommendedCustomerSitelinkAssets_ = java.util.Collections.emptyList(); } else { recommendedCustomerSitelinkAssets_ = null; recommendedCustomerSitelinkAssetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SitelinkAssetRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation result) { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { recommendedCampaignSitelinkAssets_ = java.util.Collections.unmodifiableList(recommendedCampaignSitelinkAssets_); bitField0_ = (bitField0_ & ~0x00000001); } result.recommendedCampaignSitelinkAssets_ = recommendedCampaignSitelinkAssets_; } else { result.recommendedCampaignSitelinkAssets_ = recommendedCampaignSitelinkAssetsBuilder_.build(); } if (recommendedCustomerSitelinkAssetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { recommendedCustomerSitelinkAssets_ = java.util.Collections.unmodifiableList(recommendedCustomerSitelinkAssets_); bitField0_ = (bitField0_ & ~0x00000002); } result.recommendedCustomerSitelinkAssets_ = recommendedCustomerSitelinkAssets_; } else { result.recommendedCustomerSitelinkAssets_ = recommendedCustomerSitelinkAssetsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.getDefaultInstance()) return this; if (recommendedCampaignSitelinkAssetsBuilder_ == null) { if (!other.recommendedCampaignSitelinkAssets_.isEmpty()) { if (recommendedCampaignSitelinkAssets_.isEmpty()) { recommendedCampaignSitelinkAssets_ = other.recommendedCampaignSitelinkAssets_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRecommendedCampaignSitelinkAssetsIsMutable(); recommendedCampaignSitelinkAssets_.addAll(other.recommendedCampaignSitelinkAssets_); } onChanged(); } } else { if (!other.recommendedCampaignSitelinkAssets_.isEmpty()) { if (recommendedCampaignSitelinkAssetsBuilder_.isEmpty()) { recommendedCampaignSitelinkAssetsBuilder_.dispose(); recommendedCampaignSitelinkAssetsBuilder_ = null; recommendedCampaignSitelinkAssets_ = other.recommendedCampaignSitelinkAssets_; bitField0_ = (bitField0_ & ~0x00000001); recommendedCampaignSitelinkAssetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecommendedCampaignSitelinkAssetsFieldBuilder() : null; } else { recommendedCampaignSitelinkAssetsBuilder_.addAllMessages(other.recommendedCampaignSitelinkAssets_); } } } if (recommendedCustomerSitelinkAssetsBuilder_ == null) { if (!other.recommendedCustomerSitelinkAssets_.isEmpty()) { if (recommendedCustomerSitelinkAssets_.isEmpty()) { recommendedCustomerSitelinkAssets_ = other.recommendedCustomerSitelinkAssets_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRecommendedCustomerSitelinkAssetsIsMutable(); recommendedCustomerSitelinkAssets_.addAll(other.recommendedCustomerSitelinkAssets_); } onChanged(); } } else { if (!other.recommendedCustomerSitelinkAssets_.isEmpty()) { if (recommendedCustomerSitelinkAssetsBuilder_.isEmpty()) { recommendedCustomerSitelinkAssetsBuilder_.dispose(); recommendedCustomerSitelinkAssetsBuilder_ = null; recommendedCustomerSitelinkAssets_ = other.recommendedCustomerSitelinkAssets_; bitField0_ = (bitField0_ & ~0x00000002); recommendedCustomerSitelinkAssetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecommendedCustomerSitelinkAssetsFieldBuilder() : null; } else { recommendedCustomerSitelinkAssetsBuilder_.addAllMessages(other.recommendedCustomerSitelinkAssets_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.ads.googleads.v16.resources.Asset m = input.readMessage( com.google.ads.googleads.v16.resources.Asset.parser(), extensionRegistry); if (recommendedCampaignSitelinkAssetsBuilder_ == null) { ensureRecommendedCampaignSitelinkAssetsIsMutable(); recommendedCampaignSitelinkAssets_.add(m); } else { recommendedCampaignSitelinkAssetsBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.ads.googleads.v16.resources.Asset m = input.readMessage( com.google.ads.googleads.v16.resources.Asset.parser(), extensionRegistry); if (recommendedCustomerSitelinkAssetsBuilder_ == null) { ensureRecommendedCustomerSitelinkAssetsIsMutable(); recommendedCustomerSitelinkAssets_.add(m); } else { recommendedCustomerSitelinkAssetsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List recommendedCampaignSitelinkAssets_ = java.util.Collections.emptyList(); private void ensureRecommendedCampaignSitelinkAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { recommendedCampaignSitelinkAssets_ = new java.util.ArrayList(recommendedCampaignSitelinkAssets_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> recommendedCampaignSitelinkAssetsBuilder_; /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCampaignSitelinkAssetsList() { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { return java.util.Collections.unmodifiableList(recommendedCampaignSitelinkAssets_); } else { return recommendedCampaignSitelinkAssetsBuilder_.getMessageList(); } } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getRecommendedCampaignSitelinkAssetsCount() { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { return recommendedCampaignSitelinkAssets_.size(); } else { return recommendedCampaignSitelinkAssetsBuilder_.getCount(); } } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignSitelinkAssets(int index) { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { return recommendedCampaignSitelinkAssets_.get(index); } else { return recommendedCampaignSitelinkAssetsBuilder_.getMessage(index); } } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedCampaignSitelinkAssets( int index, com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCampaignSitelinkAssetsIsMutable(); recommendedCampaignSitelinkAssets_.set(index, value); onChanged(); } else { recommendedCampaignSitelinkAssetsBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedCampaignSitelinkAssets( int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { ensureRecommendedCampaignSitelinkAssetsIsMutable(); recommendedCampaignSitelinkAssets_.set(index, builderForValue.build()); onChanged(); } else { recommendedCampaignSitelinkAssetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCampaignSitelinkAssets(com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCampaignSitelinkAssetsIsMutable(); recommendedCampaignSitelinkAssets_.add(value); onChanged(); } else { recommendedCampaignSitelinkAssetsBuilder_.addMessage(value); } return this; } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCampaignSitelinkAssets( int index, com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCampaignSitelinkAssetsIsMutable(); recommendedCampaignSitelinkAssets_.add(index, value); onChanged(); } else { recommendedCampaignSitelinkAssetsBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCampaignSitelinkAssets( com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { ensureRecommendedCampaignSitelinkAssetsIsMutable(); recommendedCampaignSitelinkAssets_.add(builderForValue.build()); onChanged(); } else { recommendedCampaignSitelinkAssetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCampaignSitelinkAssets( int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { ensureRecommendedCampaignSitelinkAssetsIsMutable(); recommendedCampaignSitelinkAssets_.add(index, builderForValue.build()); onChanged(); } else { recommendedCampaignSitelinkAssetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllRecommendedCampaignSitelinkAssets( java.lang.Iterable values) { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { ensureRecommendedCampaignSitelinkAssetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recommendedCampaignSitelinkAssets_); onChanged(); } else { recommendedCampaignSitelinkAssetsBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRecommendedCampaignSitelinkAssets() { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { recommendedCampaignSitelinkAssets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { recommendedCampaignSitelinkAssetsBuilder_.clear(); } return this; } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeRecommendedCampaignSitelinkAssets(int index) { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { ensureRecommendedCampaignSitelinkAssetsIsMutable(); recommendedCampaignSitelinkAssets_.remove(index); onChanged(); } else { recommendedCampaignSitelinkAssetsBuilder_.remove(index); } return this; } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder getRecommendedCampaignSitelinkAssetsBuilder( int index) { return getRecommendedCampaignSitelinkAssetsFieldBuilder().getBuilder(index); } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignSitelinkAssetsOrBuilder( int index) { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { return recommendedCampaignSitelinkAssets_.get(index); } else { return recommendedCampaignSitelinkAssetsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCampaignSitelinkAssetsOrBuilderList() { if (recommendedCampaignSitelinkAssetsBuilder_ != null) { return recommendedCampaignSitelinkAssetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recommendedCampaignSitelinkAssets_); } } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCampaignSitelinkAssetsBuilder() { return getRecommendedCampaignSitelinkAssetsFieldBuilder().addBuilder( com.google.ads.googleads.v16.resources.Asset.getDefaultInstance()); } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCampaignSitelinkAssetsBuilder( int index) { return getRecommendedCampaignSitelinkAssetsFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.resources.Asset.getDefaultInstance()); } /** *
       * Output only. New sitelink assets recommended at the campaign level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCampaignSitelinkAssetsBuilderList() { return getRecommendedCampaignSitelinkAssetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> getRecommendedCampaignSitelinkAssetsFieldBuilder() { if (recommendedCampaignSitelinkAssetsBuilder_ == null) { recommendedCampaignSitelinkAssetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>( recommendedCampaignSitelinkAssets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); recommendedCampaignSitelinkAssets_ = null; } return recommendedCampaignSitelinkAssetsBuilder_; } private java.util.List recommendedCustomerSitelinkAssets_ = java.util.Collections.emptyList(); private void ensureRecommendedCustomerSitelinkAssetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { recommendedCustomerSitelinkAssets_ = new java.util.ArrayList(recommendedCustomerSitelinkAssets_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> recommendedCustomerSitelinkAssetsBuilder_; /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCustomerSitelinkAssetsList() { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { return java.util.Collections.unmodifiableList(recommendedCustomerSitelinkAssets_); } else { return recommendedCustomerSitelinkAssetsBuilder_.getMessageList(); } } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getRecommendedCustomerSitelinkAssetsCount() { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { return recommendedCustomerSitelinkAssets_.size(); } else { return recommendedCustomerSitelinkAssetsBuilder_.getCount(); } } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerSitelinkAssets(int index) { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { return recommendedCustomerSitelinkAssets_.get(index); } else { return recommendedCustomerSitelinkAssetsBuilder_.getMessage(index); } } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedCustomerSitelinkAssets( int index, com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCustomerSitelinkAssetsIsMutable(); recommendedCustomerSitelinkAssets_.set(index, value); onChanged(); } else { recommendedCustomerSitelinkAssetsBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedCustomerSitelinkAssets( int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { ensureRecommendedCustomerSitelinkAssetsIsMutable(); recommendedCustomerSitelinkAssets_.set(index, builderForValue.build()); onChanged(); } else { recommendedCustomerSitelinkAssetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCustomerSitelinkAssets(com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCustomerSitelinkAssetsIsMutable(); recommendedCustomerSitelinkAssets_.add(value); onChanged(); } else { recommendedCustomerSitelinkAssetsBuilder_.addMessage(value); } return this; } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCustomerSitelinkAssets( int index, com.google.ads.googleads.v16.resources.Asset value) { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedCustomerSitelinkAssetsIsMutable(); recommendedCustomerSitelinkAssets_.add(index, value); onChanged(); } else { recommendedCustomerSitelinkAssetsBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCustomerSitelinkAssets( com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { ensureRecommendedCustomerSitelinkAssetsIsMutable(); recommendedCustomerSitelinkAssets_.add(builderForValue.build()); onChanged(); } else { recommendedCustomerSitelinkAssetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedCustomerSitelinkAssets( int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { ensureRecommendedCustomerSitelinkAssetsIsMutable(); recommendedCustomerSitelinkAssets_.add(index, builderForValue.build()); onChanged(); } else { recommendedCustomerSitelinkAssetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllRecommendedCustomerSitelinkAssets( java.lang.Iterable values) { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { ensureRecommendedCustomerSitelinkAssetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recommendedCustomerSitelinkAssets_); onChanged(); } else { recommendedCustomerSitelinkAssetsBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRecommendedCustomerSitelinkAssets() { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { recommendedCustomerSitelinkAssets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { recommendedCustomerSitelinkAssetsBuilder_.clear(); } return this; } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeRecommendedCustomerSitelinkAssets(int index) { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { ensureRecommendedCustomerSitelinkAssetsIsMutable(); recommendedCustomerSitelinkAssets_.remove(index); onChanged(); } else { recommendedCustomerSitelinkAssetsBuilder_.remove(index); } return this; } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder getRecommendedCustomerSitelinkAssetsBuilder( int index) { return getRecommendedCustomerSitelinkAssetsFieldBuilder().getBuilder(index); } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerSitelinkAssetsOrBuilder( int index) { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { return recommendedCustomerSitelinkAssets_.get(index); } else { return recommendedCustomerSitelinkAssetsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCustomerSitelinkAssetsOrBuilderList() { if (recommendedCustomerSitelinkAssetsBuilder_ != null) { return recommendedCustomerSitelinkAssetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recommendedCustomerSitelinkAssets_); } } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCustomerSitelinkAssetsBuilder() { return getRecommendedCustomerSitelinkAssetsFieldBuilder().addBuilder( com.google.ads.googleads.v16.resources.Asset.getDefaultInstance()); } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCustomerSitelinkAssetsBuilder( int index) { return getRecommendedCustomerSitelinkAssetsFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.resources.Asset.getDefaultInstance()); } /** *
       * Output only. New sitelink assets recommended at the customer level.
       * 
* * repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedCustomerSitelinkAssetsBuilderList() { return getRecommendedCustomerSitelinkAssetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> getRecommendedCustomerSitelinkAssetsFieldBuilder() { if (recommendedCustomerSitelinkAssetsBuilder_ == null) { recommendedCustomerSitelinkAssetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>( recommendedCustomerSitelinkAssets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); recommendedCustomerSitelinkAssets_ = null; } return recommendedCustomerSitelinkAssetsBuilder_; } @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.v16.resources.Recommendation.SitelinkAssetRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CallAssetRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * The call asset recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation} */ public static final class CallAssetRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) CallAssetRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use CallAssetRecommendation.newBuilder() to construct. private CallAssetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CallAssetRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CallAssetRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CallAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CallAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.CallAssetRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation 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; } /** *
     * The call asset recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CallAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CallAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CallAssetRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation(this); 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.v16.resources.Recommendation.CallAssetRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.CallAssetRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeywordMatchTypeRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The existing keyword where the match type should be more
     * broad.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keyword field is set. */ boolean hasKeyword(); /** *
     * Output only. The existing keyword where the match type should be more
     * broad.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ com.google.ads.googleads.v16.common.KeywordInfo getKeyword(); /** *
     * Output only. The existing keyword where the match type should be more
     * broad.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder(); /** *
     * Output only. The recommended new match type.
     * 
* * .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for recommendedMatchType. */ int getRecommendedMatchTypeValue(); /** *
     * Output only. The recommended new match type.
     * 
* * .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedMatchType. */ com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType getRecommendedMatchType(); } /** *
   * The keyword match type recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation} */ public static final class KeywordMatchTypeRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) KeywordMatchTypeRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use KeywordMatchTypeRecommendation.newBuilder() to construct. private KeywordMatchTypeRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeywordMatchTypeRecommendation() { recommendedMatchType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new KeywordMatchTypeRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordMatchTypeRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordMatchTypeRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.Builder.class); } private int bitField0_; public static final int KEYWORD_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.common.KeywordInfo keyword_; /** *
     * Output only. The existing keyword where the match type should be more
     * broad.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keyword field is set. */ @java.lang.Override public boolean hasKeyword() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The existing keyword where the match type should be more
     * broad.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ @java.lang.Override public com.google.ads.googleads.v16.common.KeywordInfo getKeyword() { return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_; } /** *
     * Output only. The existing keyword where the match type should be more
     * broad.
     * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder() { return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_; } public static final int RECOMMENDED_MATCH_TYPE_FIELD_NUMBER = 2; private int recommendedMatchType_ = 0; /** *
     * Output only. The recommended new match type.
     * 
* * .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for recommendedMatchType. */ @java.lang.Override public int getRecommendedMatchTypeValue() { return recommendedMatchType_; } /** *
     * Output only. The recommended new match type.
     * 
* * .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedMatchType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType getRecommendedMatchType() { com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType result = com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.forNumber(recommendedMatchType_); return result == null ? com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getKeyword()); } if (recommendedMatchType_ != com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.UNSPECIFIED.getNumber()) { output.writeEnum(2, recommendedMatchType_); } 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 .computeMessageSize(1, getKeyword()); } if (recommendedMatchType_ != com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, recommendedMatchType_); } 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) obj; if (hasKeyword() != other.hasKeyword()) return false; if (hasKeyword()) { if (!getKeyword() .equals(other.getKeyword())) return false; } if (recommendedMatchType_ != other.recommendedMatchType_) 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 (hasKeyword()) { hash = (37 * hash) + KEYWORD_FIELD_NUMBER; hash = (53 * hash) + getKeyword().hashCode(); } hash = (37 * hash) + RECOMMENDED_MATCH_TYPE_FIELD_NUMBER; hash = (53 * hash) + recommendedMatchType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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; } /** *
     * The keyword match type recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordMatchTypeRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordMatchTypeRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKeywordFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; keyword_ = null; if (keywordBuilder_ != null) { keywordBuilder_.dispose(); keywordBuilder_ = null; } recommendedMatchType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordMatchTypeRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.keyword_ = keywordBuilder_ == null ? keyword_ : keywordBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.recommendedMatchType_ = recommendedMatchType_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance()) return this; if (other.hasKeyword()) { mergeKeyword(other.getKeyword()); } if (other.recommendedMatchType_ != 0) { setRecommendedMatchTypeValue(other.getRecommendedMatchTypeValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getKeywordFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { recommendedMatchType_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 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 com.google.ads.googleads.v16.common.KeywordInfo keyword_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder> keywordBuilder_; /** *
       * Output only. The existing keyword where the match type should be more
       * broad.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keyword field is set. */ public boolean hasKeyword() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The existing keyword where the match type should be more
       * broad.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ public com.google.ads.googleads.v16.common.KeywordInfo getKeyword() { if (keywordBuilder_ == null) { return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_; } else { return keywordBuilder_.getMessage(); } } /** *
       * Output only. The existing keyword where the match type should be more
       * broad.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword(com.google.ads.googleads.v16.common.KeywordInfo value) { if (keywordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyword_ = value; } else { keywordBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The existing keyword where the match type should be more
       * broad.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword( com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) { if (keywordBuilder_ == null) { keyword_ = builderForValue.build(); } else { keywordBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The existing keyword where the match type should be more
       * broad.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeKeyword(com.google.ads.googleads.v16.common.KeywordInfo value) { if (keywordBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && keyword_ != null && keyword_ != com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance()) { getKeywordBuilder().mergeFrom(value); } else { keyword_ = value; } } else { keywordBuilder_.mergeFrom(value); } if (keyword_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The existing keyword where the match type should be more
       * broad.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearKeyword() { bitField0_ = (bitField0_ & ~0x00000001); keyword_ = null; if (keywordBuilder_ != null) { keywordBuilder_.dispose(); keywordBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The existing keyword where the match type should be more
       * broad.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfo.Builder getKeywordBuilder() { bitField0_ |= 0x00000001; onChanged(); return getKeywordFieldBuilder().getBuilder(); } /** *
       * Output only. The existing keyword where the match type should be more
       * broad.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder() { if (keywordBuilder_ != null) { return keywordBuilder_.getMessageOrBuilder(); } else { return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_; } } /** *
       * Output only. The existing keyword where the match type should be more
       * broad.
       * 
* * .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder> getKeywordFieldBuilder() { if (keywordBuilder_ == null) { keywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>( getKeyword(), getParentForChildren(), isClean()); keyword_ = null; } return keywordBuilder_; } private int recommendedMatchType_ = 0; /** *
       * Output only. The recommended new match type.
       * 
* * .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for recommendedMatchType. */ @java.lang.Override public int getRecommendedMatchTypeValue() { return recommendedMatchType_; } /** *
       * Output only. The recommended new match type.
       * 
* * .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for recommendedMatchType to set. * @return This builder for chaining. */ public Builder setRecommendedMatchTypeValue(int value) { recommendedMatchType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The recommended new match type.
       * 
* * .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedMatchType. */ @java.lang.Override public com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType getRecommendedMatchType() { com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType result = com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.forNumber(recommendedMatchType_); return result == null ? com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.UNRECOGNIZED : result; } /** *
       * Output only. The recommended new match type.
       * 
* * .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedMatchType to set. * @return This builder for chaining. */ public Builder setRecommendedMatchType(com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; recommendedMatchType_ = value.getNumber(); onChanged(); return this; } /** *
       * Output only. The recommended new match type.
       * 
* * .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedMatchType() { bitField0_ = (bitField0_ & ~0x00000002); recommendedMatchType_ = 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MoveUnusedBudgetRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The excess budget's resource_name.
     * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCampaignBudget field is set. */ boolean hasExcessCampaignBudget(); /** *
     * Output only. The excess budget's resource_name.
     * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCampaignBudget. */ java.lang.String getExcessCampaignBudget(); /** *
     * Output only. The excess budget's resource_name.
     * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for excessCampaignBudget. */ com.google.protobuf.ByteString getExcessCampaignBudgetBytes(); /** *
     * Output only. The recommendation for the constrained budget to increase.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the budgetRecommendation field is set. */ boolean hasBudgetRecommendation(); /** *
     * Output only. The recommendation for the constrained budget to increase.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The budgetRecommendation. */ com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getBudgetRecommendation(); /** *
     * Output only. The recommendation for the constrained budget to increase.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getBudgetRecommendationOrBuilder(); } /** *
   * The move unused budget recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation} */ public static final class MoveUnusedBudgetRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) MoveUnusedBudgetRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use MoveUnusedBudgetRecommendation.newBuilder() to construct. private MoveUnusedBudgetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MoveUnusedBudgetRecommendation() { excessCampaignBudget_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MoveUnusedBudgetRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MoveUnusedBudgetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MoveUnusedBudgetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder.class); } private int bitField0_; public static final int EXCESS_CAMPAIGN_BUDGET_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object excessCampaignBudget_ = ""; /** *
     * Output only. The excess budget's resource_name.
     * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCampaignBudget field is set. */ @java.lang.Override public boolean hasExcessCampaignBudget() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The excess budget's resource_name.
     * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCampaignBudget. */ @java.lang.Override public java.lang.String getExcessCampaignBudget() { java.lang.Object ref = excessCampaignBudget_; 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(); excessCampaignBudget_ = s; return s; } } /** *
     * Output only. The excess budget's resource_name.
     * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for excessCampaignBudget. */ @java.lang.Override public com.google.protobuf.ByteString getExcessCampaignBudgetBytes() { java.lang.Object ref = excessCampaignBudget_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); excessCampaignBudget_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUDGET_RECOMMENDATION_FIELD_NUMBER = 2; private com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budgetRecommendation_; /** *
     * Output only. The recommendation for the constrained budget to increase.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the budgetRecommendation field is set. */ @java.lang.Override public boolean hasBudgetRecommendation() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. The recommendation for the constrained budget to increase.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The budgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getBudgetRecommendation() { return budgetRecommendation_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance() : budgetRecommendation_; } /** *
     * Output only. The recommendation for the constrained budget to increase.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getBudgetRecommendationOrBuilder() { return budgetRecommendation_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance() : budgetRecommendation_; } 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_ & 0x00000002) != 0)) { output.writeMessage(2, getBudgetRecommendation()); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, excessCampaignBudget_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBudgetRecommendation()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, excessCampaignBudget_); } 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) obj; if (hasExcessCampaignBudget() != other.hasExcessCampaignBudget()) return false; if (hasExcessCampaignBudget()) { if (!getExcessCampaignBudget() .equals(other.getExcessCampaignBudget())) return false; } if (hasBudgetRecommendation() != other.hasBudgetRecommendation()) return false; if (hasBudgetRecommendation()) { if (!getBudgetRecommendation() .equals(other.getBudgetRecommendation())) 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 (hasExcessCampaignBudget()) { hash = (37 * hash) + EXCESS_CAMPAIGN_BUDGET_FIELD_NUMBER; hash = (53 * hash) + getExcessCampaignBudget().hashCode(); } if (hasBudgetRecommendation()) { hash = (37 * hash) + BUDGET_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getBudgetRecommendation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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; } /** *
     * The move unused budget recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MoveUnusedBudgetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MoveUnusedBudgetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBudgetRecommendationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; excessCampaignBudget_ = ""; budgetRecommendation_ = null; if (budgetRecommendationBuilder_ != null) { budgetRecommendationBuilder_.dispose(); budgetRecommendationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MoveUnusedBudgetRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.excessCampaignBudget_ = excessCampaignBudget_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.budgetRecommendation_ = budgetRecommendationBuilder_ == null ? budgetRecommendation_ : budgetRecommendationBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance()) return this; if (other.hasExcessCampaignBudget()) { excessCampaignBudget_ = other.excessCampaignBudget_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasBudgetRecommendation()) { mergeBudgetRecommendation(other.getBudgetRecommendation()); } 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 18: { input.readMessage( getBudgetRecommendationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { excessCampaignBudget_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object excessCampaignBudget_ = ""; /** *
       * Output only. The excess budget's resource_name.
       * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the excessCampaignBudget field is set. */ public boolean hasExcessCampaignBudget() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The excess budget's resource_name.
       * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The excessCampaignBudget. */ public java.lang.String getExcessCampaignBudget() { java.lang.Object ref = excessCampaignBudget_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); excessCampaignBudget_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The excess budget's resource_name.
       * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for excessCampaignBudget. */ public com.google.protobuf.ByteString getExcessCampaignBudgetBytes() { java.lang.Object ref = excessCampaignBudget_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); excessCampaignBudget_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The excess budget's resource_name.
       * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The excessCampaignBudget to set. * @return This builder for chaining. */ public Builder setExcessCampaignBudget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } excessCampaignBudget_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The excess budget's resource_name.
       * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExcessCampaignBudget() { excessCampaignBudget_ = getDefaultInstance().getExcessCampaignBudget(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Output only. The excess budget's resource_name.
       * 
* * optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for excessCampaignBudget to set. * @return This builder for chaining. */ public Builder setExcessCampaignBudgetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); excessCampaignBudget_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budgetRecommendation_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> budgetRecommendationBuilder_; /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the budgetRecommendation field is set. */ public boolean hasBudgetRecommendation() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The budgetRecommendation. */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getBudgetRecommendation() { if (budgetRecommendationBuilder_ == null) { return budgetRecommendation_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance() : budgetRecommendation_; } else { return budgetRecommendationBuilder_.getMessage(); } } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation value) { if (budgetRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } budgetRecommendation_ = value; } else { budgetRecommendationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBudgetRecommendation( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder builderForValue) { if (budgetRecommendationBuilder_ == null) { budgetRecommendation_ = builderForValue.build(); } else { budgetRecommendationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation value) { if (budgetRecommendationBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && budgetRecommendation_ != null && budgetRecommendation_ != com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance()) { getBudgetRecommendationBuilder().mergeFrom(value); } else { budgetRecommendation_ = value; } } else { budgetRecommendationBuilder_.mergeFrom(value); } if (budgetRecommendation_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearBudgetRecommendation() { bitField0_ = (bitField0_ & ~0x00000002); budgetRecommendation_ = null; if (budgetRecommendationBuilder_ != null) { budgetRecommendationBuilder_.dispose(); budgetRecommendationBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder getBudgetRecommendationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBudgetRecommendationFieldBuilder().getBuilder(); } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getBudgetRecommendationOrBuilder() { if (budgetRecommendationBuilder_ != null) { return budgetRecommendationBuilder_.getMessageOrBuilder(); } else { return budgetRecommendation_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance() : budgetRecommendation_; } } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> getBudgetRecommendationFieldBuilder() { if (budgetRecommendationBuilder_ == null) { budgetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder>( getBudgetRecommendation(), getParentForChildren(), isClean()); budgetRecommendation_ = null; } return budgetRecommendationBuilder_; } @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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TargetRoasOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The recommended target ROAS (revenue per unit of spend).
     * The value is between 0.01 and 1000.0, inclusive.
     * 
* * optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedTargetRoas field is set. */ boolean hasRecommendedTargetRoas(); /** *
     * Output only. The recommended target ROAS (revenue per unit of spend).
     * The value is between 0.01 and 1000.0, inclusive.
     * 
* * optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetRoas. */ double getRecommendedTargetRoas(); /** *
     * Output only. The minimum campaign budget, in local currency for the
     * account, required to achieve the target ROAS. Amount is specified in
     * micros, where one million is equivalent to one currency unit.
     * 
* * optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the requiredCampaignBudgetAmountMicros field is set. */ boolean hasRequiredCampaignBudgetAmountMicros(); /** *
     * Output only. The minimum campaign budget, in local currency for the
     * account, required to achieve the target ROAS. Amount is specified in
     * micros, where one million is equivalent to one currency unit.
     * 
* * optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredCampaignBudgetAmountMicros. */ long getRequiredCampaignBudgetAmountMicros(); } /** *
   * The Target ROAS opt-in recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation} */ public static final class TargetRoasOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) TargetRoasOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use TargetRoasOptInRecommendation.newBuilder() to construct. private TargetRoasOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TargetRoasOptInRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TargetRoasOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetRoasOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetRoasOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.Builder.class); } private int bitField0_; public static final int RECOMMENDED_TARGET_ROAS_FIELD_NUMBER = 1; private double recommendedTargetRoas_ = 0D; /** *
     * Output only. The recommended target ROAS (revenue per unit of spend).
     * The value is between 0.01 and 1000.0, inclusive.
     * 
* * optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedTargetRoas field is set. */ @java.lang.Override public boolean hasRecommendedTargetRoas() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The recommended target ROAS (revenue per unit of spend).
     * The value is between 0.01 and 1000.0, inclusive.
     * 
* * optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetRoas. */ @java.lang.Override public double getRecommendedTargetRoas() { return recommendedTargetRoas_; } public static final int REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 2; private long requiredCampaignBudgetAmountMicros_ = 0L; /** *
     * Output only. The minimum campaign budget, in local currency for the
     * account, required to achieve the target ROAS. Amount is specified in
     * micros, where one million is equivalent to one currency unit.
     * 
* * optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the requiredCampaignBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasRequiredCampaignBudgetAmountMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. The minimum campaign budget, in local currency for the
     * account, required to achieve the target ROAS. Amount is specified in
     * micros, where one million is equivalent to one currency unit.
     * 
* * optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredCampaignBudgetAmountMicros. */ @java.lang.Override public long getRequiredCampaignBudgetAmountMicros() { return requiredCampaignBudgetAmountMicros_; } 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.writeDouble(1, recommendedTargetRoas_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, requiredCampaignBudgetAmountMicros_); } 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 .computeDoubleSize(1, recommendedTargetRoas_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, requiredCampaignBudgetAmountMicros_); } 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.v16.resources.Recommendation.TargetRoasOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) obj; if (hasRecommendedTargetRoas() != other.hasRecommendedTargetRoas()) return false; if (hasRecommendedTargetRoas()) { if (java.lang.Double.doubleToLongBits(getRecommendedTargetRoas()) != java.lang.Double.doubleToLongBits( other.getRecommendedTargetRoas())) return false; } if (hasRequiredCampaignBudgetAmountMicros() != other.hasRequiredCampaignBudgetAmountMicros()) return false; if (hasRequiredCampaignBudgetAmountMicros()) { if (getRequiredCampaignBudgetAmountMicros() != other.getRequiredCampaignBudgetAmountMicros()) 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 (hasRecommendedTargetRoas()) { hash = (37 * hash) + RECOMMENDED_TARGET_ROAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRecommendedTargetRoas())); } if (hasRequiredCampaignBudgetAmountMicros()) { hash = (37 * hash) + REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRequiredCampaignBudgetAmountMicros()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation 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; } /** *
     * The Target ROAS opt-in recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetRoasOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetRoasOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recommendedTargetRoas_ = 0D; requiredCampaignBudgetAmountMicros_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetRoasOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.recommendedTargetRoas_ = recommendedTargetRoas_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.requiredCampaignBudgetAmountMicros_ = requiredCampaignBudgetAmountMicros_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance()) return this; if (other.hasRecommendedTargetRoas()) { setRecommendedTargetRoas(other.getRecommendedTargetRoas()); } if (other.hasRequiredCampaignBudgetAmountMicros()) { setRequiredCampaignBudgetAmountMicros(other.getRequiredCampaignBudgetAmountMicros()); } 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 9: { recommendedTargetRoas_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 16: { requiredCampaignBudgetAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 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 double recommendedTargetRoas_ ; /** *
       * Output only. The recommended target ROAS (revenue per unit of spend).
       * The value is between 0.01 and 1000.0, inclusive.
       * 
* * optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedTargetRoas field is set. */ @java.lang.Override public boolean hasRecommendedTargetRoas() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The recommended target ROAS (revenue per unit of spend).
       * The value is between 0.01 and 1000.0, inclusive.
       * 
* * optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetRoas. */ @java.lang.Override public double getRecommendedTargetRoas() { return recommendedTargetRoas_; } /** *
       * Output only. The recommended target ROAS (revenue per unit of spend).
       * The value is between 0.01 and 1000.0, inclusive.
       * 
* * optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedTargetRoas to set. * @return This builder for chaining. */ public Builder setRecommendedTargetRoas(double value) { recommendedTargetRoas_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The recommended target ROAS (revenue per unit of spend).
       * The value is between 0.01 and 1000.0, inclusive.
       * 
* * optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedTargetRoas() { bitField0_ = (bitField0_ & ~0x00000001); recommendedTargetRoas_ = 0D; onChanged(); return this; } private long requiredCampaignBudgetAmountMicros_ ; /** *
       * Output only. The minimum campaign budget, in local currency for the
       * account, required to achieve the target ROAS. Amount is specified in
       * micros, where one million is equivalent to one currency unit.
       * 
* * optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the requiredCampaignBudgetAmountMicros field is set. */ @java.lang.Override public boolean hasRequiredCampaignBudgetAmountMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The minimum campaign budget, in local currency for the
       * account, required to achieve the target ROAS. Amount is specified in
       * micros, where one million is equivalent to one currency unit.
       * 
* * optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredCampaignBudgetAmountMicros. */ @java.lang.Override public long getRequiredCampaignBudgetAmountMicros() { return requiredCampaignBudgetAmountMicros_; } /** *
       * Output only. The minimum campaign budget, in local currency for the
       * account, required to achieve the target ROAS. Amount is specified in
       * micros, where one million is equivalent to one currency unit.
       * 
* * optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The requiredCampaignBudgetAmountMicros to set. * @return This builder for chaining. */ public Builder setRequiredCampaignBudgetAmountMicros(long value) { requiredCampaignBudgetAmountMicros_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The minimum campaign budget, in local currency for the
       * account, required to achieve the target ROAS. Amount is specified in
       * micros, where one million is equivalent to one currency unit.
       * 
* * optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRequiredCampaignBudgetAmountMicros() { bitField0_ = (bitField0_ & ~0x00000002); requiredCampaignBudgetAmountMicros_ = 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.v16.resources.Recommendation.TargetRoasOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponsiveSearchAdAssetRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the currentAd field is set. */ boolean hasCurrentAd(); /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAd. */ com.google.ads.googleads.v16.resources.Ad getCurrentAd(); /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder(); /** *
     * Output only. The recommended assets. This is populated only with the new
     * headlines and/or descriptions, and is otherwise empty.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedAssets field is set. */ boolean hasRecommendedAssets(); /** *
     * Output only. The recommended assets. This is populated only with the new
     * headlines and/or descriptions, and is otherwise empty.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedAssets. */ com.google.ads.googleads.v16.resources.Ad getRecommendedAssets(); /** *
     * Output only. The recommended assets. This is populated only with the new
     * headlines and/or descriptions, and is otherwise empty.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAssetsOrBuilder(); } /** *
   * The add responsive search ad asset recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation} */ public static final class ResponsiveSearchAdAssetRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) ResponsiveSearchAdAssetRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ResponsiveSearchAdAssetRecommendation.newBuilder() to construct. private ResponsiveSearchAdAssetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponsiveSearchAdAssetRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponsiveSearchAdAssetRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder.class); } private int bitField0_; public static final int CURRENT_AD_FIELD_NUMBER = 3; private com.google.ads.googleads.v16.resources.Ad currentAd_; /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the currentAd field is set. */ @java.lang.Override public boolean hasCurrentAd() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAd. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Ad getCurrentAd() { return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_; } /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder() { return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_; } public static final int RECOMMENDED_ASSETS_FIELD_NUMBER = 2; private com.google.ads.googleads.v16.resources.Ad recommendedAssets_; /** *
     * Output only. The recommended assets. This is populated only with the new
     * headlines and/or descriptions, and is otherwise empty.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedAssets field is set. */ @java.lang.Override public boolean hasRecommendedAssets() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. The recommended assets. This is populated only with the new
     * headlines and/or descriptions, and is otherwise empty.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedAssets. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Ad getRecommendedAssets() { return recommendedAssets_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAssets_; } /** *
     * Output only. The recommended assets. This is populated only with the new
     * headlines and/or descriptions, and is otherwise empty.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAssetsOrBuilder() { return recommendedAssets_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAssets_; } 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_ & 0x00000002) != 0)) { output.writeMessage(2, getRecommendedAssets()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getCurrentAd()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRecommendedAssets()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCurrentAd()); } 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) obj; if (hasCurrentAd() != other.hasCurrentAd()) return false; if (hasCurrentAd()) { if (!getCurrentAd() .equals(other.getCurrentAd())) return false; } if (hasRecommendedAssets() != other.hasRecommendedAssets()) return false; if (hasRecommendedAssets()) { if (!getRecommendedAssets() .equals(other.getRecommendedAssets())) 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 (hasCurrentAd()) { hash = (37 * hash) + CURRENT_AD_FIELD_NUMBER; hash = (53 * hash) + getCurrentAd().hashCode(); } if (hasRecommendedAssets()) { hash = (37 * hash) + RECOMMENDED_ASSETS_FIELD_NUMBER; hash = (53 * hash) + getRecommendedAssets().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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; } /** *
     * The add responsive search ad asset recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCurrentAdFieldBuilder(); getRecommendedAssetsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; currentAd_ = null; if (currentAdBuilder_ != null) { currentAdBuilder_.dispose(); currentAdBuilder_ = null; } recommendedAssets_ = null; if (recommendedAssetsBuilder_ != null) { recommendedAssetsBuilder_.dispose(); recommendedAssetsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.currentAd_ = currentAdBuilder_ == null ? currentAd_ : currentAdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.recommendedAssets_ = recommendedAssetsBuilder_ == null ? recommendedAssets_ : recommendedAssetsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance()) return this; if (other.hasCurrentAd()) { mergeCurrentAd(other.getCurrentAd()); } if (other.hasRecommendedAssets()) { mergeRecommendedAssets(other.getRecommendedAssets()); } 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 18: { input.readMessage( getRecommendedAssetsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getCurrentAdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 26 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 com.google.ads.googleads.v16.resources.Ad currentAd_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> currentAdBuilder_; /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the currentAd field is set. */ public boolean hasCurrentAd() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAd. */ public com.google.ads.googleads.v16.resources.Ad getCurrentAd() { if (currentAdBuilder_ == null) { return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_; } else { return currentAdBuilder_.getMessage(); } } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCurrentAd(com.google.ads.googleads.v16.resources.Ad value) { if (currentAdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentAd_ = value; } else { currentAdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCurrentAd( com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) { if (currentAdBuilder_ == null) { currentAd_ = builderForValue.build(); } else { currentAdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCurrentAd(com.google.ads.googleads.v16.resources.Ad value) { if (currentAdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && currentAd_ != null && currentAd_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) { getCurrentAdBuilder().mergeFrom(value); } else { currentAd_ = value; } } else { currentAdBuilder_.mergeFrom(value); } if (currentAd_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCurrentAd() { bitField0_ = (bitField0_ & ~0x00000001); currentAd_ = null; if (currentAdBuilder_ != null) { currentAdBuilder_.dispose(); currentAdBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Ad.Builder getCurrentAdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCurrentAdFieldBuilder().getBuilder(); } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder() { if (currentAdBuilder_ != null) { return currentAdBuilder_.getMessageOrBuilder(); } else { return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_; } } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> getCurrentAdFieldBuilder() { if (currentAdBuilder_ == null) { currentAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>( getCurrentAd(), getParentForChildren(), isClean()); currentAd_ = null; } return currentAdBuilder_; } private com.google.ads.googleads.v16.resources.Ad recommendedAssets_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> recommendedAssetsBuilder_; /** *
       * Output only. The recommended assets. This is populated only with the new
       * headlines and/or descriptions, and is otherwise empty.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedAssets field is set. */ public boolean hasRecommendedAssets() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The recommended assets. This is populated only with the new
       * headlines and/or descriptions, and is otherwise empty.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedAssets. */ public com.google.ads.googleads.v16.resources.Ad getRecommendedAssets() { if (recommendedAssetsBuilder_ == null) { return recommendedAssets_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAssets_; } else { return recommendedAssetsBuilder_.getMessage(); } } /** *
       * Output only. The recommended assets. This is populated only with the new
       * headlines and/or descriptions, and is otherwise empty.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedAssets(com.google.ads.googleads.v16.resources.Ad value) { if (recommendedAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendedAssets_ = value; } else { recommendedAssetsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The recommended assets. This is populated only with the new
       * headlines and/or descriptions, and is otherwise empty.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedAssets( com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) { if (recommendedAssetsBuilder_ == null) { recommendedAssets_ = builderForValue.build(); } else { recommendedAssetsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The recommended assets. This is populated only with the new
       * headlines and/or descriptions, and is otherwise empty.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRecommendedAssets(com.google.ads.googleads.v16.resources.Ad value) { if (recommendedAssetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && recommendedAssets_ != null && recommendedAssets_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) { getRecommendedAssetsBuilder().mergeFrom(value); } else { recommendedAssets_ = value; } } else { recommendedAssetsBuilder_.mergeFrom(value); } if (recommendedAssets_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Output only. The recommended assets. This is populated only with the new
       * headlines and/or descriptions, and is otherwise empty.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRecommendedAssets() { bitField0_ = (bitField0_ & ~0x00000002); recommendedAssets_ = null; if (recommendedAssetsBuilder_ != null) { recommendedAssetsBuilder_.dispose(); recommendedAssetsBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The recommended assets. This is populated only with the new
       * headlines and/or descriptions, and is otherwise empty.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Ad.Builder getRecommendedAssetsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRecommendedAssetsFieldBuilder().getBuilder(); } /** *
       * Output only. The recommended assets. This is populated only with the new
       * headlines and/or descriptions, and is otherwise empty.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAssetsOrBuilder() { if (recommendedAssetsBuilder_ != null) { return recommendedAssetsBuilder_.getMessageOrBuilder(); } else { return recommendedAssets_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAssets_; } } /** *
       * Output only. The recommended assets. This is populated only with the new
       * headlines and/or descriptions, and is otherwise empty.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> getRecommendedAssetsFieldBuilder() { if (recommendedAssetsBuilder_ == null) { recommendedAssetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>( getRecommendedAssets(), getParentForChildren(), isClean()); recommendedAssets_ = null; } return recommendedAssetsBuilder_; } @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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the currentAd field is set. */ boolean hasCurrentAd(); /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAd. */ com.google.ads.googleads.v16.resources.Ad getCurrentAd(); /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder(); /** *
     * Output only. The updated ad.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedAd field is set. */ boolean hasRecommendedAd(); /** *
     * Output only. The updated ad.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedAd. */ com.google.ads.googleads.v16.resources.Ad getRecommendedAd(); /** *
     * Output only. The updated ad.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAdOrBuilder(); } /** *
   * The responsive search ad improve ad strength recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation} */ public static final class ResponsiveSearchAdImproveAdStrengthRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) ResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ResponsiveSearchAdImproveAdStrengthRecommendation.newBuilder() to construct. private ResponsiveSearchAdImproveAdStrengthRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponsiveSearchAdImproveAdStrengthRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponsiveSearchAdImproveAdStrengthRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdImproveAdStrengthRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdImproveAdStrengthRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.Builder.class); } private int bitField0_; public static final int CURRENT_AD_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Ad currentAd_; /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the currentAd field is set. */ @java.lang.Override public boolean hasCurrentAd() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAd. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Ad getCurrentAd() { return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_; } /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder() { return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_; } public static final int RECOMMENDED_AD_FIELD_NUMBER = 2; private com.google.ads.googleads.v16.resources.Ad recommendedAd_; /** *
     * Output only. The updated ad.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedAd field is set. */ @java.lang.Override public boolean hasRecommendedAd() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. The updated ad.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedAd. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Ad getRecommendedAd() { return recommendedAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAd_; } /** *
     * Output only. The updated ad.
     * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAdOrBuilder() { return recommendedAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAd_; } 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.writeMessage(1, getCurrentAd()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getRecommendedAd()); } 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 .computeMessageSize(1, getCurrentAd()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRecommendedAd()); } 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) obj; if (hasCurrentAd() != other.hasCurrentAd()) return false; if (hasCurrentAd()) { if (!getCurrentAd() .equals(other.getCurrentAd())) return false; } if (hasRecommendedAd() != other.hasRecommendedAd()) return false; if (hasRecommendedAd()) { if (!getRecommendedAd() .equals(other.getRecommendedAd())) 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 (hasCurrentAd()) { hash = (37 * hash) + CURRENT_AD_FIELD_NUMBER; hash = (53 * hash) + getCurrentAd().hashCode(); } if (hasRecommendedAd()) { hash = (37 * hash) + RECOMMENDED_AD_FIELD_NUMBER; hash = (53 * hash) + getRecommendedAd().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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; } /** *
     * The responsive search ad improve ad strength recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdImproveAdStrengthRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdImproveAdStrengthRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCurrentAdFieldBuilder(); getRecommendedAdFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; currentAd_ = null; if (currentAdBuilder_ != null) { currentAdBuilder_.dispose(); currentAdBuilder_ = null; } recommendedAd_ = null; if (recommendedAdBuilder_ != null) { recommendedAdBuilder_.dispose(); recommendedAdBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdImproveAdStrengthRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.currentAd_ = currentAdBuilder_ == null ? currentAd_ : currentAdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.recommendedAd_ = recommendedAdBuilder_ == null ? recommendedAd_ : recommendedAdBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.getDefaultInstance()) return this; if (other.hasCurrentAd()) { mergeCurrentAd(other.getCurrentAd()); } if (other.hasRecommendedAd()) { mergeRecommendedAd(other.getRecommendedAd()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getCurrentAdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getRecommendedAdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 com.google.ads.googleads.v16.resources.Ad currentAd_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> currentAdBuilder_; /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the currentAd field is set. */ public boolean hasCurrentAd() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAd. */ public com.google.ads.googleads.v16.resources.Ad getCurrentAd() { if (currentAdBuilder_ == null) { return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_; } else { return currentAdBuilder_.getMessage(); } } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCurrentAd(com.google.ads.googleads.v16.resources.Ad value) { if (currentAdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentAd_ = value; } else { currentAdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCurrentAd( com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) { if (currentAdBuilder_ == null) { currentAd_ = builderForValue.build(); } else { currentAdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCurrentAd(com.google.ads.googleads.v16.resources.Ad value) { if (currentAdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && currentAd_ != null && currentAd_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) { getCurrentAdBuilder().mergeFrom(value); } else { currentAd_ = value; } } else { currentAdBuilder_.mergeFrom(value); } if (currentAd_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCurrentAd() { bitField0_ = (bitField0_ & ~0x00000001); currentAd_ = null; if (currentAdBuilder_ != null) { currentAdBuilder_.dispose(); currentAdBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Ad.Builder getCurrentAdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCurrentAdFieldBuilder().getBuilder(); } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder() { if (currentAdBuilder_ != null) { return currentAdBuilder_.getMessageOrBuilder(); } else { return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_; } } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> getCurrentAdFieldBuilder() { if (currentAdBuilder_ == null) { currentAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>( getCurrentAd(), getParentForChildren(), isClean()); currentAd_ = null; } return currentAdBuilder_; } private com.google.ads.googleads.v16.resources.Ad recommendedAd_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> recommendedAdBuilder_; /** *
       * Output only. The updated ad.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedAd field is set. */ public boolean hasRecommendedAd() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The updated ad.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedAd. */ public com.google.ads.googleads.v16.resources.Ad getRecommendedAd() { if (recommendedAdBuilder_ == null) { return recommendedAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAd_; } else { return recommendedAdBuilder_.getMessage(); } } /** *
       * Output only. The updated ad.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedAd(com.google.ads.googleads.v16.resources.Ad value) { if (recommendedAdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendedAd_ = value; } else { recommendedAdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The updated ad.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedAd( com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) { if (recommendedAdBuilder_ == null) { recommendedAd_ = builderForValue.build(); } else { recommendedAdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The updated ad.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRecommendedAd(com.google.ads.googleads.v16.resources.Ad value) { if (recommendedAdBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && recommendedAd_ != null && recommendedAd_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) { getRecommendedAdBuilder().mergeFrom(value); } else { recommendedAd_ = value; } } else { recommendedAdBuilder_.mergeFrom(value); } if (recommendedAd_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Output only. The updated ad.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRecommendedAd() { bitField0_ = (bitField0_ & ~0x00000002); recommendedAd_ = null; if (recommendedAdBuilder_ != null) { recommendedAdBuilder_.dispose(); recommendedAdBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The updated ad.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Ad.Builder getRecommendedAdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRecommendedAdFieldBuilder().getBuilder(); } /** *
       * Output only. The updated ad.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAdOrBuilder() { if (recommendedAdBuilder_ != null) { return recommendedAdBuilder_.getMessageOrBuilder(); } else { return recommendedAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAd_; } } /** *
       * Output only. The updated ad.
       * 
* * .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> getRecommendedAdFieldBuilder() { if (recommendedAdBuilder_ == null) { recommendedAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>( getRecommendedAd(), getParentForChildren(), isClean()); recommendedAd_ = null; } return recommendedAdBuilder_; } @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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponsiveSearchAdRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ad field is set. */ boolean hasAd(); /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ com.google.ads.googleads.v16.resources.Ad getAd(); /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder(); } /** *
   * The add responsive search ad recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation} */ public static final class ResponsiveSearchAdRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) ResponsiveSearchAdRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ResponsiveSearchAdRecommendation.newBuilder() to construct. private ResponsiveSearchAdRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponsiveSearchAdRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponsiveSearchAdRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder.class); } private int bitField0_; public static final int AD_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Ad ad_; /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ad field is set. */ @java.lang.Override public boolean hasAd() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Ad getAd() { return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_; } /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder() { return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_; } 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.writeMessage(1, getAd()); } 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 .computeMessageSize(1, getAd()); } 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) obj; if (hasAd() != other.hasAd()) return false; if (hasAd()) { if (!getAd() .equals(other.getAd())) 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 (hasAd()) { hash = (37 * hash) + AD_FIELD_NUMBER; hash = (53 * hash) + getAd().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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; } /** *
     * The add responsive search ad recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAdFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ad_ = null; if (adBuilder_ != null) { adBuilder_.dispose(); adBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.ad_ = adBuilder_ == null ? ad_ : adBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance()) return this; if (other.hasAd()) { mergeAd(other.getAd()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getAdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 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 com.google.ads.googleads.v16.resources.Ad ad_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> adBuilder_; /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ad field is set. */ public boolean hasAd() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ public com.google.ads.googleads.v16.resources.Ad getAd() { if (adBuilder_ == null) { return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_; } else { return adBuilder_.getMessage(); } } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAd(com.google.ads.googleads.v16.resources.Ad value) { if (adBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ad_ = value; } else { adBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAd( com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) { if (adBuilder_ == null) { ad_ = builderForValue.build(); } else { adBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAd(com.google.ads.googleads.v16.resources.Ad value) { if (adBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && ad_ != null && ad_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) { getAdBuilder().mergeFrom(value); } else { ad_ = value; } } else { adBuilder_.mergeFrom(value); } if (ad_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAd() { bitField0_ = (bitField0_ & ~0x00000001); ad_ = null; if (adBuilder_ != null) { adBuilder_.dispose(); adBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Ad.Builder getAdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAdFieldBuilder().getBuilder(); } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder() { if (adBuilder_ != null) { return adBuilder_.getMessageOrBuilder(); } else { return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_; } } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> getAdFieldBuilder() { if (adBuilder_ == null) { adBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>( getAd(), getParentForChildren(), isClean()); ad_ = null; } return adBuilder_; } @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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UseBroadMatchKeywordRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getKeywordList(); /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.common.KeywordInfo getKeyword(int index); /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getKeywordCount(); /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getKeywordOrBuilderList(); /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder( int index); /** *
     * Output only. Total number of keywords to be expanded to Broad Match in
     * the campaign.
     * 
* * int64 suggested_keywords_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The suggestedKeywordsCount. */ long getSuggestedKeywordsCount(); /** *
     * Output only. Total number of keywords in the campaign.
     * 
* * int64 campaign_keywords_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignKeywordsCount. */ long getCampaignKeywordsCount(); /** *
     * Output only. Whether the associated campaign uses a shared budget.
     * 
* * bool campaign_uses_shared_budget = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignUsesSharedBudget. */ boolean getCampaignUsesSharedBudget(); /** *
     * Output only. The budget recommended to avoid becoming budget constrained
     * after applying the recommendation.
     * 
* * int64 required_campaign_budget_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredCampaignBudgetAmountMicros. */ long getRequiredCampaignBudgetAmountMicros(); } /** *
   * The use broad match keyword recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation} */ public static final class UseBroadMatchKeywordRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) UseBroadMatchKeywordRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use UseBroadMatchKeywordRecommendation.newBuilder() to construct. private UseBroadMatchKeywordRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UseBroadMatchKeywordRecommendation() { keyword_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UseBroadMatchKeywordRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UseBroadMatchKeywordRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UseBroadMatchKeywordRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder.class); } public static final int KEYWORD_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List keyword_; /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getKeywordList() { return keyword_; } /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getKeywordOrBuilderList() { return keyword_; } /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getKeywordCount() { return keyword_.size(); } /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.common.KeywordInfo getKeyword(int index) { return keyword_.get(index); } /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder( int index) { return keyword_.get(index); } public static final int SUGGESTED_KEYWORDS_COUNT_FIELD_NUMBER = 2; private long suggestedKeywordsCount_ = 0L; /** *
     * Output only. Total number of keywords to be expanded to Broad Match in
     * the campaign.
     * 
* * int64 suggested_keywords_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The suggestedKeywordsCount. */ @java.lang.Override public long getSuggestedKeywordsCount() { return suggestedKeywordsCount_; } public static final int CAMPAIGN_KEYWORDS_COUNT_FIELD_NUMBER = 3; private long campaignKeywordsCount_ = 0L; /** *
     * Output only. Total number of keywords in the campaign.
     * 
* * int64 campaign_keywords_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignKeywordsCount. */ @java.lang.Override public long getCampaignKeywordsCount() { return campaignKeywordsCount_; } public static final int CAMPAIGN_USES_SHARED_BUDGET_FIELD_NUMBER = 4; private boolean campaignUsesSharedBudget_ = false; /** *
     * Output only. Whether the associated campaign uses a shared budget.
     * 
* * bool campaign_uses_shared_budget = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignUsesSharedBudget. */ @java.lang.Override public boolean getCampaignUsesSharedBudget() { return campaignUsesSharedBudget_; } public static final int REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 5; private long requiredCampaignBudgetAmountMicros_ = 0L; /** *
     * Output only. The budget recommended to avoid becoming budget constrained
     * after applying the recommendation.
     * 
* * int64 required_campaign_budget_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredCampaignBudgetAmountMicros. */ @java.lang.Override public long getRequiredCampaignBudgetAmountMicros() { return requiredCampaignBudgetAmountMicros_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < keyword_.size(); i++) { output.writeMessage(1, keyword_.get(i)); } if (suggestedKeywordsCount_ != 0L) { output.writeInt64(2, suggestedKeywordsCount_); } if (campaignKeywordsCount_ != 0L) { output.writeInt64(3, campaignKeywordsCount_); } if (campaignUsesSharedBudget_ != false) { output.writeBool(4, campaignUsesSharedBudget_); } if (requiredCampaignBudgetAmountMicros_ != 0L) { output.writeInt64(5, requiredCampaignBudgetAmountMicros_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < keyword_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, keyword_.get(i)); } if (suggestedKeywordsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, suggestedKeywordsCount_); } if (campaignKeywordsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, campaignKeywordsCount_); } if (campaignUsesSharedBudget_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, campaignUsesSharedBudget_); } if (requiredCampaignBudgetAmountMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, requiredCampaignBudgetAmountMicros_); } 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) obj; if (!getKeywordList() .equals(other.getKeywordList())) return false; if (getSuggestedKeywordsCount() != other.getSuggestedKeywordsCount()) return false; if (getCampaignKeywordsCount() != other.getCampaignKeywordsCount()) return false; if (getCampaignUsesSharedBudget() != other.getCampaignUsesSharedBudget()) return false; if (getRequiredCampaignBudgetAmountMicros() != other.getRequiredCampaignBudgetAmountMicros()) 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 (getKeywordCount() > 0) { hash = (37 * hash) + KEYWORD_FIELD_NUMBER; hash = (53 * hash) + getKeywordList().hashCode(); } hash = (37 * hash) + SUGGESTED_KEYWORDS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSuggestedKeywordsCount()); hash = (37 * hash) + CAMPAIGN_KEYWORDS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCampaignKeywordsCount()); hash = (37 * hash) + CAMPAIGN_USES_SHARED_BUDGET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCampaignUsesSharedBudget()); hash = (37 * hash) + REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRequiredCampaignBudgetAmountMicros()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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; } /** *
     * The use broad match keyword recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UseBroadMatchKeywordRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UseBroadMatchKeywordRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (keywordBuilder_ == null) { keyword_ = java.util.Collections.emptyList(); } else { keyword_ = null; keywordBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); suggestedKeywordsCount_ = 0L; campaignKeywordsCount_ = 0L; campaignUsesSharedBudget_ = false; requiredCampaignBudgetAmountMicros_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UseBroadMatchKeywordRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation result) { if (keywordBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { keyword_ = java.util.Collections.unmodifiableList(keyword_); bitField0_ = (bitField0_ & ~0x00000001); } result.keyword_ = keyword_; } else { result.keyword_ = keywordBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.suggestedKeywordsCount_ = suggestedKeywordsCount_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.campaignKeywordsCount_ = campaignKeywordsCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.campaignUsesSharedBudget_ = campaignUsesSharedBudget_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.requiredCampaignBudgetAmountMicros_ = requiredCampaignBudgetAmountMicros_; } } @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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance()) return this; if (keywordBuilder_ == null) { if (!other.keyword_.isEmpty()) { if (keyword_.isEmpty()) { keyword_ = other.keyword_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeywordIsMutable(); keyword_.addAll(other.keyword_); } onChanged(); } } else { if (!other.keyword_.isEmpty()) { if (keywordBuilder_.isEmpty()) { keywordBuilder_.dispose(); keywordBuilder_ = null; keyword_ = other.keyword_; bitField0_ = (bitField0_ & ~0x00000001); keywordBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeywordFieldBuilder() : null; } else { keywordBuilder_.addAllMessages(other.keyword_); } } } if (other.getSuggestedKeywordsCount() != 0L) { setSuggestedKeywordsCount(other.getSuggestedKeywordsCount()); } if (other.getCampaignKeywordsCount() != 0L) { setCampaignKeywordsCount(other.getCampaignKeywordsCount()); } if (other.getCampaignUsesSharedBudget() != false) { setCampaignUsesSharedBudget(other.getCampaignUsesSharedBudget()); } if (other.getRequiredCampaignBudgetAmountMicros() != 0L) { setRequiredCampaignBudgetAmountMicros(other.getRequiredCampaignBudgetAmountMicros()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.ads.googleads.v16.common.KeywordInfo m = input.readMessage( com.google.ads.googleads.v16.common.KeywordInfo.parser(), extensionRegistry); if (keywordBuilder_ == null) { ensureKeywordIsMutable(); keyword_.add(m); } else { keywordBuilder_.addMessage(m); } break; } // case 10 case 16: { suggestedKeywordsCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { campaignKeywordsCount_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { campaignUsesSharedBudget_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { requiredCampaignBudgetAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000010; 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 java.util.List keyword_ = java.util.Collections.emptyList(); private void ensureKeywordIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keyword_ = new java.util.ArrayList(keyword_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder> keywordBuilder_; /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getKeywordList() { if (keywordBuilder_ == null) { return java.util.Collections.unmodifiableList(keyword_); } else { return keywordBuilder_.getMessageList(); } } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getKeywordCount() { if (keywordBuilder_ == null) { return keyword_.size(); } else { return keywordBuilder_.getCount(); } } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfo getKeyword(int index) { if (keywordBuilder_ == null) { return keyword_.get(index); } else { return keywordBuilder_.getMessage(index); } } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword( int index, com.google.ads.googleads.v16.common.KeywordInfo value) { if (keywordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeywordIsMutable(); keyword_.set(index, value); onChanged(); } else { keywordBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword( int index, com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) { if (keywordBuilder_ == null) { ensureKeywordIsMutable(); keyword_.set(index, builderForValue.build()); onChanged(); } else { keywordBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeyword(com.google.ads.googleads.v16.common.KeywordInfo value) { if (keywordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeywordIsMutable(); keyword_.add(value); onChanged(); } else { keywordBuilder_.addMessage(value); } return this; } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeyword( int index, com.google.ads.googleads.v16.common.KeywordInfo value) { if (keywordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeywordIsMutable(); keyword_.add(index, value); onChanged(); } else { keywordBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeyword( com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) { if (keywordBuilder_ == null) { ensureKeywordIsMutable(); keyword_.add(builderForValue.build()); onChanged(); } else { keywordBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeyword( int index, com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) { if (keywordBuilder_ == null) { ensureKeywordIsMutable(); keyword_.add(index, builderForValue.build()); onChanged(); } else { keywordBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllKeyword( java.lang.Iterable values) { if (keywordBuilder_ == null) { ensureKeywordIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keyword_); onChanged(); } else { keywordBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearKeyword() { if (keywordBuilder_ == null) { keyword_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { keywordBuilder_.clear(); } return this; } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeKeyword(int index) { if (keywordBuilder_ == null) { ensureKeywordIsMutable(); keyword_.remove(index); onChanged(); } else { keywordBuilder_.remove(index); } return this; } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfo.Builder getKeywordBuilder( int index) { return getKeywordFieldBuilder().getBuilder(index); } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder( int index) { if (keywordBuilder_ == null) { return keyword_.get(index); } else { return keywordBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getKeywordOrBuilderList() { if (keywordBuilder_ != null) { return keywordBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(keyword_); } } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfo.Builder addKeywordBuilder() { return getKeywordFieldBuilder().addBuilder( com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance()); } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfo.Builder addKeywordBuilder( int index) { return getKeywordFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance()); } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getKeywordBuilderList() { return getKeywordFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder> getKeywordFieldBuilder() { if (keywordBuilder_ == null) { keywordBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>( keyword_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); keyword_ = null; } return keywordBuilder_; } private long suggestedKeywordsCount_ ; /** *
       * Output only. Total number of keywords to be expanded to Broad Match in
       * the campaign.
       * 
* * int64 suggested_keywords_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The suggestedKeywordsCount. */ @java.lang.Override public long getSuggestedKeywordsCount() { return suggestedKeywordsCount_; } /** *
       * Output only. Total number of keywords to be expanded to Broad Match in
       * the campaign.
       * 
* * int64 suggested_keywords_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The suggestedKeywordsCount to set. * @return This builder for chaining. */ public Builder setSuggestedKeywordsCount(long value) { suggestedKeywordsCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Total number of keywords to be expanded to Broad Match in
       * the campaign.
       * 
* * int64 suggested_keywords_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSuggestedKeywordsCount() { bitField0_ = (bitField0_ & ~0x00000002); suggestedKeywordsCount_ = 0L; onChanged(); return this; } private long campaignKeywordsCount_ ; /** *
       * Output only. Total number of keywords in the campaign.
       * 
* * int64 campaign_keywords_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignKeywordsCount. */ @java.lang.Override public long getCampaignKeywordsCount() { return campaignKeywordsCount_; } /** *
       * Output only. Total number of keywords in the campaign.
       * 
* * int64 campaign_keywords_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The campaignKeywordsCount to set. * @return This builder for chaining. */ public Builder setCampaignKeywordsCount(long value) { campaignKeywordsCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. Total number of keywords in the campaign.
       * 
* * int64 campaign_keywords_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCampaignKeywordsCount() { bitField0_ = (bitField0_ & ~0x00000004); campaignKeywordsCount_ = 0L; onChanged(); return this; } private boolean campaignUsesSharedBudget_ ; /** *
       * Output only. Whether the associated campaign uses a shared budget.
       * 
* * bool campaign_uses_shared_budget = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignUsesSharedBudget. */ @java.lang.Override public boolean getCampaignUsesSharedBudget() { return campaignUsesSharedBudget_; } /** *
       * Output only. Whether the associated campaign uses a shared budget.
       * 
* * bool campaign_uses_shared_budget = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The campaignUsesSharedBudget to set. * @return This builder for chaining. */ public Builder setCampaignUsesSharedBudget(boolean value) { campaignUsesSharedBudget_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Output only. Whether the associated campaign uses a shared budget.
       * 
* * bool campaign_uses_shared_budget = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCampaignUsesSharedBudget() { bitField0_ = (bitField0_ & ~0x00000008); campaignUsesSharedBudget_ = false; onChanged(); return this; } private long requiredCampaignBudgetAmountMicros_ ; /** *
       * Output only. The budget recommended to avoid becoming budget constrained
       * after applying the recommendation.
       * 
* * int64 required_campaign_budget_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredCampaignBudgetAmountMicros. */ @java.lang.Override public long getRequiredCampaignBudgetAmountMicros() { return requiredCampaignBudgetAmountMicros_; } /** *
       * Output only. The budget recommended to avoid becoming budget constrained
       * after applying the recommendation.
       * 
* * int64 required_campaign_budget_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The requiredCampaignBudgetAmountMicros to set. * @return This builder for chaining. */ public Builder setRequiredCampaignBudgetAmountMicros(long value) { requiredCampaignBudgetAmountMicros_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Output only. The budget recommended to avoid becoming budget constrained
       * after applying the recommendation.
       * 
* * int64 required_campaign_budget_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRequiredCampaignBudgetAmountMicros() { bitField0_ = (bitField0_ & ~0x00000010); requiredCampaignBudgetAmountMicros_ = 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. ID of Merchant Center account.
     * 
* * int64 merchant_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchantId. */ long getMerchantId(); /** *
     * Output only. Country whose products from merchant's inventory should be
     * included.
     * 
* * string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The salesCountryCode. */ java.lang.String getSalesCountryCode(); /** *
     * Output only. Country whose products from merchant's inventory should be
     * included.
     * 
* * string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for salesCountryCode. */ com.google.protobuf.ByteString getSalesCountryCodeBytes(); } /** *
   * The upgrade a Smart Shopping campaign to a Performance Max campaign
   * recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation} */ public static final class UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.newBuilder() to construct. private UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation() { salesCountryCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.Builder.class); } public static final int MERCHANT_ID_FIELD_NUMBER = 1; private long merchantId_ = 0L; /** *
     * Output only. ID of Merchant Center account.
     * 
* * int64 merchant_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchantId. */ @java.lang.Override public long getMerchantId() { return merchantId_; } public static final int SALES_COUNTRY_CODE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object salesCountryCode_ = ""; /** *
     * Output only. Country whose products from merchant's inventory should be
     * included.
     * 
* * string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The salesCountryCode. */ @java.lang.Override public java.lang.String getSalesCountryCode() { java.lang.Object ref = salesCountryCode_; 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(); salesCountryCode_ = s; return s; } } /** *
     * Output only. Country whose products from merchant's inventory should be
     * included.
     * 
* * string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for salesCountryCode. */ @java.lang.Override public com.google.protobuf.ByteString getSalesCountryCodeBytes() { java.lang.Object ref = salesCountryCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); salesCountryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (merchantId_ != 0L) { output.writeInt64(1, merchantId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salesCountryCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, salesCountryCode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (merchantId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, merchantId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salesCountryCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, salesCountryCode_); } 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) obj; if (getMerchantId() != other.getMerchantId()) return false; if (!getSalesCountryCode() .equals(other.getSalesCountryCode())) 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(); hash = (37 * hash) + MERCHANT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMerchantId()); hash = (37 * hash) + SALES_COUNTRY_CODE_FIELD_NUMBER; hash = (53 * hash) + getSalesCountryCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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; } /** *
     * The upgrade a Smart Shopping campaign to a Performance Max campaign
     * recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; merchantId_ = 0L; salesCountryCode_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.merchantId_ = merchantId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.salesCountryCode_ = salesCountryCode_; } } @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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.getDefaultInstance()) return this; if (other.getMerchantId() != 0L) { setMerchantId(other.getMerchantId()); } if (!other.getSalesCountryCode().isEmpty()) { salesCountryCode_ = other.salesCountryCode_; bitField0_ |= 0x00000002; onChanged(); } 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 8: { merchantId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { salesCountryCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 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 merchantId_ ; /** *
       * Output only. ID of Merchant Center account.
       * 
* * int64 merchant_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchantId. */ @java.lang.Override public long getMerchantId() { return merchantId_; } /** *
       * Output only. ID of Merchant Center account.
       * 
* * int64 merchant_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The merchantId to set. * @return This builder for chaining. */ public Builder setMerchantId(long value) { merchantId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. ID of Merchant Center account.
       * 
* * int64 merchant_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearMerchantId() { bitField0_ = (bitField0_ & ~0x00000001); merchantId_ = 0L; onChanged(); return this; } private java.lang.Object salesCountryCode_ = ""; /** *
       * Output only. Country whose products from merchant's inventory should be
       * included.
       * 
* * string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The salesCountryCode. */ public java.lang.String getSalesCountryCode() { java.lang.Object ref = salesCountryCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); salesCountryCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. Country whose products from merchant's inventory should be
       * included.
       * 
* * string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for salesCountryCode. */ public com.google.protobuf.ByteString getSalesCountryCodeBytes() { java.lang.Object ref = salesCountryCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); salesCountryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. Country whose products from merchant's inventory should be
       * included.
       * 
* * string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The salesCountryCode to set. * @return This builder for chaining. */ public Builder setSalesCountryCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } salesCountryCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Country whose products from merchant's inventory should be
       * included.
       * 
* * string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSalesCountryCode() { salesCountryCode_ = getDefaultInstance().getSalesCountryCode(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. Country whose products from merchant's inventory should be
       * included.
       * 
* * string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for salesCountryCode to set. * @return This builder for chaining. */ public Builder setSalesCountryCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); salesCountryCode_ = value; bitField0_ |= 0x00000002; 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RaiseTargetCpaBidTooLowRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. A number greater than 1.0 indicating the factor by which we
     * recommend the target CPA should be increased.
     * 
* * optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedTargetMultiplier field is set. */ boolean hasRecommendedTargetMultiplier(); /** *
     * Output only. A number greater than 1.0 indicating the factor by which we
     * recommend the target CPA should be increased.
     * 
* * optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetMultiplier. */ double getRecommendedTargetMultiplier(); /** *
     * Output only. The current average target CPA of the campaign, in micros of
     * customer local currency.
     * 
* * optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the averageTargetCpaMicros field is set. */ boolean hasAverageTargetCpaMicros(); /** *
     * Output only. The current average target CPA of the campaign, in micros of
     * customer local currency.
     * 
* * optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The averageTargetCpaMicros. */ long getAverageTargetCpaMicros(); } /** *
   * The raise target CPA bid too low recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation} */ public static final class RaiseTargetCpaBidTooLowRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) RaiseTargetCpaBidTooLowRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use RaiseTargetCpaBidTooLowRecommendation.newBuilder() to construct. private RaiseTargetCpaBidTooLowRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaiseTargetCpaBidTooLowRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RaiseTargetCpaBidTooLowRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaBidTooLowRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaBidTooLowRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.Builder.class); } private int bitField0_; public static final int RECOMMENDED_TARGET_MULTIPLIER_FIELD_NUMBER = 1; private double recommendedTargetMultiplier_ = 0D; /** *
     * Output only. A number greater than 1.0 indicating the factor by which we
     * recommend the target CPA should be increased.
     * 
* * optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedTargetMultiplier field is set. */ @java.lang.Override public boolean hasRecommendedTargetMultiplier() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. A number greater than 1.0 indicating the factor by which we
     * recommend the target CPA should be increased.
     * 
* * optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetMultiplier. */ @java.lang.Override public double getRecommendedTargetMultiplier() { return recommendedTargetMultiplier_; } public static final int AVERAGE_TARGET_CPA_MICROS_FIELD_NUMBER = 2; private long averageTargetCpaMicros_ = 0L; /** *
     * Output only. The current average target CPA of the campaign, in micros of
     * customer local currency.
     * 
* * optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the averageTargetCpaMicros field is set. */ @java.lang.Override public boolean hasAverageTargetCpaMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. The current average target CPA of the campaign, in micros of
     * customer local currency.
     * 
* * optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The averageTargetCpaMicros. */ @java.lang.Override public long getAverageTargetCpaMicros() { return averageTargetCpaMicros_; } 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.writeDouble(1, recommendedTargetMultiplier_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, averageTargetCpaMicros_); } 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 .computeDoubleSize(1, recommendedTargetMultiplier_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, averageTargetCpaMicros_); } 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) obj; if (hasRecommendedTargetMultiplier() != other.hasRecommendedTargetMultiplier()) return false; if (hasRecommendedTargetMultiplier()) { if (java.lang.Double.doubleToLongBits(getRecommendedTargetMultiplier()) != java.lang.Double.doubleToLongBits( other.getRecommendedTargetMultiplier())) return false; } if (hasAverageTargetCpaMicros() != other.hasAverageTargetCpaMicros()) return false; if (hasAverageTargetCpaMicros()) { if (getAverageTargetCpaMicros() != other.getAverageTargetCpaMicros()) 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 (hasRecommendedTargetMultiplier()) { hash = (37 * hash) + RECOMMENDED_TARGET_MULTIPLIER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRecommendedTargetMultiplier())); } if (hasAverageTargetCpaMicros()) { hash = (37 * hash) + AVERAGE_TARGET_CPA_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAverageTargetCpaMicros()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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; } /** *
     * The raise target CPA bid too low recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaBidTooLowRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaBidTooLowRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recommendedTargetMultiplier_ = 0D; averageTargetCpaMicros_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaBidTooLowRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.recommendedTargetMultiplier_ = recommendedTargetMultiplier_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.averageTargetCpaMicros_ = averageTargetCpaMicros_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.getDefaultInstance()) return this; if (other.hasRecommendedTargetMultiplier()) { setRecommendedTargetMultiplier(other.getRecommendedTargetMultiplier()); } if (other.hasAverageTargetCpaMicros()) { setAverageTargetCpaMicros(other.getAverageTargetCpaMicros()); } 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 9: { recommendedTargetMultiplier_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 16: { averageTargetCpaMicros_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 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 double recommendedTargetMultiplier_ ; /** *
       * Output only. A number greater than 1.0 indicating the factor by which we
       * recommend the target CPA should be increased.
       * 
* * optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedTargetMultiplier field is set. */ @java.lang.Override public boolean hasRecommendedTargetMultiplier() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. A number greater than 1.0 indicating the factor by which we
       * recommend the target CPA should be increased.
       * 
* * optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetMultiplier. */ @java.lang.Override public double getRecommendedTargetMultiplier() { return recommendedTargetMultiplier_; } /** *
       * Output only. A number greater than 1.0 indicating the factor by which we
       * recommend the target CPA should be increased.
       * 
* * optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedTargetMultiplier to set. * @return This builder for chaining. */ public Builder setRecommendedTargetMultiplier(double value) { recommendedTargetMultiplier_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. A number greater than 1.0 indicating the factor by which we
       * recommend the target CPA should be increased.
       * 
* * optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedTargetMultiplier() { bitField0_ = (bitField0_ & ~0x00000001); recommendedTargetMultiplier_ = 0D; onChanged(); return this; } private long averageTargetCpaMicros_ ; /** *
       * Output only. The current average target CPA of the campaign, in micros of
       * customer local currency.
       * 
* * optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the averageTargetCpaMicros field is set. */ @java.lang.Override public boolean hasAverageTargetCpaMicros() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The current average target CPA of the campaign, in micros of
       * customer local currency.
       * 
* * optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The averageTargetCpaMicros. */ @java.lang.Override public long getAverageTargetCpaMicros() { return averageTargetCpaMicros_; } /** *
       * Output only. The current average target CPA of the campaign, in micros of
       * customer local currency.
       * 
* * optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The averageTargetCpaMicros to set. * @return This builder for chaining. */ public Builder setAverageTargetCpaMicros(long value) { averageTargetCpaMicros_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The current average target CPA of the campaign, in micros of
       * customer local currency.
       * 
* * optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAverageTargetCpaMicros() { bitField0_ = (bitField0_ & ~0x00000002); averageTargetCpaMicros_ = 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DisplayExpansionOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * The Display Expansion opt-in recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation} */ public static final class DisplayExpansionOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) DisplayExpansionOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use DisplayExpansionOptInRecommendation.newBuilder() to construct. private DisplayExpansionOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DisplayExpansionOptInRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisplayExpansionOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DisplayExpansionOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DisplayExpansionOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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; } /** *
     * The Display Expansion opt-in recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DisplayExpansionOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DisplayExpansionOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DisplayExpansionOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation(this); 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * The Upgrade Local campaign to Performance Max campaign recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation} */ public static final class UpgradeLocalCampaignToPerformanceMaxRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use UpgradeLocalCampaignToPerformanceMaxRecommendation.newBuilder() to construct. private UpgradeLocalCampaignToPerformanceMaxRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpgradeLocalCampaignToPerformanceMaxRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpgradeLocalCampaignToPerformanceMaxRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeLocalCampaignToPerformanceMaxRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeLocalCampaignToPerformanceMaxRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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; } /** *
     * The Upgrade Local campaign to Performance Max campaign recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeLocalCampaignToPerformanceMaxRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeLocalCampaignToPerformanceMaxRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeLocalCampaignToPerformanceMaxRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation(this); 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ForecastingSetTargetRoasRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The recommended target ROAS (revenue per unit of spend).
     * The value is between 0.01 and 1000.0, inclusive.
     * 
* * double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetRoas. */ double getRecommendedTargetRoas(); /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the campaignBudget field is set. */ boolean hasCampaignBudget(); /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignBudget. */ com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget getCampaignBudget(); /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder getCampaignBudgetOrBuilder(); } /** *
   * The forecasting set target ROAS recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation} */ public static final class ForecastingSetTargetRoasRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) ForecastingSetTargetRoasRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ForecastingSetTargetRoasRecommendation.newBuilder() to construct. private ForecastingSetTargetRoasRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ForecastingSetTargetRoasRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ForecastingSetTargetRoasRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetRoasRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetRoasRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder.class); } private int bitField0_; public static final int RECOMMENDED_TARGET_ROAS_FIELD_NUMBER = 1; private double recommendedTargetRoas_ = 0D; /** *
     * Output only. The recommended target ROAS (revenue per unit of spend).
     * The value is between 0.01 and 1000.0, inclusive.
     * 
* * double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetRoas. */ @java.lang.Override public double getRecommendedTargetRoas() { return recommendedTargetRoas_; } public static final int CAMPAIGN_BUDGET_FIELD_NUMBER = 2; private com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaignBudget_; /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the campaignBudget field is set. */ @java.lang.Override public boolean hasCampaignBudget() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignBudget. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget getCampaignBudget() { return campaignBudget_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_; } /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder getCampaignBudgetOrBuilder() { return campaignBudget_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_; } 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 (java.lang.Double.doubleToRawLongBits(recommendedTargetRoas_) != 0) { output.writeDouble(1, recommendedTargetRoas_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCampaignBudget()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(recommendedTargetRoas_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, recommendedTargetRoas_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCampaignBudget()); } 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) obj; if (java.lang.Double.doubleToLongBits(getRecommendedTargetRoas()) != java.lang.Double.doubleToLongBits( other.getRecommendedTargetRoas())) return false; if (hasCampaignBudget() != other.hasCampaignBudget()) return false; if (hasCampaignBudget()) { if (!getCampaignBudget() .equals(other.getCampaignBudget())) 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(); hash = (37 * hash) + RECOMMENDED_TARGET_ROAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRecommendedTargetRoas())); if (hasCampaignBudget()) { hash = (37 * hash) + CAMPAIGN_BUDGET_FIELD_NUMBER; hash = (53 * hash) + getCampaignBudget().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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; } /** *
     * The forecasting set target ROAS recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetRoasRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetRoasRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCampaignBudgetFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recommendedTargetRoas_ = 0D; campaignBudget_ = null; if (campaignBudgetBuilder_ != null) { campaignBudgetBuilder_.dispose(); campaignBudgetBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetRoasRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recommendedTargetRoas_ = recommendedTargetRoas_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.campaignBudget_ = campaignBudgetBuilder_ == null ? campaignBudget_ : campaignBudgetBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance()) return this; if (other.getRecommendedTargetRoas() != 0D) { setRecommendedTargetRoas(other.getRecommendedTargetRoas()); } if (other.hasCampaignBudget()) { mergeCampaignBudget(other.getCampaignBudget()); } 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 9: { recommendedTargetRoas_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 18: { input.readMessage( getCampaignBudgetFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 double recommendedTargetRoas_ ; /** *
       * Output only. The recommended target ROAS (revenue per unit of spend).
       * The value is between 0.01 and 1000.0, inclusive.
       * 
* * double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetRoas. */ @java.lang.Override public double getRecommendedTargetRoas() { return recommendedTargetRoas_; } /** *
       * Output only. The recommended target ROAS (revenue per unit of spend).
       * The value is between 0.01 and 1000.0, inclusive.
       * 
* * double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedTargetRoas to set. * @return This builder for chaining. */ public Builder setRecommendedTargetRoas(double value) { recommendedTargetRoas_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The recommended target ROAS (revenue per unit of spend).
       * The value is between 0.01 and 1000.0, inclusive.
       * 
* * double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedTargetRoas() { bitField0_ = (bitField0_ & ~0x00000001); recommendedTargetRoas_ = 0D; onChanged(); return this; } private com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaignBudget_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder> campaignBudgetBuilder_; /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the campaignBudget field is set. */ public boolean hasCampaignBudget() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignBudget. */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget getCampaignBudget() { if (campaignBudgetBuilder_ == null) { return campaignBudget_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_; } else { return campaignBudgetBuilder_.getMessage(); } } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCampaignBudget(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget value) { if (campaignBudgetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBudget_ = value; } else { campaignBudgetBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCampaignBudget( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder builderForValue) { if (campaignBudgetBuilder_ == null) { campaignBudget_ = builderForValue.build(); } else { campaignBudgetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCampaignBudget(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget value) { if (campaignBudgetBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && campaignBudget_ != null && campaignBudget_ != com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance()) { getCampaignBudgetBuilder().mergeFrom(value); } else { campaignBudget_ = value; } } else { campaignBudgetBuilder_.mergeFrom(value); } if (campaignBudget_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCampaignBudget() { bitField0_ = (bitField0_ & ~0x00000002); campaignBudget_ = null; if (campaignBudgetBuilder_ != null) { campaignBudgetBuilder_.dispose(); campaignBudgetBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder getCampaignBudgetBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCampaignBudgetFieldBuilder().getBuilder(); } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder getCampaignBudgetOrBuilder() { if (campaignBudgetBuilder_ != null) { return campaignBudgetBuilder_.getMessageOrBuilder(); } else { return campaignBudget_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_; } } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder> getCampaignBudgetFieldBuilder() { if (campaignBudgetBuilder_ == null) { campaignBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder>( getCampaignBudget(), getParentForChildren(), isClean()); campaignBudget_ = null; } return campaignBudgetBuilder_; } @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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShoppingOfferAttributeRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ boolean hasMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder(); /** *
     * Output only. The campaign feed label.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ java.lang.String getFeedLabel(); /** *
     * Output only. The campaign feed label.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ com.google.protobuf.ByteString getFeedLabelBytes(); /** *
     * Output only. The number of online, servable offers.
     * 
* * int64 offers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The offersCount. */ long getOffersCount(); /** *
     * Output only. The number of online, servable offers that are demoted for
     * missing attributes. Visit the Merchant Center for more details.
     * 
* * int64 demoted_offers_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The demotedOffersCount. */ long getDemotedOffersCount(); } /** *
   * The shopping recommendation to add an attribute to offers that are demoted
   * because it is missing.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation} */ public static final class ShoppingOfferAttributeRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) ShoppingOfferAttributeRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ShoppingOfferAttributeRecommendation.newBuilder() to construct. private ShoppingOfferAttributeRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShoppingOfferAttributeRecommendation() { feedLabel_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ShoppingOfferAttributeRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingOfferAttributeRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingOfferAttributeRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder.class); } private int bitField0_; public static final int MERCHANT_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ @java.lang.Override public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } public static final int FEED_LABEL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object feedLabel_ = ""; /** *
     * Output only. The campaign feed label.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ @java.lang.Override public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; 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(); feedLabel_ = s; return s; } } /** *
     * Output only. The campaign feed label.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ @java.lang.Override public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OFFERS_COUNT_FIELD_NUMBER = 3; private long offersCount_ = 0L; /** *
     * Output only. The number of online, servable offers.
     * 
* * int64 offers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The offersCount. */ @java.lang.Override public long getOffersCount() { return offersCount_; } public static final int DEMOTED_OFFERS_COUNT_FIELD_NUMBER = 4; private long demotedOffersCount_ = 0L; /** *
     * Output only. The number of online, servable offers that are demoted for
     * missing attributes. Visit the Merchant Center for more details.
     * 
* * int64 demoted_offers_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The demotedOffersCount. */ @java.lang.Override public long getDemotedOffersCount() { return demotedOffersCount_; } 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.writeMessage(1, getMerchant()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedLabel_); } if (offersCount_ != 0L) { output.writeInt64(3, offersCount_); } if (demotedOffersCount_ != 0L) { output.writeInt64(4, demotedOffersCount_); } 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 .computeMessageSize(1, getMerchant()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedLabel_); } if (offersCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, offersCount_); } if (demotedOffersCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, demotedOffersCount_); } 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) obj; if (hasMerchant() != other.hasMerchant()) return false; if (hasMerchant()) { if (!getMerchant() .equals(other.getMerchant())) return false; } if (!getFeedLabel() .equals(other.getFeedLabel())) return false; if (getOffersCount() != other.getOffersCount()) return false; if (getDemotedOffersCount() != other.getDemotedOffersCount()) 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 (hasMerchant()) { hash = (37 * hash) + MERCHANT_FIELD_NUMBER; hash = (53 * hash) + getMerchant().hashCode(); } hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER; hash = (53 * hash) + getFeedLabel().hashCode(); hash = (37 * hash) + OFFERS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOffersCount()); hash = (37 * hash) + DEMOTED_OFFERS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDemotedOffersCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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; } /** *
     * The shopping recommendation to add an attribute to offers that are demoted
     * because it is missing.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingOfferAttributeRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingOfferAttributeRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMerchantFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } feedLabel_ = ""; offersCount_ = 0L; demotedOffersCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingOfferAttributeRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.merchant_ = merchantBuilder_ == null ? merchant_ : merchantBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.feedLabel_ = feedLabel_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.offersCount_ = offersCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.demotedOffersCount_ = demotedOffersCount_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance()) return this; if (other.hasMerchant()) { mergeMerchant(other.getMerchant()); } if (!other.getFeedLabel().isEmpty()) { feedLabel_ = other.feedLabel_; bitField0_ |= 0x00000002; onChanged(); } if (other.getOffersCount() != 0L) { setOffersCount(other.getOffersCount()); } if (other.getDemotedOffersCount() != 0L) { setDemotedOffersCount(other.getDemotedOffersCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMerchantFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { feedLabel_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { offersCount_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { demotedOffersCount_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 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 com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_; /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { if (merchantBuilder_ == null) { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } else { return merchantBuilder_.getMessage(); } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } merchant_ = value; } else { merchantBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant( com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) { if (merchantBuilder_ == null) { merchant_ = builderForValue.build(); } else { merchantBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && merchant_ != null && merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) { getMerchantBuilder().mergeFrom(value); } else { merchant_ = value; } } else { merchantBuilder_.mergeFrom(value); } if (merchant_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMerchant() { bitField0_ = (bitField0_ & ~0x00000001); merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMerchantFieldBuilder().getBuilder(); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { if (merchantBuilder_ != null) { return merchantBuilder_.getMessageOrBuilder(); } else { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> getMerchantFieldBuilder() { if (merchantBuilder_ == null) { merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>( getMerchant(), getParentForChildren(), isClean()); merchant_ = null; } return merchantBuilder_; } private java.lang.Object feedLabel_ = ""; /** *
       * Output only. The campaign feed label.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedLabel_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The campaign feed label.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The campaign feed label.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } feedLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The campaign feed label.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearFeedLabel() { feedLabel_ = getDefaultInstance().getFeedLabel(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. The campaign feed label.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); feedLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long offersCount_ ; /** *
       * Output only. The number of online, servable offers.
       * 
* * int64 offers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The offersCount. */ @java.lang.Override public long getOffersCount() { return offersCount_; } /** *
       * Output only. The number of online, servable offers.
       * 
* * int64 offers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The offersCount to set. * @return This builder for chaining. */ public Builder setOffersCount(long value) { offersCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. The number of online, servable offers.
       * 
* * int64 offers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearOffersCount() { bitField0_ = (bitField0_ & ~0x00000004); offersCount_ = 0L; onChanged(); return this; } private long demotedOffersCount_ ; /** *
       * Output only. The number of online, servable offers that are demoted for
       * missing attributes. Visit the Merchant Center for more details.
       * 
* * int64 demoted_offers_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The demotedOffersCount. */ @java.lang.Override public long getDemotedOffersCount() { return demotedOffersCount_; } /** *
       * Output only. The number of online, servable offers that are demoted for
       * missing attributes. Visit the Merchant Center for more details.
       * 
* * int64 demoted_offers_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The demotedOffersCount to set. * @return This builder for chaining. */ public Builder setDemotedOffersCount(long value) { demotedOffersCount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Output only. The number of online, servable offers that are demoted for
       * missing attributes. Visit the Merchant Center for more details.
       * 
* * int64 demoted_offers_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDemotedOffersCount() { bitField0_ = (bitField0_ & ~0x00000008); demotedOffersCount_ = 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShoppingFixDisapprovedProductsRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ boolean hasMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder(); /** *
     * Output only. The feed label for the campaign.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ java.lang.String getFeedLabel(); /** *
     * Output only. The feed label for the campaign.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ com.google.protobuf.ByteString getFeedLabelBytes(); /** *
     * Output only. The number of products of the campaign.
     * 
* * int64 products_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The productsCount. */ long getProductsCount(); /** *
     * Output only. The numbers of products of the campaign that are
     * disapproved.
     * 
* * int64 disapproved_products_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The disapprovedProductsCount. */ long getDisapprovedProductsCount(); } /** *
   * The shopping recommendation to fix disapproved products in a Shopping
   * Campaign Inventory.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation} */ public static final class ShoppingFixDisapprovedProductsRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) ShoppingFixDisapprovedProductsRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ShoppingFixDisapprovedProductsRecommendation.newBuilder() to construct. private ShoppingFixDisapprovedProductsRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShoppingFixDisapprovedProductsRecommendation() { feedLabel_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ShoppingFixDisapprovedProductsRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingFixDisapprovedProductsRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingFixDisapprovedProductsRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.Builder.class); } private int bitField0_; public static final int MERCHANT_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ @java.lang.Override public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } public static final int FEED_LABEL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object feedLabel_ = ""; /** *
     * Output only. The feed label for the campaign.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ @java.lang.Override public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; 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(); feedLabel_ = s; return s; } } /** *
     * Output only. The feed label for the campaign.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ @java.lang.Override public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRODUCTS_COUNT_FIELD_NUMBER = 3; private long productsCount_ = 0L; /** *
     * Output only. The number of products of the campaign.
     * 
* * int64 products_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The productsCount. */ @java.lang.Override public long getProductsCount() { return productsCount_; } public static final int DISAPPROVED_PRODUCTS_COUNT_FIELD_NUMBER = 4; private long disapprovedProductsCount_ = 0L; /** *
     * Output only. The numbers of products of the campaign that are
     * disapproved.
     * 
* * int64 disapproved_products_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The disapprovedProductsCount. */ @java.lang.Override public long getDisapprovedProductsCount() { return disapprovedProductsCount_; } 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.writeMessage(1, getMerchant()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedLabel_); } if (productsCount_ != 0L) { output.writeInt64(3, productsCount_); } if (disapprovedProductsCount_ != 0L) { output.writeInt64(4, disapprovedProductsCount_); } 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 .computeMessageSize(1, getMerchant()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedLabel_); } if (productsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, productsCount_); } if (disapprovedProductsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, disapprovedProductsCount_); } 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) obj; if (hasMerchant() != other.hasMerchant()) return false; if (hasMerchant()) { if (!getMerchant() .equals(other.getMerchant())) return false; } if (!getFeedLabel() .equals(other.getFeedLabel())) return false; if (getProductsCount() != other.getProductsCount()) return false; if (getDisapprovedProductsCount() != other.getDisapprovedProductsCount()) 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 (hasMerchant()) { hash = (37 * hash) + MERCHANT_FIELD_NUMBER; hash = (53 * hash) + getMerchant().hashCode(); } hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER; hash = (53 * hash) + getFeedLabel().hashCode(); hash = (37 * hash) + PRODUCTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProductsCount()); hash = (37 * hash) + DISAPPROVED_PRODUCTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDisapprovedProductsCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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; } /** *
     * The shopping recommendation to fix disapproved products in a Shopping
     * Campaign Inventory.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingFixDisapprovedProductsRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingFixDisapprovedProductsRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMerchantFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } feedLabel_ = ""; productsCount_ = 0L; disapprovedProductsCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingFixDisapprovedProductsRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.merchant_ = merchantBuilder_ == null ? merchant_ : merchantBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.feedLabel_ = feedLabel_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.productsCount_ = productsCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.disapprovedProductsCount_ = disapprovedProductsCount_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.getDefaultInstance()) return this; if (other.hasMerchant()) { mergeMerchant(other.getMerchant()); } if (!other.getFeedLabel().isEmpty()) { feedLabel_ = other.feedLabel_; bitField0_ |= 0x00000002; onChanged(); } if (other.getProductsCount() != 0L) { setProductsCount(other.getProductsCount()); } if (other.getDisapprovedProductsCount() != 0L) { setDisapprovedProductsCount(other.getDisapprovedProductsCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMerchantFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { feedLabel_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { productsCount_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { disapprovedProductsCount_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 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 com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_; /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { if (merchantBuilder_ == null) { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } else { return merchantBuilder_.getMessage(); } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } merchant_ = value; } else { merchantBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant( com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) { if (merchantBuilder_ == null) { merchant_ = builderForValue.build(); } else { merchantBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && merchant_ != null && merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) { getMerchantBuilder().mergeFrom(value); } else { merchant_ = value; } } else { merchantBuilder_.mergeFrom(value); } if (merchant_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMerchant() { bitField0_ = (bitField0_ & ~0x00000001); merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMerchantFieldBuilder().getBuilder(); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { if (merchantBuilder_ != null) { return merchantBuilder_.getMessageOrBuilder(); } else { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> getMerchantFieldBuilder() { if (merchantBuilder_ == null) { merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>( getMerchant(), getParentForChildren(), isClean()); merchant_ = null; } return merchantBuilder_; } private java.lang.Object feedLabel_ = ""; /** *
       * Output only. The feed label for the campaign.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedLabel_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The feed label for the campaign.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The feed label for the campaign.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } feedLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The feed label for the campaign.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearFeedLabel() { feedLabel_ = getDefaultInstance().getFeedLabel(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. The feed label for the campaign.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); feedLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long productsCount_ ; /** *
       * Output only. The number of products of the campaign.
       * 
* * int64 products_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The productsCount. */ @java.lang.Override public long getProductsCount() { return productsCount_; } /** *
       * Output only. The number of products of the campaign.
       * 
* * int64 products_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The productsCount to set. * @return This builder for chaining. */ public Builder setProductsCount(long value) { productsCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. The number of products of the campaign.
       * 
* * int64 products_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearProductsCount() { bitField0_ = (bitField0_ & ~0x00000004); productsCount_ = 0L; onChanged(); return this; } private long disapprovedProductsCount_ ; /** *
       * Output only. The numbers of products of the campaign that are
       * disapproved.
       * 
* * int64 disapproved_products_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The disapprovedProductsCount. */ @java.lang.Override public long getDisapprovedProductsCount() { return disapprovedProductsCount_; } /** *
       * Output only. The numbers of products of the campaign that are
       * disapproved.
       * 
* * int64 disapproved_products_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The disapprovedProductsCount to set. * @return This builder for chaining. */ public Builder setDisapprovedProductsCount(long value) { disapprovedProductsCount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Output only. The numbers of products of the campaign that are
       * disapproved.
       * 
* * int64 disapproved_products_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDisapprovedProductsCount() { bitField0_ = (bitField0_ & ~0x00000008); disapprovedProductsCount_ = 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShoppingTargetAllOffersRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ boolean hasMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder(); /** *
     * Output only. The number of untargeted offers.
     * 
* * int64 untargeted_offers_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The untargetedOffersCount. */ long getUntargetedOffersCount(); /** *
     * Output only. The offer feed label.
     * 
* * string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ java.lang.String getFeedLabel(); /** *
     * Output only. The offer feed label.
     * 
* * string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ com.google.protobuf.ByteString getFeedLabelBytes(); } /** *
   * The shopping recommendation to create a catch-all campaign that targets all
   * offers.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation} */ public static final class ShoppingTargetAllOffersRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) ShoppingTargetAllOffersRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ShoppingTargetAllOffersRecommendation.newBuilder() to construct. private ShoppingTargetAllOffersRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShoppingTargetAllOffersRecommendation() { feedLabel_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ShoppingTargetAllOffersRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingTargetAllOffersRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingTargetAllOffersRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.Builder.class); } private int bitField0_; public static final int MERCHANT_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ @java.lang.Override public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } public static final int UNTARGETED_OFFERS_COUNT_FIELD_NUMBER = 2; private long untargetedOffersCount_ = 0L; /** *
     * Output only. The number of untargeted offers.
     * 
* * int64 untargeted_offers_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The untargetedOffersCount. */ @java.lang.Override public long getUntargetedOffersCount() { return untargetedOffersCount_; } public static final int FEED_LABEL_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object feedLabel_ = ""; /** *
     * Output only. The offer feed label.
     * 
* * string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ @java.lang.Override public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; 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(); feedLabel_ = s; return s; } } /** *
     * Output only. The offer feed label.
     * 
* * string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ @java.lang.Override public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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.writeMessage(1, getMerchant()); } if (untargetedOffersCount_ != 0L) { output.writeInt64(2, untargetedOffersCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, feedLabel_); } 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 .computeMessageSize(1, getMerchant()); } if (untargetedOffersCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, untargetedOffersCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, feedLabel_); } 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) obj; if (hasMerchant() != other.hasMerchant()) return false; if (hasMerchant()) { if (!getMerchant() .equals(other.getMerchant())) return false; } if (getUntargetedOffersCount() != other.getUntargetedOffersCount()) return false; if (!getFeedLabel() .equals(other.getFeedLabel())) 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 (hasMerchant()) { hash = (37 * hash) + MERCHANT_FIELD_NUMBER; hash = (53 * hash) + getMerchant().hashCode(); } hash = (37 * hash) + UNTARGETED_OFFERS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUntargetedOffersCount()); hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER; hash = (53 * hash) + getFeedLabel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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; } /** *
     * The shopping recommendation to create a catch-all campaign that targets all
     * offers.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingTargetAllOffersRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingTargetAllOffersRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMerchantFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } untargetedOffersCount_ = 0L; feedLabel_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingTargetAllOffersRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.merchant_ = merchantBuilder_ == null ? merchant_ : merchantBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.untargetedOffersCount_ = untargetedOffersCount_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.feedLabel_ = feedLabel_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.getDefaultInstance()) return this; if (other.hasMerchant()) { mergeMerchant(other.getMerchant()); } if (other.getUntargetedOffersCount() != 0L) { setUntargetedOffersCount(other.getUntargetedOffersCount()); } if (!other.getFeedLabel().isEmpty()) { feedLabel_ = other.feedLabel_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMerchantFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { untargetedOffersCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { feedLabel_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 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 com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_; /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { if (merchantBuilder_ == null) { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } else { return merchantBuilder_.getMessage(); } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } merchant_ = value; } else { merchantBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant( com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) { if (merchantBuilder_ == null) { merchant_ = builderForValue.build(); } else { merchantBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && merchant_ != null && merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) { getMerchantBuilder().mergeFrom(value); } else { merchant_ = value; } } else { merchantBuilder_.mergeFrom(value); } if (merchant_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMerchant() { bitField0_ = (bitField0_ & ~0x00000001); merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMerchantFieldBuilder().getBuilder(); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { if (merchantBuilder_ != null) { return merchantBuilder_.getMessageOrBuilder(); } else { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> getMerchantFieldBuilder() { if (merchantBuilder_ == null) { merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>( getMerchant(), getParentForChildren(), isClean()); merchant_ = null; } return merchantBuilder_; } private long untargetedOffersCount_ ; /** *
       * Output only. The number of untargeted offers.
       * 
* * int64 untargeted_offers_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The untargetedOffersCount. */ @java.lang.Override public long getUntargetedOffersCount() { return untargetedOffersCount_; } /** *
       * Output only. The number of untargeted offers.
       * 
* * int64 untargeted_offers_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The untargetedOffersCount to set. * @return This builder for chaining. */ public Builder setUntargetedOffersCount(long value) { untargetedOffersCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The number of untargeted offers.
       * 
* * int64 untargeted_offers_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearUntargetedOffersCount() { bitField0_ = (bitField0_ & ~0x00000002); untargetedOffersCount_ = 0L; onChanged(); return this; } private java.lang.Object feedLabel_ = ""; /** *
       * Output only. The offer feed label.
       * 
* * string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedLabel_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The offer feed label.
       * 
* * string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The offer feed label.
       * 
* * string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } feedLabel_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. The offer feed label.
       * 
* * string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearFeedLabel() { feedLabel_ = getDefaultInstance().getFeedLabel(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Output only. The offer feed label.
       * 
* * string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); feedLabel_ = value; bitField0_ |= 0x00000004; 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShoppingAddProductsToCampaignRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ boolean hasMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder(); /** *
     * Output only. The feed label for the campaign.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ java.lang.String getFeedLabel(); /** *
     * Output only. The feed label for the campaign.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ com.google.protobuf.ByteString getFeedLabelBytes(); /** *
     * Output only. The reason why no products are attached to the campaign.
     * 
* * .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** *
     * Output only. The reason why no products are attached to the campaign.
     * 
* * .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The reason. */ com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason getReason(); } /** *
   * The shopping recommendation to add products to a Shopping Campaign
   * Inventory.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation} */ public static final class ShoppingAddProductsToCampaignRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) ShoppingAddProductsToCampaignRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ShoppingAddProductsToCampaignRecommendation.newBuilder() to construct. private ShoppingAddProductsToCampaignRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShoppingAddProductsToCampaignRecommendation() { feedLabel_ = ""; reason_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ShoppingAddProductsToCampaignRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingAddProductsToCampaignRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingAddProductsToCampaignRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.Builder.class); } private int bitField0_; public static final int MERCHANT_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ @java.lang.Override public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } public static final int FEED_LABEL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object feedLabel_ = ""; /** *
     * Output only. The feed label for the campaign.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ @java.lang.Override public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; 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(); feedLabel_ = s; return s; } } /** *
     * Output only. The feed label for the campaign.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ @java.lang.Override public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REASON_FIELD_NUMBER = 3; private int reason_ = 0; /** *
     * Output only. The reason why no products are attached to the campaign.
     * 
* * .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for reason. */ @java.lang.Override public int getReasonValue() { return reason_; } /** *
     * Output only. The reason why no products are attached to the campaign.
     * 
* * .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The reason. */ @java.lang.Override public com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason getReason() { com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason result = com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.forNumber(reason_); return result == null ? com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMerchant()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedLabel_); } if (reason_ != com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.UNSPECIFIED.getNumber()) { output.writeEnum(3, reason_); } 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 .computeMessageSize(1, getMerchant()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedLabel_); } if (reason_ != com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, reason_); } 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) obj; if (hasMerchant() != other.hasMerchant()) return false; if (hasMerchant()) { if (!getMerchant() .equals(other.getMerchant())) return false; } if (!getFeedLabel() .equals(other.getFeedLabel())) return false; if (reason_ != other.reason_) 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 (hasMerchant()) { hash = (37 * hash) + MERCHANT_FIELD_NUMBER; hash = (53 * hash) + getMerchant().hashCode(); } hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER; hash = (53 * hash) + getFeedLabel().hashCode(); hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + reason_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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; } /** *
     * The shopping recommendation to add products to a Shopping Campaign
     * Inventory.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingAddProductsToCampaignRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingAddProductsToCampaignRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMerchantFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } feedLabel_ = ""; reason_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingAddProductsToCampaignRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.merchant_ = merchantBuilder_ == null ? merchant_ : merchantBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.feedLabel_ = feedLabel_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.reason_ = reason_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.getDefaultInstance()) return this; if (other.hasMerchant()) { mergeMerchant(other.getMerchant()); } if (!other.getFeedLabel().isEmpty()) { feedLabel_ = other.feedLabel_; bitField0_ |= 0x00000002; onChanged(); } if (other.reason_ != 0) { setReasonValue(other.getReasonValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMerchantFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { feedLabel_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { reason_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 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 com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_; /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { if (merchantBuilder_ == null) { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } else { return merchantBuilder_.getMessage(); } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } merchant_ = value; } else { merchantBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant( com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) { if (merchantBuilder_ == null) { merchant_ = builderForValue.build(); } else { merchantBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && merchant_ != null && merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) { getMerchantBuilder().mergeFrom(value); } else { merchant_ = value; } } else { merchantBuilder_.mergeFrom(value); } if (merchant_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMerchant() { bitField0_ = (bitField0_ & ~0x00000001); merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMerchantFieldBuilder().getBuilder(); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { if (merchantBuilder_ != null) { return merchantBuilder_.getMessageOrBuilder(); } else { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> getMerchantFieldBuilder() { if (merchantBuilder_ == null) { merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>( getMerchant(), getParentForChildren(), isClean()); merchant_ = null; } return merchantBuilder_; } private java.lang.Object feedLabel_ = ""; /** *
       * Output only. The feed label for the campaign.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedLabel_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The feed label for the campaign.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The feed label for the campaign.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } feedLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The feed label for the campaign.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearFeedLabel() { feedLabel_ = getDefaultInstance().getFeedLabel(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. The feed label for the campaign.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); feedLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int reason_ = 0; /** *
       * Output only. The reason why no products are attached to the campaign.
       * 
* * .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for reason. */ @java.lang.Override public int getReasonValue() { return reason_; } /** *
       * Output only. The reason why no products are attached to the campaign.
       * 
* * .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ public Builder setReasonValue(int value) { reason_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. The reason why no products are attached to the campaign.
       * 
* * .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The reason. */ @java.lang.Override public com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason getReason() { com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason result = com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.forNumber(reason_); return result == null ? com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.UNRECOGNIZED : result; } /** *
       * Output only. The reason why no products are attached to the campaign.
       * 
* * .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The reason to set. * @return This builder for chaining. */ public Builder setReason(com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reason_ = value.getNumber(); onChanged(); return this; } /** *
       * Output only. The reason why no products are attached to the campaign.
       * 
* * .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000004); reason_ = 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ boolean hasMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder(); /** *
     * Output only. The feed label of the campaign for which the suspension
     * happened.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ java.lang.String getFeedLabel(); /** *
     * Output only. The feed label of the campaign for which the suspension
     * happened.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ com.google.protobuf.ByteString getFeedLabelBytes(); } /** *
   * The shopping recommendation to fix Merchant Center account suspension
   * issues.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation} */ public static final class ShoppingMerchantCenterAccountSuspensionRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ShoppingMerchantCenterAccountSuspensionRecommendation.newBuilder() to construct. private ShoppingMerchantCenterAccountSuspensionRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShoppingMerchantCenterAccountSuspensionRecommendation() { feedLabel_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ShoppingMerchantCenterAccountSuspensionRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMerchantCenterAccountSuspensionRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMerchantCenterAccountSuspensionRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder.class); } private int bitField0_; public static final int MERCHANT_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ @java.lang.Override public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } public static final int FEED_LABEL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object feedLabel_ = ""; /** *
     * Output only. The feed label of the campaign for which the suspension
     * happened.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ @java.lang.Override public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; 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(); feedLabel_ = s; return s; } } /** *
     * Output only. The feed label of the campaign for which the suspension
     * happened.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ @java.lang.Override public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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.writeMessage(1, getMerchant()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedLabel_); } 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 .computeMessageSize(1, getMerchant()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedLabel_); } 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) obj; if (hasMerchant() != other.hasMerchant()) return false; if (hasMerchant()) { if (!getMerchant() .equals(other.getMerchant())) return false; } if (!getFeedLabel() .equals(other.getFeedLabel())) 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 (hasMerchant()) { hash = (37 * hash) + MERCHANT_FIELD_NUMBER; hash = (53 * hash) + getMerchant().hashCode(); } hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER; hash = (53 * hash) + getFeedLabel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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; } /** *
     * The shopping recommendation to fix Merchant Center account suspension
     * issues.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMerchantCenterAccountSuspensionRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMerchantCenterAccountSuspensionRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMerchantFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } feedLabel_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMerchantCenterAccountSuspensionRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.merchant_ = merchantBuilder_ == null ? merchant_ : merchantBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.feedLabel_ = feedLabel_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance()) return this; if (other.hasMerchant()) { mergeMerchant(other.getMerchant()); } if (!other.getFeedLabel().isEmpty()) { feedLabel_ = other.feedLabel_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMerchantFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { feedLabel_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 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 com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_; /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { if (merchantBuilder_ == null) { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } else { return merchantBuilder_.getMessage(); } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } merchant_ = value; } else { merchantBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant( com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) { if (merchantBuilder_ == null) { merchant_ = builderForValue.build(); } else { merchantBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && merchant_ != null && merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) { getMerchantBuilder().mergeFrom(value); } else { merchant_ = value; } } else { merchantBuilder_.mergeFrom(value); } if (merchant_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMerchant() { bitField0_ = (bitField0_ & ~0x00000001); merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMerchantFieldBuilder().getBuilder(); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { if (merchantBuilder_ != null) { return merchantBuilder_.getMessageOrBuilder(); } else { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> getMerchantFieldBuilder() { if (merchantBuilder_ == null) { merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>( getMerchant(), getParentForChildren(), isClean()); merchant_ = null; } return merchantBuilder_; } private java.lang.Object feedLabel_ = ""; /** *
       * Output only. The feed label of the campaign for which the suspension
       * happened.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedLabel_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The feed label of the campaign for which the suspension
       * happened.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The feed label of the campaign for which the suspension
       * happened.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } feedLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The feed label of the campaign for which the suspension
       * happened.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearFeedLabel() { feedLabel_ = getDefaultInstance().getFeedLabel(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. The feed label of the campaign for which the suspension
       * happened.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); feedLabel_ = value; bitField0_ |= 0x00000002; 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ boolean hasMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant(); /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder(); /** *
     * Output only. The feed label of the offers targeted by the campaigns
     * sharing this suggestion.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ java.lang.String getFeedLabel(); /** *
     * Output only. The feed label of the offers targeted by the campaigns
     * sharing this suggestion.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ com.google.protobuf.ByteString getFeedLabelBytes(); } /** *
   * The shopping recommendation to migrate Regular Shopping Campaign targeted
   * offers to Performance Max campaigns.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation} */ public static final class ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.newBuilder() to construct. private ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation() { feedLabel_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.Builder.class); } private int bitField0_; public static final int MERCHANT_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ @java.lang.Override public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } /** *
     * Output only. The details of the Merchant Center account.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } public static final int FEED_LABEL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object feedLabel_ = ""; /** *
     * Output only. The feed label of the offers targeted by the campaigns
     * sharing this suggestion.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ @java.lang.Override public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; 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(); feedLabel_ = s; return s; } } /** *
     * Output only. The feed label of the offers targeted by the campaigns
     * sharing this suggestion.
     * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ @java.lang.Override public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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.writeMessage(1, getMerchant()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedLabel_); } 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 .computeMessageSize(1, getMerchant()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedLabel_); } 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) obj; if (hasMerchant() != other.hasMerchant()) return false; if (hasMerchant()) { if (!getMerchant() .equals(other.getMerchant())) return false; } if (!getFeedLabel() .equals(other.getFeedLabel())) 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 (hasMerchant()) { hash = (37 * hash) + MERCHANT_FIELD_NUMBER; hash = (53 * hash) + getMerchant().hashCode(); } hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER; hash = (53 * hash) + getFeedLabel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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; } /** *
     * The shopping recommendation to migrate Regular Shopping Campaign targeted
     * offers to Performance Max campaigns.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMerchantFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } feedLabel_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.merchant_ = merchantBuilder_ == null ? merchant_ : merchantBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.feedLabel_ = feedLabel_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.getDefaultInstance()) return this; if (other.hasMerchant()) { mergeMerchant(other.getMerchant()); } if (!other.getFeedLabel().isEmpty()) { feedLabel_ = other.feedLabel_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMerchantFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { feedLabel_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 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 com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_; /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the merchant field is set. */ public boolean hasMerchant() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The merchant. */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() { if (merchantBuilder_ == null) { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } else { return merchantBuilder_.getMessage(); } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } merchant_ = value; } else { merchantBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMerchant( com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) { if (merchantBuilder_ == null) { merchant_ = builderForValue.build(); } else { merchantBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) { if (merchantBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && merchant_ != null && merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) { getMerchantBuilder().mergeFrom(value); } else { merchant_ = value; } } else { merchantBuilder_.mergeFrom(value); } if (merchant_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMerchant() { bitField0_ = (bitField0_ & ~0x00000001); merchant_ = null; if (merchantBuilder_ != null) { merchantBuilder_.dispose(); merchantBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMerchantFieldBuilder().getBuilder(); } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() { if (merchantBuilder_ != null) { return merchantBuilder_.getMessageOrBuilder(); } else { return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_; } } /** *
       * Output only. The details of the Merchant Center account.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> getMerchantFieldBuilder() { if (merchantBuilder_ == null) { merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>( getMerchant(), getParentForChildren(), isClean()); merchant_ = null; } return merchantBuilder_; } private java.lang.Object feedLabel_ = ""; /** *
       * Output only. The feed label of the offers targeted by the campaigns
       * sharing this suggestion.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The feedLabel. */ public java.lang.String getFeedLabel() { java.lang.Object ref = feedLabel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedLabel_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The feed label of the offers targeted by the campaigns
       * sharing this suggestion.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for feedLabel. */ public com.google.protobuf.ByteString getFeedLabelBytes() { java.lang.Object ref = feedLabel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The feed label of the offers targeted by the campaigns
       * sharing this suggestion.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } feedLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The feed label of the offers targeted by the campaigns
       * sharing this suggestion.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearFeedLabel() { feedLabel_ = getDefaultInstance().getFeedLabel(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. The feed label of the offers targeted by the campaigns
       * sharing this suggestion.
       * 
* * string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for feedLabel to set. * @return This builder for chaining. */ public Builder setFeedLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); feedLabel_ = value; bitField0_ |= 0x00000002; 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TargetAdjustmentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The shared set resource name of the portfolio bidding
     * strategy where the target is defined. Only populated if the
     * recommendation is portfolio level.
     * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sharedSet field is set. */ boolean hasSharedSet(); /** *
     * Output only. The shared set resource name of the portfolio bidding
     * strategy where the target is defined. Only populated if the
     * recommendation is portfolio level.
     * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sharedSet. */ java.lang.String getSharedSet(); /** *
     * Output only. The shared set resource name of the portfolio bidding
     * strategy where the target is defined. Only populated if the
     * recommendation is portfolio level.
     * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for sharedSet. */ com.google.protobuf.ByteString getSharedSetBytes(); /** *
     * Output only. The factor by which we recommend the target to be adjusted
     * by.
     * 
* * double recommended_target_multiplier = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetMultiplier. */ double getRecommendedTargetMultiplier(); /** *
     * Output only. The current average target of the campaign or portfolio
     * targeted by this recommendation.
     * 
* * int64 current_average_target_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAverageTargetMicros. */ long getCurrentAverageTargetMicros(); } /** *
   * Information of a target adjustment recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo} */ public static final class TargetAdjustmentInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo) TargetAdjustmentInfoOrBuilder { private static final long serialVersionUID = 0L; // Use TargetAdjustmentInfo.newBuilder() to construct. private TargetAdjustmentInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TargetAdjustmentInfo() { sharedSet_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TargetAdjustmentInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetAdjustmentInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetAdjustmentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.class, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder.class); } private int bitField0_; public static final int SHARED_SET_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object sharedSet_ = ""; /** *
     * Output only. The shared set resource name of the portfolio bidding
     * strategy where the target is defined. Only populated if the
     * recommendation is portfolio level.
     * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sharedSet field is set. */ @java.lang.Override public boolean hasSharedSet() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The shared set resource name of the portfolio bidding
     * strategy where the target is defined. Only populated if the
     * recommendation is portfolio level.
     * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } } /** *
     * Output only. The shared set resource name of the portfolio bidding
     * strategy where the target is defined. Only populated if the
     * recommendation is portfolio level.
     * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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 RECOMMENDED_TARGET_MULTIPLIER_FIELD_NUMBER = 2; private double recommendedTargetMultiplier_ = 0D; /** *
     * Output only. The factor by which we recommend the target to be adjusted
     * by.
     * 
* * double recommended_target_multiplier = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetMultiplier. */ @java.lang.Override public double getRecommendedTargetMultiplier() { return recommendedTargetMultiplier_; } public static final int CURRENT_AVERAGE_TARGET_MICROS_FIELD_NUMBER = 3; private long currentAverageTargetMicros_ = 0L; /** *
     * Output only. The current average target of the campaign or portfolio
     * targeted by this recommendation.
     * 
* * int64 current_average_target_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAverageTargetMicros. */ @java.lang.Override public long getCurrentAverageTargetMicros() { return currentAverageTargetMicros_; } 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sharedSet_); } if (java.lang.Double.doubleToRawLongBits(recommendedTargetMultiplier_) != 0) { output.writeDouble(2, recommendedTargetMultiplier_); } if (currentAverageTargetMicros_ != 0L) { output.writeInt64(3, currentAverageTargetMicros_); } 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.GeneratedMessageV3.computeStringSize(1, sharedSet_); } if (java.lang.Double.doubleToRawLongBits(recommendedTargetMultiplier_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, recommendedTargetMultiplier_); } if (currentAverageTargetMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, currentAverageTargetMicros_); } 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.v16.resources.Recommendation.TargetAdjustmentInfo)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo other = (com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo) obj; if (hasSharedSet() != other.hasSharedSet()) return false; if (hasSharedSet()) { if (!getSharedSet() .equals(other.getSharedSet())) return false; } if (java.lang.Double.doubleToLongBits(getRecommendedTargetMultiplier()) != java.lang.Double.doubleToLongBits( other.getRecommendedTargetMultiplier())) return false; if (getCurrentAverageTargetMicros() != other.getCurrentAverageTargetMicros()) 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 (hasSharedSet()) { hash = (37 * hash) + SHARED_SET_FIELD_NUMBER; hash = (53 * hash) + getSharedSet().hashCode(); } hash = (37 * hash) + RECOMMENDED_TARGET_MULTIPLIER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRecommendedTargetMultiplier())); hash = (37 * hash) + CURRENT_AVERAGE_TARGET_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCurrentAverageTargetMicros()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo 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; } /** *
     * Information of a target adjustment recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo) com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetAdjustmentInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetAdjustmentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.class, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sharedSet_ = ""; recommendedTargetMultiplier_ = 0D; currentAverageTargetMicros_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetAdjustmentInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo build() { com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo result = new com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.sharedSet_ = sharedSet_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.recommendedTargetMultiplier_ = recommendedTargetMultiplier_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.currentAverageTargetMicros_ = currentAverageTargetMicros_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance()) return this; if (other.hasSharedSet()) { sharedSet_ = other.sharedSet_; bitField0_ |= 0x00000001; onChanged(); } if (other.getRecommendedTargetMultiplier() != 0D) { setRecommendedTargetMultiplier(other.getRecommendedTargetMultiplier()); } if (other.getCurrentAverageTargetMicros() != 0L) { setCurrentAverageTargetMicros(other.getCurrentAverageTargetMicros()); } 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: { sharedSet_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 17: { recommendedTargetMultiplier_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 24: { currentAverageTargetMicros_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object sharedSet_ = ""; /** *
       * Output only. The shared set resource name of the portfolio bidding
       * strategy where the target is defined. Only populated if the
       * recommendation is portfolio level.
       * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sharedSet field is set. */ public boolean hasSharedSet() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The shared set resource name of the portfolio bidding
       * strategy where the target is defined. Only populated if the
       * recommendation is portfolio level.
       * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } } /** *
       * Output only. The shared set resource name of the portfolio bidding
       * strategy where the target is defined. Only populated if the
       * recommendation is portfolio level.
       * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } } /** *
       * Output only. The shared set resource name of the portfolio bidding
       * strategy where the target is defined. Only populated if the
       * recommendation is portfolio level.
       * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The shared set resource name of the portfolio bidding
       * strategy where the target is defined. Only populated if the
       * recommendation is portfolio level.
       * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSharedSet() { sharedSet_ = getDefaultInstance().getSharedSet(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Output only. The shared set resource name of the portfolio bidding
       * strategy where the target is defined. Only populated if the
       * recommendation is portfolio level.
       * 
* * optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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_ |= 0x00000001; onChanged(); return this; } private double recommendedTargetMultiplier_ ; /** *
       * Output only. The factor by which we recommend the target to be adjusted
       * by.
       * 
* * double recommended_target_multiplier = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetMultiplier. */ @java.lang.Override public double getRecommendedTargetMultiplier() { return recommendedTargetMultiplier_; } /** *
       * Output only. The factor by which we recommend the target to be adjusted
       * by.
       * 
* * double recommended_target_multiplier = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedTargetMultiplier to set. * @return This builder for chaining. */ public Builder setRecommendedTargetMultiplier(double value) { recommendedTargetMultiplier_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The factor by which we recommend the target to be adjusted
       * by.
       * 
* * double recommended_target_multiplier = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedTargetMultiplier() { bitField0_ = (bitField0_ & ~0x00000002); recommendedTargetMultiplier_ = 0D; onChanged(); return this; } private long currentAverageTargetMicros_ ; /** *
       * Output only. The current average target of the campaign or portfolio
       * targeted by this recommendation.
       * 
* * int64 current_average_target_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAverageTargetMicros. */ @java.lang.Override public long getCurrentAverageTargetMicros() { return currentAverageTargetMicros_; } /** *
       * Output only. The current average target of the campaign or portfolio
       * targeted by this recommendation.
       * 
* * int64 current_average_target_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The currentAverageTargetMicros to set. * @return This builder for chaining. */ public Builder setCurrentAverageTargetMicros(long value) { currentAverageTargetMicros_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. The current average target of the campaign or portfolio
       * targeted by this recommendation.
       * 
* * int64 current_average_target_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCurrentAverageTargetMicros() { bitField0_ = (bitField0_ & ~0x00000004); currentAverageTargetMicros_ = 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.v16.resources.Recommendation.TargetAdjustmentInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo) private static final com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo(); } public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RaiseTargetCpaRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetAdjustment field is set. */ boolean hasTargetAdjustment(); /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetAdjustment. */ com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment(); /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder(); /** *
     * Output only. Represents the goal towards which the bidding strategy
     * should optimize. Only populated for App Campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the appBiddingGoal field is set. */ boolean hasAppBiddingGoal(); /** *
     * Output only. Represents the goal towards which the bidding strategy
     * should optimize. Only populated for App Campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for appBiddingGoal. */ int getAppBiddingGoalValue(); /** *
     * Output only. Represents the goal towards which the bidding strategy
     * should optimize. Only populated for App Campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The appBiddingGoal. */ com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal getAppBiddingGoal(); } /** *
   * Recommendation to raise Target CPA.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation} */ public static final class RaiseTargetCpaRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) RaiseTargetCpaRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use RaiseTargetCpaRecommendation.newBuilder() to construct. private RaiseTargetCpaRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaiseTargetCpaRecommendation() { appBiddingGoal_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RaiseTargetCpaRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.Builder.class); } private int bitField0_; public static final int TARGET_ADJUSTMENT_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo targetAdjustment_; /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetAdjustment field is set. */ @java.lang.Override public boolean hasTargetAdjustment() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetAdjustment. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment() { return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_; } /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder() { return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_; } public static final int APP_BIDDING_GOAL_FIELD_NUMBER = 2; private int appBiddingGoal_ = 0; /** *
     * Output only. Represents the goal towards which the bidding strategy
     * should optimize. Only populated for App Campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the appBiddingGoal field is set. */ @java.lang.Override public boolean hasAppBiddingGoal() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. Represents the goal towards which the bidding strategy
     * should optimize. Only populated for App Campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for appBiddingGoal. */ @java.lang.Override public int getAppBiddingGoalValue() { return appBiddingGoal_; } /** *
     * Output only. Represents the goal towards which the bidding strategy
     * should optimize. Only populated for App Campaigns.
     * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The appBiddingGoal. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal getAppBiddingGoal() { com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal result = com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal.forNumber(appBiddingGoal_); return result == null ? com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTargetAdjustment()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, appBiddingGoal_); } 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 .computeMessageSize(1, getTargetAdjustment()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, appBiddingGoal_); } 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) obj; if (hasTargetAdjustment() != other.hasTargetAdjustment()) return false; if (hasTargetAdjustment()) { if (!getTargetAdjustment() .equals(other.getTargetAdjustment())) return false; } if (hasAppBiddingGoal() != other.hasAppBiddingGoal()) return false; if (hasAppBiddingGoal()) { if (appBiddingGoal_ != other.appBiddingGoal_) 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 (hasTargetAdjustment()) { hash = (37 * hash) + TARGET_ADJUSTMENT_FIELD_NUMBER; hash = (53 * hash) + getTargetAdjustment().hashCode(); } if (hasAppBiddingGoal()) { hash = (37 * hash) + APP_BIDDING_GOAL_FIELD_NUMBER; hash = (53 * hash) + appBiddingGoal_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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; } /** *
     * Recommendation to raise Target CPA.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTargetAdjustmentFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; targetAdjustment_ = null; if (targetAdjustmentBuilder_ != null) { targetAdjustmentBuilder_.dispose(); targetAdjustmentBuilder_ = null; } appBiddingGoal_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.targetAdjustment_ = targetAdjustmentBuilder_ == null ? targetAdjustment_ : targetAdjustmentBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.appBiddingGoal_ = appBiddingGoal_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.getDefaultInstance()) return this; if (other.hasTargetAdjustment()) { mergeTargetAdjustment(other.getTargetAdjustment()); } if (other.hasAppBiddingGoal()) { setAppBiddingGoal(other.getAppBiddingGoal()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTargetAdjustmentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { appBiddingGoal_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 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 com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo targetAdjustment_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder> targetAdjustmentBuilder_; /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetAdjustment field is set. */ public boolean hasTargetAdjustment() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetAdjustment. */ public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment() { if (targetAdjustmentBuilder_ == null) { return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_; } else { return targetAdjustmentBuilder_.getMessage(); } } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetAdjustment(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo value) { if (targetAdjustmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } targetAdjustment_ = value; } else { targetAdjustmentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetAdjustment( com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder builderForValue) { if (targetAdjustmentBuilder_ == null) { targetAdjustment_ = builderForValue.build(); } else { targetAdjustmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTargetAdjustment(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo value) { if (targetAdjustmentBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && targetAdjustment_ != null && targetAdjustment_ != com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance()) { getTargetAdjustmentBuilder().mergeFrom(value); } else { targetAdjustment_ = value; } } else { targetAdjustmentBuilder_.mergeFrom(value); } if (targetAdjustment_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTargetAdjustment() { bitField0_ = (bitField0_ & ~0x00000001); targetAdjustment_ = null; if (targetAdjustmentBuilder_ != null) { targetAdjustmentBuilder_.dispose(); targetAdjustmentBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder getTargetAdjustmentBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTargetAdjustmentFieldBuilder().getBuilder(); } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder() { if (targetAdjustmentBuilder_ != null) { return targetAdjustmentBuilder_.getMessageOrBuilder(); } else { return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_; } } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder> getTargetAdjustmentFieldBuilder() { if (targetAdjustmentBuilder_ == null) { targetAdjustmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder>( getTargetAdjustment(), getParentForChildren(), isClean()); targetAdjustment_ = null; } return targetAdjustmentBuilder_; } private int appBiddingGoal_ = 0; /** *
       * Output only. Represents the goal towards which the bidding strategy
       * should optimize. Only populated for App Campaigns.
       * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the appBiddingGoal field is set. */ @java.lang.Override public boolean hasAppBiddingGoal() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. Represents the goal towards which the bidding strategy
       * should optimize. Only populated for App Campaigns.
       * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for appBiddingGoal. */ @java.lang.Override public int getAppBiddingGoalValue() { return appBiddingGoal_; } /** *
       * Output only. Represents the goal towards which the bidding strategy
       * should optimize. Only populated for App Campaigns.
       * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for appBiddingGoal to set. * @return This builder for chaining. */ public Builder setAppBiddingGoalValue(int value) { appBiddingGoal_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Represents the goal towards which the bidding strategy
       * should optimize. Only populated for App Campaigns.
       * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The appBiddingGoal. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal getAppBiddingGoal() { com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal result = com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal.forNumber(appBiddingGoal_); return result == null ? com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal.UNRECOGNIZED : result; } /** *
       * Output only. Represents the goal towards which the bidding strategy
       * should optimize. Only populated for App Campaigns.
       * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The appBiddingGoal to set. * @return This builder for chaining. */ public Builder setAppBiddingGoal(com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; appBiddingGoal_ = value.getNumber(); onChanged(); return this; } /** *
       * Output only. Represents the goal towards which the bidding strategy
       * should optimize. Only populated for App Campaigns.
       * 
* * optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAppBiddingGoal() { bitField0_ = (bitField0_ & ~0x00000002); appBiddingGoal_ = 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LowerTargetRoasRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetAdjustment field is set. */ boolean hasTargetAdjustment(); /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetAdjustment. */ com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment(); /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder(); } /** *
   * Recommendation to lower Target ROAS.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation} */ public static final class LowerTargetRoasRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) LowerTargetRoasRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use LowerTargetRoasRecommendation.newBuilder() to construct. private LowerTargetRoasRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LowerTargetRoasRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LowerTargetRoasRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LowerTargetRoasRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LowerTargetRoasRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.Builder.class); } private int bitField0_; public static final int TARGET_ADJUSTMENT_FIELD_NUMBER = 1; private com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo targetAdjustment_; /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetAdjustment field is set. */ @java.lang.Override public boolean hasTargetAdjustment() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetAdjustment. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment() { return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_; } /** *
     * Output only. The relevant information describing the recommended target
     * adjustment.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder() { return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_; } 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.writeMessage(1, getTargetAdjustment()); } 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 .computeMessageSize(1, getTargetAdjustment()); } 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.v16.resources.Recommendation.LowerTargetRoasRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) obj; if (hasTargetAdjustment() != other.hasTargetAdjustment()) return false; if (hasTargetAdjustment()) { if (!getTargetAdjustment() .equals(other.getTargetAdjustment())) 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 (hasTargetAdjustment()) { hash = (37 * hash) + TARGET_ADJUSTMENT_FIELD_NUMBER; hash = (53 * hash) + getTargetAdjustment().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation 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; } /** *
     * Recommendation to lower Target ROAS.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LowerTargetRoasRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LowerTargetRoasRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTargetAdjustmentFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; targetAdjustment_ = null; if (targetAdjustmentBuilder_ != null) { targetAdjustmentBuilder_.dispose(); targetAdjustmentBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LowerTargetRoasRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.targetAdjustment_ = targetAdjustmentBuilder_ == null ? targetAdjustment_ : targetAdjustmentBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.getDefaultInstance()) return this; if (other.hasTargetAdjustment()) { mergeTargetAdjustment(other.getTargetAdjustment()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTargetAdjustmentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 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 com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo targetAdjustment_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder> targetAdjustmentBuilder_; /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetAdjustment field is set. */ public boolean hasTargetAdjustment() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetAdjustment. */ public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment() { if (targetAdjustmentBuilder_ == null) { return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_; } else { return targetAdjustmentBuilder_.getMessage(); } } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetAdjustment(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo value) { if (targetAdjustmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } targetAdjustment_ = value; } else { targetAdjustmentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetAdjustment( com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder builderForValue) { if (targetAdjustmentBuilder_ == null) { targetAdjustment_ = builderForValue.build(); } else { targetAdjustmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTargetAdjustment(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo value) { if (targetAdjustmentBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && targetAdjustment_ != null && targetAdjustment_ != com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance()) { getTargetAdjustmentBuilder().mergeFrom(value); } else { targetAdjustment_ = value; } } else { targetAdjustmentBuilder_.mergeFrom(value); } if (targetAdjustment_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTargetAdjustment() { bitField0_ = (bitField0_ & ~0x00000001); targetAdjustment_ = null; if (targetAdjustmentBuilder_ != null) { targetAdjustmentBuilder_.dispose(); targetAdjustmentBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder getTargetAdjustmentBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTargetAdjustmentFieldBuilder().getBuilder(); } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder() { if (targetAdjustmentBuilder_ != null) { return targetAdjustmentBuilder_.getMessageOrBuilder(); } else { return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_; } } /** *
       * Output only. The relevant information describing the recommended target
       * adjustment.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder> getTargetAdjustmentFieldBuilder() { if (targetAdjustmentBuilder_ == null) { targetAdjustmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder>( getTargetAdjustment(), getParentForChildren(), isClean()); targetAdjustment_ = null; } return targetAdjustmentBuilder_; } @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.v16.resources.Recommendation.LowerTargetRoasRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DynamicImageExtensionOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * Recommendation to enable dynamic image extensions on the account,
   * allowing Google to find the best images from ad landing pages and
   * complement text ads.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation} */ public static final class DynamicImageExtensionOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) DynamicImageExtensionOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use DynamicImageExtensionOptInRecommendation.newBuilder() to construct. private DynamicImageExtensionOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DynamicImageExtensionOptInRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DynamicImageExtensionOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DynamicImageExtensionOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DynamicImageExtensionOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation 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.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation 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.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation 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.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation 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.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation 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.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation 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; } /** *
     * Recommendation to enable dynamic image extensions on the account,
     * allowing Google to find the best images from ad landing pages and
     * complement text ads.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DynamicImageExtensionOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DynamicImageExtensionOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DynamicImageExtensionOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation(this); 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.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DynamicImageExtensionOptInRecommendation 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.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CampaignBudgetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.CampaignBudget) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Current budget amount.
     * 
* * int64 current_amount_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAmountMicros. */ long getCurrentAmountMicros(); /** *
     * Output only. Recommended budget amount.
     * 
* * int64 recommended_new_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedNewAmountMicros. */ long getRecommendedNewAmountMicros(); /** *
     * Output only. The date when the new budget would start being used.
     * This field will be set for the following recommendation types:
     * FORECASTING_SET_TARGET_ROAS , FORECASTING_SET_TARGET_CPA
     * YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The newStartDate. */ java.lang.String getNewStartDate(); /** *
     * Output only. The date when the new budget would start being used.
     * This field will be set for the following recommendation types:
     * FORECASTING_SET_TARGET_ROAS , FORECASTING_SET_TARGET_CPA
     * YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for newStartDate. */ com.google.protobuf.ByteString getNewStartDateBytes(); } /** *
   * A campaign budget shared amongst various budget recommendation types.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CampaignBudget} */ public static final class CampaignBudget extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.CampaignBudget) CampaignBudgetOrBuilder { private static final long serialVersionUID = 0L; // Use CampaignBudget.newBuilder() to construct. private CampaignBudget(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CampaignBudget() { newStartDate_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CampaignBudget(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudget_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.class, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder.class); } public static final int CURRENT_AMOUNT_MICROS_FIELD_NUMBER = 1; private long currentAmountMicros_ = 0L; /** *
     * Output only. Current budget amount.
     * 
* * int64 current_amount_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAmountMicros. */ @java.lang.Override public long getCurrentAmountMicros() { return currentAmountMicros_; } public static final int RECOMMENDED_NEW_AMOUNT_MICROS_FIELD_NUMBER = 2; private long recommendedNewAmountMicros_ = 0L; /** *
     * Output only. Recommended budget amount.
     * 
* * int64 recommended_new_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedNewAmountMicros. */ @java.lang.Override public long getRecommendedNewAmountMicros() { return recommendedNewAmountMicros_; } public static final int NEW_START_DATE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object newStartDate_ = ""; /** *
     * Output only. The date when the new budget would start being used.
     * This field will be set for the following recommendation types:
     * FORECASTING_SET_TARGET_ROAS , FORECASTING_SET_TARGET_CPA
     * YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The newStartDate. */ @java.lang.Override public java.lang.String getNewStartDate() { java.lang.Object ref = newStartDate_; 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(); newStartDate_ = s; return s; } } /** *
     * Output only. The date when the new budget would start being used.
     * This field will be set for the following recommendation types:
     * FORECASTING_SET_TARGET_ROAS , FORECASTING_SET_TARGET_CPA
     * YYYY-MM-DD format, for example, 2018-04-17.
     * 
* * string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for newStartDate. */ @java.lang.Override public com.google.protobuf.ByteString getNewStartDateBytes() { java.lang.Object ref = newStartDate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newStartDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (currentAmountMicros_ != 0L) { output.writeInt64(1, currentAmountMicros_); } if (recommendedNewAmountMicros_ != 0L) { output.writeInt64(2, recommendedNewAmountMicros_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newStartDate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newStartDate_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (currentAmountMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, currentAmountMicros_); } if (recommendedNewAmountMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, recommendedNewAmountMicros_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newStartDate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newStartDate_); } 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.v16.resources.Recommendation.CampaignBudget)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget other = (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget) obj; if (getCurrentAmountMicros() != other.getCurrentAmountMicros()) return false; if (getRecommendedNewAmountMicros() != other.getRecommendedNewAmountMicros()) return false; if (!getNewStartDate() .equals(other.getNewStartDate())) 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(); hash = (37 * hash) + CURRENT_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCurrentAmountMicros()); hash = (37 * hash) + RECOMMENDED_NEW_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRecommendedNewAmountMicros()); hash = (37 * hash) + NEW_START_DATE_FIELD_NUMBER; hash = (53 * hash) + getNewStartDate().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget 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.v16.resources.Recommendation.CampaignBudget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget 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.v16.resources.Recommendation.CampaignBudget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget 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.v16.resources.Recommendation.CampaignBudget parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget 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.v16.resources.Recommendation.CampaignBudget parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget 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.v16.resources.Recommendation.CampaignBudget prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A campaign budget shared amongst various budget recommendation types.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CampaignBudget} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.CampaignBudget) com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudget_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.class, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; currentAmountMicros_ = 0L; recommendedNewAmountMicros_ = 0L; newStartDate_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudget_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget build() { com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget result = new com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.currentAmountMicros_ = currentAmountMicros_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.recommendedNewAmountMicros_ = recommendedNewAmountMicros_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.newStartDate_ = newStartDate_; } } @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.v16.resources.Recommendation.CampaignBudget) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance()) return this; if (other.getCurrentAmountMicros() != 0L) { setCurrentAmountMicros(other.getCurrentAmountMicros()); } if (other.getRecommendedNewAmountMicros() != 0L) { setRecommendedNewAmountMicros(other.getRecommendedNewAmountMicros()); } if (!other.getNewStartDate().isEmpty()) { newStartDate_ = other.newStartDate_; bitField0_ |= 0x00000004; onChanged(); } 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 8: { currentAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { recommendedNewAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { newStartDate_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 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 currentAmountMicros_ ; /** *
       * Output only. Current budget amount.
       * 
* * int64 current_amount_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAmountMicros. */ @java.lang.Override public long getCurrentAmountMicros() { return currentAmountMicros_; } /** *
       * Output only. Current budget amount.
       * 
* * int64 current_amount_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The currentAmountMicros to set. * @return This builder for chaining. */ public Builder setCurrentAmountMicros(long value) { currentAmountMicros_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. Current budget amount.
       * 
* * int64 current_amount_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCurrentAmountMicros() { bitField0_ = (bitField0_ & ~0x00000001); currentAmountMicros_ = 0L; onChanged(); return this; } private long recommendedNewAmountMicros_ ; /** *
       * Output only. Recommended budget amount.
       * 
* * int64 recommended_new_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedNewAmountMicros. */ @java.lang.Override public long getRecommendedNewAmountMicros() { return recommendedNewAmountMicros_; } /** *
       * Output only. Recommended budget amount.
       * 
* * int64 recommended_new_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedNewAmountMicros to set. * @return This builder for chaining. */ public Builder setRecommendedNewAmountMicros(long value) { recommendedNewAmountMicros_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. Recommended budget amount.
       * 
* * int64 recommended_new_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedNewAmountMicros() { bitField0_ = (bitField0_ & ~0x00000002); recommendedNewAmountMicros_ = 0L; onChanged(); return this; } private java.lang.Object newStartDate_ = ""; /** *
       * Output only. The date when the new budget would start being used.
       * This field will be set for the following recommendation types:
       * FORECASTING_SET_TARGET_ROAS , FORECASTING_SET_TARGET_CPA
       * YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The newStartDate. */ public java.lang.String getNewStartDate() { java.lang.Object ref = newStartDate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newStartDate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The date when the new budget would start being used.
       * This field will be set for the following recommendation types:
       * FORECASTING_SET_TARGET_ROAS , FORECASTING_SET_TARGET_CPA
       * YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for newStartDate. */ public com.google.protobuf.ByteString getNewStartDateBytes() { java.lang.Object ref = newStartDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newStartDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The date when the new budget would start being used.
       * This field will be set for the following recommendation types:
       * FORECASTING_SET_TARGET_ROAS , FORECASTING_SET_TARGET_CPA
       * YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The newStartDate to set. * @return This builder for chaining. */ public Builder setNewStartDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } newStartDate_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. The date when the new budget would start being used.
       * This field will be set for the following recommendation types:
       * FORECASTING_SET_TARGET_ROAS , FORECASTING_SET_TARGET_CPA
       * YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearNewStartDate() { newStartDate_ = getDefaultInstance().getNewStartDate(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Output only. The date when the new budget would start being used.
       * This field will be set for the following recommendation types:
       * FORECASTING_SET_TARGET_ROAS , FORECASTING_SET_TARGET_CPA
       * YYYY-MM-DD format, for example, 2018-04-17.
       * 
* * string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for newStartDate to set. * @return This builder for chaining. */ public Builder setNewStartDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); newStartDate_ = value; bitField0_ |= 0x00000004; 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.v16.resources.Recommendation.CampaignBudget) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.CampaignBudget) private static final com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget(); } public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CampaignBudget 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.v16.resources.Recommendation.CampaignBudget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PerformanceMaxOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * The Performance Max Opt In recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation} */ public static final class PerformanceMaxOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) PerformanceMaxOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use PerformanceMaxOptInRecommendation.newBuilder() to construct. private PerformanceMaxOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PerformanceMaxOptInRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PerformanceMaxOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_PerformanceMaxOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_PerformanceMaxOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.PerformanceMaxOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxOptInRecommendation 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; } /** *
     * The Performance Max Opt In recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_PerformanceMaxOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_PerformanceMaxOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_PerformanceMaxOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation(this); 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.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PerformanceMaxOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ImprovePerformanceMaxAdStrengthRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The asset group resource name.
     * 
* * string asset_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The assetGroup. */ java.lang.String getAssetGroup(); /** *
     * Output only. The asset group resource name.
     * 
* * string asset_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for assetGroup. */ com.google.protobuf.ByteString getAssetGroupBytes(); } /** *
   * Recommendation to improve the asset group strength of a Performance Max
   * campaign to an "Excellent" rating.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation} */ public static final class ImprovePerformanceMaxAdStrengthRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) ImprovePerformanceMaxAdStrengthRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ImprovePerformanceMaxAdStrengthRecommendation.newBuilder() to construct. private ImprovePerformanceMaxAdStrengthRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImprovePerformanceMaxAdStrengthRecommendation() { assetGroup_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ImprovePerformanceMaxAdStrengthRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImprovePerformanceMaxAdStrengthRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImprovePerformanceMaxAdStrengthRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.Builder.class); } public static final int ASSET_GROUP_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object assetGroup_ = ""; /** *
     * Output only. The asset group resource name.
     * 
* * string asset_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The assetGroup. */ @java.lang.Override public java.lang.String getAssetGroup() { java.lang.Object ref = assetGroup_; 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(); assetGroup_ = s; return s; } } /** *
     * Output only. The asset group resource name.
     * 
* * string asset_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for assetGroup. */ @java.lang.Override public com.google.protobuf.ByteString getAssetGroupBytes() { java.lang.Object ref = assetGroup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(assetGroup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assetGroup_); } 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(assetGroup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, assetGroup_); } 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.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) obj; if (!getAssetGroup() .equals(other.getAssetGroup())) 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(); hash = (37 * hash) + ASSET_GROUP_FIELD_NUMBER; hash = (53 * hash) + getAssetGroup().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation 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.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation 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.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation 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.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation 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.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation 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.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation 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; } /** *
     * Recommendation to improve the asset group strength of a Performance Max
     * campaign to an "Excellent" rating.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImprovePerformanceMaxAdStrengthRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImprovePerformanceMaxAdStrengthRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; assetGroup_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImprovePerformanceMaxAdStrengthRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.assetGroup_ = assetGroup_; } } @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.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.getDefaultInstance()) return this; if (!other.getAssetGroup().isEmpty()) { assetGroup_ = other.assetGroup_; bitField0_ |= 0x00000001; onChanged(); } 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: { assetGroup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object assetGroup_ = ""; /** *
       * Output only. The asset group resource name.
       * 
* * string asset_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The assetGroup. */ public java.lang.String getAssetGroup() { java.lang.Object ref = assetGroup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetGroup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The asset group resource name.
       * 
* * string asset_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for assetGroup. */ public com.google.protobuf.ByteString getAssetGroupBytes() { java.lang.Object ref = assetGroup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); assetGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The asset group resource name.
       * 
* * string asset_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The assetGroup to set. * @return This builder for chaining. */ public Builder setAssetGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } assetGroup_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The asset group resource name.
       * 
* * string asset_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAssetGroup() { assetGroup_ = getDefaultInstance().getAssetGroup(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Output only. The asset group resource name.
       * 
* * string asset_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for assetGroup to set. * @return This builder for chaining. */ public Builder setAssetGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); assetGroup_ = value; bitField0_ |= 0x00000001; 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.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImprovePerformanceMaxAdStrengthRecommendation 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.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. A link to the Google Ads UI where the customer can manually
     * apply the recommendation.
     * 
* * string apply_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The applyLink. */ java.lang.String getApplyLink(); /** *
     * Output only. A link to the Google Ads UI where the customer can manually
     * apply the recommendation.
     * 
* * string apply_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for applyLink. */ com.google.protobuf.ByteString getApplyLinkBytes(); } /** *
   * The Dynamic Search Ads to Performance Max migration recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation} */ public static final class MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.newBuilder() to construct. private MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation() { applyLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.Builder.class); } public static final int APPLY_LINK_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object applyLink_ = ""; /** *
     * Output only. A link to the Google Ads UI where the customer can manually
     * apply the recommendation.
     * 
* * string apply_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The applyLink. */ @java.lang.Override public java.lang.String getApplyLink() { java.lang.Object ref = applyLink_; 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(); applyLink_ = s; return s; } } /** *
     * Output only. A link to the Google Ads UI where the customer can manually
     * apply the recommendation.
     * 
* * string apply_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for applyLink. */ @java.lang.Override public com.google.protobuf.ByteString getApplyLinkBytes() { java.lang.Object ref = applyLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); applyLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(applyLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, applyLink_); } 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(applyLink_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, applyLink_); } 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.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) obj; if (!getApplyLink() .equals(other.getApplyLink())) 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(); hash = (37 * hash) + APPLY_LINK_FIELD_NUMBER; hash = (53 * hash) + getApplyLink().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation 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; } /** *
     * The Dynamic Search Ads to Performance Max migration recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; applyLink_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.applyLink_ = applyLink_; } } @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.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.getDefaultInstance()) return this; if (!other.getApplyLink().isEmpty()) { applyLink_ = other.applyLink_; bitField0_ |= 0x00000001; onChanged(); } 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: { applyLink_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object applyLink_ = ""; /** *
       * Output only. A link to the Google Ads UI where the customer can manually
       * apply the recommendation.
       * 
* * string apply_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The applyLink. */ public java.lang.String getApplyLink() { java.lang.Object ref = applyLink_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); applyLink_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. A link to the Google Ads UI where the customer can manually
       * apply the recommendation.
       * 
* * string apply_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for applyLink. */ public com.google.protobuf.ByteString getApplyLinkBytes() { java.lang.Object ref = applyLink_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); applyLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. A link to the Google Ads UI where the customer can manually
       * apply the recommendation.
       * 
* * string apply_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The applyLink to set. * @return This builder for chaining. */ public Builder setApplyLink( java.lang.String value) { if (value == null) { throw new NullPointerException(); } applyLink_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. A link to the Google Ads UI where the customer can manually
       * apply the recommendation.
       * 
* * string apply_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearApplyLink() { applyLink_ = getDefaultInstance().getApplyLink(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Output only. A link to the Google Ads UI where the customer can manually
       * apply the recommendation.
       * 
* * string apply_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for applyLink to set. * @return This builder for chaining. */ public Builder setApplyLinkBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); applyLink_ = value; bitField0_ |= 0x00000001; 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.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ForecastingSetTargetCpaRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The recommended target CPA.
     * 
* * int64 recommended_target_cpa_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetCpaMicros. */ long getRecommendedTargetCpaMicros(); /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the campaignBudget field is set. */ boolean hasCampaignBudget(); /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignBudget. */ com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget getCampaignBudget(); /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder getCampaignBudgetOrBuilder(); } /** *
   * The set target CPA recommendations.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation} */ public static final class ForecastingSetTargetCpaRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) ForecastingSetTargetCpaRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ForecastingSetTargetCpaRecommendation.newBuilder() to construct. private ForecastingSetTargetCpaRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ForecastingSetTargetCpaRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ForecastingSetTargetCpaRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetCpaRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetCpaRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder.class); } private int bitField0_; public static final int RECOMMENDED_TARGET_CPA_MICROS_FIELD_NUMBER = 1; private long recommendedTargetCpaMicros_ = 0L; /** *
     * Output only. The recommended target CPA.
     * 
* * int64 recommended_target_cpa_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetCpaMicros. */ @java.lang.Override public long getRecommendedTargetCpaMicros() { return recommendedTargetCpaMicros_; } public static final int CAMPAIGN_BUDGET_FIELD_NUMBER = 2; private com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaignBudget_; /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the campaignBudget field is set. */ @java.lang.Override public boolean hasCampaignBudget() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignBudget. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget getCampaignBudget() { return campaignBudget_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_; } /** *
     * Output only. The campaign budget.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder getCampaignBudgetOrBuilder() { return campaignBudget_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_; } 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 (recommendedTargetCpaMicros_ != 0L) { output.writeInt64(1, recommendedTargetCpaMicros_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCampaignBudget()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (recommendedTargetCpaMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, recommendedTargetCpaMicros_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCampaignBudget()); } 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.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) obj; if (getRecommendedTargetCpaMicros() != other.getRecommendedTargetCpaMicros()) return false; if (hasCampaignBudget() != other.hasCampaignBudget()) return false; if (hasCampaignBudget()) { if (!getCampaignBudget() .equals(other.getCampaignBudget())) 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(); hash = (37 * hash) + RECOMMENDED_TARGET_CPA_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRecommendedTargetCpaMicros()); if (hasCampaignBudget()) { hash = (37 * hash) + CAMPAIGN_BUDGET_FIELD_NUMBER; hash = (53 * hash) + getCampaignBudget().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation 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; } /** *
     * The set target CPA recommendations.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetCpaRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetCpaRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCampaignBudgetFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recommendedTargetCpaMicros_ = 0L; campaignBudget_ = null; if (campaignBudgetBuilder_ != null) { campaignBudgetBuilder_.dispose(); campaignBudgetBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetCpaRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recommendedTargetCpaMicros_ = recommendedTargetCpaMicros_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.campaignBudget_ = campaignBudgetBuilder_ == null ? campaignBudget_ : campaignBudgetBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance()) return this; if (other.getRecommendedTargetCpaMicros() != 0L) { setRecommendedTargetCpaMicros(other.getRecommendedTargetCpaMicros()); } if (other.hasCampaignBudget()) { mergeCampaignBudget(other.getCampaignBudget()); } 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 8: { recommendedTargetCpaMicros_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getCampaignBudgetFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 recommendedTargetCpaMicros_ ; /** *
       * Output only. The recommended target CPA.
       * 
* * int64 recommended_target_cpa_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedTargetCpaMicros. */ @java.lang.Override public long getRecommendedTargetCpaMicros() { return recommendedTargetCpaMicros_; } /** *
       * Output only. The recommended target CPA.
       * 
* * int64 recommended_target_cpa_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The recommendedTargetCpaMicros to set. * @return This builder for chaining. */ public Builder setRecommendedTargetCpaMicros(long value) { recommendedTargetCpaMicros_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The recommended target CPA.
       * 
* * int64 recommended_target_cpa_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedTargetCpaMicros() { bitField0_ = (bitField0_ & ~0x00000001); recommendedTargetCpaMicros_ = 0L; onChanged(); return this; } private com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaignBudget_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder> campaignBudgetBuilder_; /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the campaignBudget field is set. */ public boolean hasCampaignBudget() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignBudget. */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget getCampaignBudget() { if (campaignBudgetBuilder_ == null) { return campaignBudget_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_; } else { return campaignBudgetBuilder_.getMessage(); } } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCampaignBudget(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget value) { if (campaignBudgetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignBudget_ = value; } else { campaignBudgetBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCampaignBudget( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder builderForValue) { if (campaignBudgetBuilder_ == null) { campaignBudget_ = builderForValue.build(); } else { campaignBudgetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCampaignBudget(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget value) { if (campaignBudgetBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && campaignBudget_ != null && campaignBudget_ != com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance()) { getCampaignBudgetBuilder().mergeFrom(value); } else { campaignBudget_ = value; } } else { campaignBudgetBuilder_.mergeFrom(value); } if (campaignBudget_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCampaignBudget() { bitField0_ = (bitField0_ & ~0x00000002); campaignBudget_ = null; if (campaignBudgetBuilder_ != null) { campaignBudgetBuilder_.dispose(); campaignBudgetBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder getCampaignBudgetBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCampaignBudgetFieldBuilder().getBuilder(); } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder getCampaignBudgetOrBuilder() { if (campaignBudgetBuilder_ != null) { return campaignBudgetBuilder_.getMessageOrBuilder(); } else { return campaignBudget_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_; } } /** *
       * Output only. The campaign budget.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder> getCampaignBudgetFieldBuilder() { if (campaignBudgetBuilder_ == null) { campaignBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder>( getCampaignBudget(), getParentForChildren(), isClean()); campaignBudget_ = null; } return campaignBudgetBuilder_; } @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.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ForecastingSetTargetCpaRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MaximizeConversionValueOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * Recommendation to opt into Maximize Conversion Value bidding strategy.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation} */ public static final class MaximizeConversionValueOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) MaximizeConversionValueOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use MaximizeConversionValueOptInRecommendation.newBuilder() to construct. private MaximizeConversionValueOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MaximizeConversionValueOptInRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MaximizeConversionValueOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionValueOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionValueOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation 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; } /** *
     * Recommendation to opt into Maximize Conversion Value bidding strategy.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionValueOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionValueOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionValueOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation(this); 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.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MaximizeConversionValueOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ImproveGoogleTagCoverageRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * Recommendation to deploy Google Tag on more pages.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation} */ public static final class ImproveGoogleTagCoverageRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) ImproveGoogleTagCoverageRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ImproveGoogleTagCoverageRecommendation.newBuilder() to construct. private ImproveGoogleTagCoverageRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImproveGoogleTagCoverageRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ImproveGoogleTagCoverageRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImproveGoogleTagCoverageRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImproveGoogleTagCoverageRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation 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.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation 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.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation 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.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation 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.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation 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.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation 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; } /** *
     * Recommendation to deploy Google Tag on more pages.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImproveGoogleTagCoverageRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImproveGoogleTagCoverageRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImproveGoogleTagCoverageRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation(this); 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.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImproveGoogleTagCoverageRecommendation 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.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PerformanceMaxFinalUrlOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * Recommendation to turn on Final URL expansion for your Performance Max
   * campaigns.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation} */ public static final class PerformanceMaxFinalUrlOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) PerformanceMaxFinalUrlOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use PerformanceMaxFinalUrlOptInRecommendation.newBuilder() to construct. private PerformanceMaxFinalUrlOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PerformanceMaxFinalUrlOptInRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PerformanceMaxFinalUrlOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_PerformanceMaxFinalUrlOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_PerformanceMaxFinalUrlOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation 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; } /** *
     * Recommendation to turn on Final URL expansion for your Performance Max
     * campaigns.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_PerformanceMaxFinalUrlOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_PerformanceMaxFinalUrlOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_PerformanceMaxFinalUrlOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation(this); 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.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PerformanceMaxFinalUrlOptInRecommendation 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.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RefreshCustomerMatchListRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The user list ID.
     * 
* * int64 user_list_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The userListId. */ long getUserListId(); /** *
     * Output only. The name of the list.
     * 
* * string user_list_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The userListName. */ java.lang.String getUserListName(); /** *
     * Output only. The name of the list.
     * 
* * string user_list_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for userListName. */ com.google.protobuf.ByteString getUserListNameBytes(); /** *
     * Output only. Days since last refresh.
     * 
* * int64 days_since_last_refresh = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The daysSinceLastRefresh. */ long getDaysSinceLastRefresh(); /** *
     * Output only. The top spending account.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getTopSpendingAccountList(); /** *
     * Output only. The top spending account.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.AccountInfo getTopSpendingAccount(int index); /** *
     * Output only. The top spending account.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getTopSpendingAccountCount(); /** *
     * Output only. The top spending account.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getTopSpendingAccountOrBuilderList(); /** *
     * Output only. The top spending account.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder getTopSpendingAccountOrBuilder( int index); /** *
     * Output only. User lists can be shared with other accounts by the owner.
     * targeting_accounts_count is the number of those accounts that can use it
     * for targeting.
     * 
* * int64 targeting_accounts_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetingAccountsCount. */ long getTargetingAccountsCount(); /** *
     * Output only. The owner account. This is the account that should update
     * the customer list.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ownerAccount field is set. */ boolean hasOwnerAccount(); /** *
     * Output only. The owner account. This is the account that should update
     * the customer list.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ownerAccount. */ com.google.ads.googleads.v16.resources.Recommendation.AccountInfo getOwnerAccount(); /** *
     * Output only. The owner account. This is the account that should update
     * the customer list.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder getOwnerAccountOrBuilder(); } /** *
   * The recommendation to update a customer list that hasn't been updated in
   * the last 90 days. The customer receiving the recommendation is not
   * necessarily the owner account. The owner account should update the customer
   * list.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation} */ public static final class RefreshCustomerMatchListRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) RefreshCustomerMatchListRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use RefreshCustomerMatchListRecommendation.newBuilder() to construct. private RefreshCustomerMatchListRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RefreshCustomerMatchListRecommendation() { userListName_ = ""; topSpendingAccount_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RefreshCustomerMatchListRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RefreshCustomerMatchListRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RefreshCustomerMatchListRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.Builder.class); } private int bitField0_; public static final int USER_LIST_ID_FIELD_NUMBER = 1; private long userListId_ = 0L; /** *
     * Output only. The user list ID.
     * 
* * int64 user_list_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The userListId. */ @java.lang.Override public long getUserListId() { return userListId_; } public static final int USER_LIST_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object userListName_ = ""; /** *
     * Output only. The name of the list.
     * 
* * string user_list_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The userListName. */ @java.lang.Override public java.lang.String getUserListName() { java.lang.Object ref = userListName_; 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(); userListName_ = s; return s; } } /** *
     * Output only. The name of the list.
     * 
* * string user_list_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for userListName. */ @java.lang.Override public com.google.protobuf.ByteString getUserListNameBytes() { java.lang.Object ref = userListName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userListName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DAYS_SINCE_LAST_REFRESH_FIELD_NUMBER = 3; private long daysSinceLastRefresh_ = 0L; /** *
     * Output only. Days since last refresh.
     * 
* * int64 days_since_last_refresh = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The daysSinceLastRefresh. */ @java.lang.Override public long getDaysSinceLastRefresh() { return daysSinceLastRefresh_; } public static final int TOP_SPENDING_ACCOUNT_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List topSpendingAccount_; /** *
     * Output only. The top spending account.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getTopSpendingAccountList() { return topSpendingAccount_; } /** *
     * Output only. The top spending account.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getTopSpendingAccountOrBuilderList() { return topSpendingAccount_; } /** *
     * Output only. The top spending account.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getTopSpendingAccountCount() { return topSpendingAccount_.size(); } /** *
     * Output only. The top spending account.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.AccountInfo getTopSpendingAccount(int index) { return topSpendingAccount_.get(index); } /** *
     * Output only. The top spending account.
     * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder getTopSpendingAccountOrBuilder( int index) { return topSpendingAccount_.get(index); } public static final int TARGETING_ACCOUNTS_COUNT_FIELD_NUMBER = 5; private long targetingAccountsCount_ = 0L; /** *
     * Output only. User lists can be shared with other accounts by the owner.
     * targeting_accounts_count is the number of those accounts that can use it
     * for targeting.
     * 
* * int64 targeting_accounts_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetingAccountsCount. */ @java.lang.Override public long getTargetingAccountsCount() { return targetingAccountsCount_; } public static final int OWNER_ACCOUNT_FIELD_NUMBER = 6; private com.google.ads.googleads.v16.resources.Recommendation.AccountInfo ownerAccount_; /** *
     * Output only. The owner account. This is the account that should update
     * the customer list.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ownerAccount field is set. */ @java.lang.Override public boolean hasOwnerAccount() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The owner account. This is the account that should update
     * the customer list.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ownerAccount. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.AccountInfo getOwnerAccount() { return ownerAccount_ == null ? com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.getDefaultInstance() : ownerAccount_; } /** *
     * Output only. The owner account. This is the account that should update
     * the customer list.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder getOwnerAccountOrBuilder() { return ownerAccount_ == null ? com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.getDefaultInstance() : ownerAccount_; } 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 (userListId_ != 0L) { output.writeInt64(1, userListId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userListName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userListName_); } if (daysSinceLastRefresh_ != 0L) { output.writeInt64(3, daysSinceLastRefresh_); } for (int i = 0; i < topSpendingAccount_.size(); i++) { output.writeMessage(4, topSpendingAccount_.get(i)); } if (targetingAccountsCount_ != 0L) { output.writeInt64(5, targetingAccountsCount_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getOwnerAccount()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (userListId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, userListId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userListName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userListName_); } if (daysSinceLastRefresh_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, daysSinceLastRefresh_); } for (int i = 0; i < topSpendingAccount_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, topSpendingAccount_.get(i)); } if (targetingAccountsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, targetingAccountsCount_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getOwnerAccount()); } 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.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) obj; if (getUserListId() != other.getUserListId()) return false; if (!getUserListName() .equals(other.getUserListName())) return false; if (getDaysSinceLastRefresh() != other.getDaysSinceLastRefresh()) return false; if (!getTopSpendingAccountList() .equals(other.getTopSpendingAccountList())) return false; if (getTargetingAccountsCount() != other.getTargetingAccountsCount()) return false; if (hasOwnerAccount() != other.hasOwnerAccount()) return false; if (hasOwnerAccount()) { if (!getOwnerAccount() .equals(other.getOwnerAccount())) 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(); hash = (37 * hash) + USER_LIST_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUserListId()); hash = (37 * hash) + USER_LIST_NAME_FIELD_NUMBER; hash = (53 * hash) + getUserListName().hashCode(); hash = (37 * hash) + DAYS_SINCE_LAST_REFRESH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDaysSinceLastRefresh()); if (getTopSpendingAccountCount() > 0) { hash = (37 * hash) + TOP_SPENDING_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getTopSpendingAccountList().hashCode(); } hash = (37 * hash) + TARGETING_ACCOUNTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTargetingAccountsCount()); if (hasOwnerAccount()) { hash = (37 * hash) + OWNER_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getOwnerAccount().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation 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.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation 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.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation 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.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation 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.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation 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.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation 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; } /** *
     * The recommendation to update a customer list that hasn't been updated in
     * the last 90 days. The customer receiving the recommendation is not
     * necessarily the owner account. The owner account should update the customer
     * list.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RefreshCustomerMatchListRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RefreshCustomerMatchListRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTopSpendingAccountFieldBuilder(); getOwnerAccountFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; userListId_ = 0L; userListName_ = ""; daysSinceLastRefresh_ = 0L; if (topSpendingAccountBuilder_ == null) { topSpendingAccount_ = java.util.Collections.emptyList(); } else { topSpendingAccount_ = null; topSpendingAccountBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); targetingAccountsCount_ = 0L; ownerAccount_ = null; if (ownerAccountBuilder_ != null) { ownerAccountBuilder_.dispose(); ownerAccountBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RefreshCustomerMatchListRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation result) { if (topSpendingAccountBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { topSpendingAccount_ = java.util.Collections.unmodifiableList(topSpendingAccount_); bitField0_ = (bitField0_ & ~0x00000008); } result.topSpendingAccount_ = topSpendingAccount_; } else { result.topSpendingAccount_ = topSpendingAccountBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.userListId_ = userListId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.userListName_ = userListName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.daysSinceLastRefresh_ = daysSinceLastRefresh_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.targetingAccountsCount_ = targetingAccountsCount_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.ownerAccount_ = ownerAccountBuilder_ == null ? ownerAccount_ : ownerAccountBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.getDefaultInstance()) return this; if (other.getUserListId() != 0L) { setUserListId(other.getUserListId()); } if (!other.getUserListName().isEmpty()) { userListName_ = other.userListName_; bitField0_ |= 0x00000002; onChanged(); } if (other.getDaysSinceLastRefresh() != 0L) { setDaysSinceLastRefresh(other.getDaysSinceLastRefresh()); } if (topSpendingAccountBuilder_ == null) { if (!other.topSpendingAccount_.isEmpty()) { if (topSpendingAccount_.isEmpty()) { topSpendingAccount_ = other.topSpendingAccount_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTopSpendingAccountIsMutable(); topSpendingAccount_.addAll(other.topSpendingAccount_); } onChanged(); } } else { if (!other.topSpendingAccount_.isEmpty()) { if (topSpendingAccountBuilder_.isEmpty()) { topSpendingAccountBuilder_.dispose(); topSpendingAccountBuilder_ = null; topSpendingAccount_ = other.topSpendingAccount_; bitField0_ = (bitField0_ & ~0x00000008); topSpendingAccountBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTopSpendingAccountFieldBuilder() : null; } else { topSpendingAccountBuilder_.addAllMessages(other.topSpendingAccount_); } } } if (other.getTargetingAccountsCount() != 0L) { setTargetingAccountsCount(other.getTargetingAccountsCount()); } if (other.hasOwnerAccount()) { mergeOwnerAccount(other.getOwnerAccount()); } 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 8: { userListId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { userListName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { daysSinceLastRefresh_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { com.google.ads.googleads.v16.resources.Recommendation.AccountInfo m = input.readMessage( com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.parser(), extensionRegistry); if (topSpendingAccountBuilder_ == null) { ensureTopSpendingAccountIsMutable(); topSpendingAccount_.add(m); } else { topSpendingAccountBuilder_.addMessage(m); } break; } // case 34 case 40: { targetingAccountsCount_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { input.readMessage( getOwnerAccountFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 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 userListId_ ; /** *
       * Output only. The user list ID.
       * 
* * int64 user_list_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The userListId. */ @java.lang.Override public long getUserListId() { return userListId_; } /** *
       * Output only. The user list ID.
       * 
* * int64 user_list_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The userListId to set. * @return This builder for chaining. */ public Builder setUserListId(long value) { userListId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The user list ID.
       * 
* * int64 user_list_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearUserListId() { bitField0_ = (bitField0_ & ~0x00000001); userListId_ = 0L; onChanged(); return this; } private java.lang.Object userListName_ = ""; /** *
       * Output only. The name of the list.
       * 
* * string user_list_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The userListName. */ public java.lang.String getUserListName() { java.lang.Object ref = userListName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userListName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The name of the list.
       * 
* * string user_list_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for userListName. */ public com.google.protobuf.ByteString getUserListNameBytes() { java.lang.Object ref = userListName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userListName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The name of the list.
       * 
* * string user_list_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The userListName to set. * @return This builder for chaining. */ public Builder setUserListName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userListName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The name of the list.
       * 
* * string user_list_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearUserListName() { userListName_ = getDefaultInstance().getUserListName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. The name of the list.
       * 
* * string user_list_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for userListName to set. * @return This builder for chaining. */ public Builder setUserListNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userListName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long daysSinceLastRefresh_ ; /** *
       * Output only. Days since last refresh.
       * 
* * int64 days_since_last_refresh = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The daysSinceLastRefresh. */ @java.lang.Override public long getDaysSinceLastRefresh() { return daysSinceLastRefresh_; } /** *
       * Output only. Days since last refresh.
       * 
* * int64 days_since_last_refresh = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The daysSinceLastRefresh to set. * @return This builder for chaining. */ public Builder setDaysSinceLastRefresh(long value) { daysSinceLastRefresh_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. Days since last refresh.
       * 
* * int64 days_since_last_refresh = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDaysSinceLastRefresh() { bitField0_ = (bitField0_ & ~0x00000004); daysSinceLastRefresh_ = 0L; onChanged(); return this; } private java.util.List topSpendingAccount_ = java.util.Collections.emptyList(); private void ensureTopSpendingAccountIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { topSpendingAccount_ = new java.util.ArrayList(topSpendingAccount_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.AccountInfo, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder> topSpendingAccountBuilder_; /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getTopSpendingAccountList() { if (topSpendingAccountBuilder_ == null) { return java.util.Collections.unmodifiableList(topSpendingAccount_); } else { return topSpendingAccountBuilder_.getMessageList(); } } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getTopSpendingAccountCount() { if (topSpendingAccountBuilder_ == null) { return topSpendingAccount_.size(); } else { return topSpendingAccountBuilder_.getCount(); } } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.AccountInfo getTopSpendingAccount(int index) { if (topSpendingAccountBuilder_ == null) { return topSpendingAccount_.get(index); } else { return topSpendingAccountBuilder_.getMessage(index); } } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTopSpendingAccount( int index, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo value) { if (topSpendingAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopSpendingAccountIsMutable(); topSpendingAccount_.set(index, value); onChanged(); } else { topSpendingAccountBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTopSpendingAccount( int index, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder builderForValue) { if (topSpendingAccountBuilder_ == null) { ensureTopSpendingAccountIsMutable(); topSpendingAccount_.set(index, builderForValue.build()); onChanged(); } else { topSpendingAccountBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTopSpendingAccount(com.google.ads.googleads.v16.resources.Recommendation.AccountInfo value) { if (topSpendingAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopSpendingAccountIsMutable(); topSpendingAccount_.add(value); onChanged(); } else { topSpendingAccountBuilder_.addMessage(value); } return this; } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTopSpendingAccount( int index, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo value) { if (topSpendingAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopSpendingAccountIsMutable(); topSpendingAccount_.add(index, value); onChanged(); } else { topSpendingAccountBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTopSpendingAccount( com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder builderForValue) { if (topSpendingAccountBuilder_ == null) { ensureTopSpendingAccountIsMutable(); topSpendingAccount_.add(builderForValue.build()); onChanged(); } else { topSpendingAccountBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addTopSpendingAccount( int index, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder builderForValue) { if (topSpendingAccountBuilder_ == null) { ensureTopSpendingAccountIsMutable(); topSpendingAccount_.add(index, builderForValue.build()); onChanged(); } else { topSpendingAccountBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllTopSpendingAccount( java.lang.Iterable values) { if (topSpendingAccountBuilder_ == null) { ensureTopSpendingAccountIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, topSpendingAccount_); onChanged(); } else { topSpendingAccountBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTopSpendingAccount() { if (topSpendingAccountBuilder_ == null) { topSpendingAccount_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { topSpendingAccountBuilder_.clear(); } return this; } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeTopSpendingAccount(int index) { if (topSpendingAccountBuilder_ == null) { ensureTopSpendingAccountIsMutable(); topSpendingAccount_.remove(index); onChanged(); } else { topSpendingAccountBuilder_.remove(index); } return this; } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder getTopSpendingAccountBuilder( int index) { return getTopSpendingAccountFieldBuilder().getBuilder(index); } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder getTopSpendingAccountOrBuilder( int index) { if (topSpendingAccountBuilder_ == null) { return topSpendingAccount_.get(index); } else { return topSpendingAccountBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getTopSpendingAccountOrBuilderList() { if (topSpendingAccountBuilder_ != null) { return topSpendingAccountBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(topSpendingAccount_); } } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder addTopSpendingAccountBuilder() { return getTopSpendingAccountFieldBuilder().addBuilder( com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.getDefaultInstance()); } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder addTopSpendingAccountBuilder( int index) { return getTopSpendingAccountFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.getDefaultInstance()); } /** *
       * Output only. The top spending account.
       * 
* * repeated .google.ads.googleads.v16.resources.Recommendation.AccountInfo top_spending_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getTopSpendingAccountBuilderList() { return getTopSpendingAccountFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.AccountInfo, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder> getTopSpendingAccountFieldBuilder() { if (topSpendingAccountBuilder_ == null) { topSpendingAccountBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.AccountInfo, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder>( topSpendingAccount_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); topSpendingAccount_ = null; } return topSpendingAccountBuilder_; } private long targetingAccountsCount_ ; /** *
       * Output only. User lists can be shared with other accounts by the owner.
       * targeting_accounts_count is the number of those accounts that can use it
       * for targeting.
       * 
* * int64 targeting_accounts_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetingAccountsCount. */ @java.lang.Override public long getTargetingAccountsCount() { return targetingAccountsCount_; } /** *
       * Output only. User lists can be shared with other accounts by the owner.
       * targeting_accounts_count is the number of those accounts that can use it
       * for targeting.
       * 
* * int64 targeting_accounts_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The targetingAccountsCount to set. * @return This builder for chaining. */ public Builder setTargetingAccountsCount(long value) { targetingAccountsCount_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Output only. User lists can be shared with other accounts by the owner.
       * targeting_accounts_count is the number of those accounts that can use it
       * for targeting.
       * 
* * int64 targeting_accounts_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTargetingAccountsCount() { bitField0_ = (bitField0_ & ~0x00000010); targetingAccountsCount_ = 0L; onChanged(); return this; } private com.google.ads.googleads.v16.resources.Recommendation.AccountInfo ownerAccount_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.AccountInfo, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder> ownerAccountBuilder_; /** *
       * Output only. The owner account. This is the account that should update
       * the customer list.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ownerAccount field is set. */ public boolean hasOwnerAccount() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Output only. The owner account. This is the account that should update
       * the customer list.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ownerAccount. */ public com.google.ads.googleads.v16.resources.Recommendation.AccountInfo getOwnerAccount() { if (ownerAccountBuilder_ == null) { return ownerAccount_ == null ? com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.getDefaultInstance() : ownerAccount_; } else { return ownerAccountBuilder_.getMessage(); } } /** *
       * Output only. The owner account. This is the account that should update
       * the customer list.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOwnerAccount(com.google.ads.googleads.v16.resources.Recommendation.AccountInfo value) { if (ownerAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ownerAccount_ = value; } else { ownerAccountBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Output only. The owner account. This is the account that should update
       * the customer list.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOwnerAccount( com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder builderForValue) { if (ownerAccountBuilder_ == null) { ownerAccount_ = builderForValue.build(); } else { ownerAccountBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Output only. The owner account. This is the account that should update
       * the customer list.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeOwnerAccount(com.google.ads.googleads.v16.resources.Recommendation.AccountInfo value) { if (ownerAccountBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && ownerAccount_ != null && ownerAccount_ != com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.getDefaultInstance()) { getOwnerAccountBuilder().mergeFrom(value); } else { ownerAccount_ = value; } } else { ownerAccountBuilder_.mergeFrom(value); } if (ownerAccount_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
       * Output only. The owner account. This is the account that should update
       * the customer list.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearOwnerAccount() { bitField0_ = (bitField0_ & ~0x00000020); ownerAccount_ = null; if (ownerAccountBuilder_ != null) { ownerAccountBuilder_.dispose(); ownerAccountBuilder_ = null; } onChanged(); return this; } /** *
       * Output only. The owner account. This is the account that should update
       * the customer list.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder getOwnerAccountBuilder() { bitField0_ |= 0x00000020; onChanged(); return getOwnerAccountFieldBuilder().getBuilder(); } /** *
       * Output only. The owner account. This is the account that should update
       * the customer list.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder getOwnerAccountOrBuilder() { if (ownerAccountBuilder_ != null) { return ownerAccountBuilder_.getMessageOrBuilder(); } else { return ownerAccount_ == null ? com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.getDefaultInstance() : ownerAccount_; } } /** *
       * Output only. The owner account. This is the account that should update
       * the customer list.
       * 
* * .google.ads.googleads.v16.resources.Recommendation.AccountInfo owner_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.AccountInfo, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder> getOwnerAccountFieldBuilder() { if (ownerAccountBuilder_ == null) { ownerAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.AccountInfo, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder>( getOwnerAccount(), getParentForChildren(), isClean()); ownerAccount_ = null; } return ownerAccountBuilder_; } @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.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RefreshCustomerMatchListRecommendation 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.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.AccountInfo) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The customer ID of the account.
     * 
* * int64 customer_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerId. */ long getCustomerId(); /** *
     * Output only. The descriptive name of the account.
     * 
* * string descriptive_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The descriptiveName. */ java.lang.String getDescriptiveName(); /** *
     * Output only. The descriptive name of the account.
     * 
* * string descriptive_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for descriptiveName. */ com.google.protobuf.ByteString getDescriptiveNameBytes(); } /** *
   * Wrapper for information about a Google Ads account.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.AccountInfo} */ public static final class AccountInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.AccountInfo) AccountInfoOrBuilder { private static final long serialVersionUID = 0L; // Use AccountInfo.newBuilder() to construct. private AccountInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountInfo() { descriptiveName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_AccountInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_AccountInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.class, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder.class); } public static final int CUSTOMER_ID_FIELD_NUMBER = 1; private long customerId_ = 0L; /** *
     * Output only. The customer ID of the account.
     * 
* * int64 customer_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerId. */ @java.lang.Override public long getCustomerId() { return customerId_; } public static final int DESCRIPTIVE_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object descriptiveName_ = ""; /** *
     * Output only. The descriptive name of the account.
     * 
* * string descriptive_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The descriptiveName. */ @java.lang.Override public java.lang.String getDescriptiveName() { java.lang.Object ref = descriptiveName_; 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(); descriptiveName_ = s; return s; } } /** *
     * Output only. The descriptive name of the account.
     * 
* * string descriptive_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for descriptiveName. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptiveNameBytes() { java.lang.Object ref = descriptiveName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptiveName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (customerId_ != 0L) { output.writeInt64(1, customerId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptiveName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descriptiveName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (customerId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, customerId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptiveName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, descriptiveName_); } 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.v16.resources.Recommendation.AccountInfo)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.AccountInfo other = (com.google.ads.googleads.v16.resources.Recommendation.AccountInfo) obj; if (getCustomerId() != other.getCustomerId()) return false; if (!getDescriptiveName() .equals(other.getDescriptiveName())) 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(); hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCustomerId()); hash = (37 * hash) + DESCRIPTIVE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDescriptiveName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.AccountInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.AccountInfo 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.v16.resources.Recommendation.AccountInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.AccountInfo 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.v16.resources.Recommendation.AccountInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.AccountInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.AccountInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.AccountInfo 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.v16.resources.Recommendation.AccountInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.AccountInfo 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.v16.resources.Recommendation.AccountInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.AccountInfo 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.v16.resources.Recommendation.AccountInfo 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; } /** *
     * Wrapper for information about a Google Ads account.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.AccountInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.AccountInfo) com.google.ads.googleads.v16.resources.Recommendation.AccountInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_AccountInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_AccountInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.class, com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; customerId_ = 0L; descriptiveName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_AccountInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.AccountInfo getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.AccountInfo build() { com.google.ads.googleads.v16.resources.Recommendation.AccountInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.AccountInfo buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.AccountInfo result = new com.google.ads.googleads.v16.resources.Recommendation.AccountInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.AccountInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.customerId_ = customerId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.descriptiveName_ = descriptiveName_; } } @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.v16.resources.Recommendation.AccountInfo) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.AccountInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.AccountInfo other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.AccountInfo.getDefaultInstance()) return this; if (other.getCustomerId() != 0L) { setCustomerId(other.getCustomerId()); } if (!other.getDescriptiveName().isEmpty()) { descriptiveName_ = other.descriptiveName_; bitField0_ |= 0x00000002; onChanged(); } 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 8: { customerId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { descriptiveName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 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 customerId_ ; /** *
       * Output only. The customer ID of the account.
       * 
* * int64 customer_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerId. */ @java.lang.Override public long getCustomerId() { return customerId_; } /** *
       * Output only. The customer ID of the account.
       * 
* * int64 customer_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The customerId to set. * @return This builder for chaining. */ public Builder setCustomerId(long value) { customerId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The customer ID of the account.
       * 
* * int64 customer_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCustomerId() { bitField0_ = (bitField0_ & ~0x00000001); customerId_ = 0L; onChanged(); return this; } private java.lang.Object descriptiveName_ = ""; /** *
       * Output only. The descriptive name of the account.
       * 
* * string descriptive_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The descriptiveName. */ public java.lang.String getDescriptiveName() { java.lang.Object ref = descriptiveName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptiveName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The descriptive name of the account.
       * 
* * string descriptive_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for descriptiveName. */ public com.google.protobuf.ByteString getDescriptiveNameBytes() { java.lang.Object ref = descriptiveName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptiveName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The descriptive name of the account.
       * 
* * string descriptive_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The descriptiveName to set. * @return This builder for chaining. */ public Builder setDescriptiveName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptiveName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The descriptive name of the account.
       * 
* * string descriptive_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDescriptiveName() { descriptiveName_ = getDefaultInstance().getDescriptiveName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Output only. The descriptive name of the account.
       * 
* * string descriptive_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for descriptiveName to set. * @return This builder for chaining. */ public Builder setDescriptiveNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptiveName_ = value; bitField0_ |= 0x00000002; 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.v16.resources.Recommendation.AccountInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.AccountInfo) private static final com.google.ads.googleads.v16.resources.Recommendation.AccountInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.AccountInfo(); } public static com.google.ads.googleads.v16.resources.Recommendation.AccountInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountInfo 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.v16.resources.Recommendation.AccountInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CustomAudienceOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The list of keywords to use for custom audience creation.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getKeywordsList(); /** *
     * Output only. The list of keywords to use for custom audience creation.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.common.KeywordInfo getKeywords(int index); /** *
     * Output only. The list of keywords to use for custom audience creation.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getKeywordsCount(); /** *
     * Output only. The list of keywords to use for custom audience creation.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getKeywordsOrBuilderList(); /** *
     * Output only. The list of keywords to use for custom audience creation.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordsOrBuilder( int index); } /** *
   * The Custom Audience Opt In recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation} */ public static final class CustomAudienceOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) CustomAudienceOptInRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use CustomAudienceOptInRecommendation.newBuilder() to construct. private CustomAudienceOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomAudienceOptInRecommendation() { keywords_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CustomAudienceOptInRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CustomAudienceOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CustomAudienceOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.Builder.class); } public static final int KEYWORDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List keywords_; /** *
     * Output only. The list of keywords to use for custom audience creation.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getKeywordsList() { return keywords_; } /** *
     * Output only. The list of keywords to use for custom audience creation.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getKeywordsOrBuilderList() { return keywords_; } /** *
     * Output only. The list of keywords to use for custom audience creation.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getKeywordsCount() { return keywords_.size(); } /** *
     * Output only. The list of keywords to use for custom audience creation.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.common.KeywordInfo getKeywords(int index) { return keywords_.get(index); } /** *
     * Output only. The list of keywords to use for custom audience creation.
     * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordsOrBuilder( int index) { return keywords_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < keywords_.size(); i++) { output.writeMessage(1, keywords_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < keywords_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, keywords_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) obj; if (!getKeywordsList() .equals(other.getKeywordsList())) 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 (getKeywordsCount() > 0) { hash = (37 * hash) + KEYWORDS_FIELD_NUMBER; hash = (53 * hash) + getKeywordsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation 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.v16.resources.Recommendation.CustomAudienceOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation 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.v16.resources.Recommendation.CustomAudienceOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation 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.v16.resources.Recommendation.CustomAudienceOptInRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation 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.v16.resources.Recommendation.CustomAudienceOptInRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation 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.v16.resources.Recommendation.CustomAudienceOptInRecommendation 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; } /** *
     * The Custom Audience Opt In recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CustomAudienceOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CustomAudienceOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (keywordsBuilder_ == null) { keywords_ = java.util.Collections.emptyList(); } else { keywords_ = null; keywordsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CustomAudienceOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation result) { if (keywordsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { keywords_ = java.util.Collections.unmodifiableList(keywords_); bitField0_ = (bitField0_ & ~0x00000001); } result.keywords_ = keywords_; } else { result.keywords_ = keywordsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.getDefaultInstance()) return this; if (keywordsBuilder_ == null) { if (!other.keywords_.isEmpty()) { if (keywords_.isEmpty()) { keywords_ = other.keywords_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeywordsIsMutable(); keywords_.addAll(other.keywords_); } onChanged(); } } else { if (!other.keywords_.isEmpty()) { if (keywordsBuilder_.isEmpty()) { keywordsBuilder_.dispose(); keywordsBuilder_ = null; keywords_ = other.keywords_; bitField0_ = (bitField0_ & ~0x00000001); keywordsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeywordsFieldBuilder() : null; } else { keywordsBuilder_.addAllMessages(other.keywords_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.ads.googleads.v16.common.KeywordInfo m = input.readMessage( com.google.ads.googleads.v16.common.KeywordInfo.parser(), extensionRegistry); if (keywordsBuilder_ == null) { ensureKeywordsIsMutable(); keywords_.add(m); } else { keywordsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List keywords_ = java.util.Collections.emptyList(); private void ensureKeywordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keywords_ = new java.util.ArrayList(keywords_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder> keywordsBuilder_; /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getKeywordsList() { if (keywordsBuilder_ == null) { return java.util.Collections.unmodifiableList(keywords_); } else { return keywordsBuilder_.getMessageList(); } } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getKeywordsCount() { if (keywordsBuilder_ == null) { return keywords_.size(); } else { return keywordsBuilder_.getCount(); } } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfo getKeywords(int index) { if (keywordsBuilder_ == null) { return keywords_.get(index); } else { return keywordsBuilder_.getMessage(index); } } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeywords( int index, com.google.ads.googleads.v16.common.KeywordInfo value) { if (keywordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeywordsIsMutable(); keywords_.set(index, value); onChanged(); } else { keywordsBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeywords( int index, com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) { if (keywordsBuilder_ == null) { ensureKeywordsIsMutable(); keywords_.set(index, builderForValue.build()); onChanged(); } else { keywordsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeywords(com.google.ads.googleads.v16.common.KeywordInfo value) { if (keywordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeywordsIsMutable(); keywords_.add(value); onChanged(); } else { keywordsBuilder_.addMessage(value); } return this; } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeywords( int index, com.google.ads.googleads.v16.common.KeywordInfo value) { if (keywordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeywordsIsMutable(); keywords_.add(index, value); onChanged(); } else { keywordsBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeywords( com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) { if (keywordsBuilder_ == null) { ensureKeywordsIsMutable(); keywords_.add(builderForValue.build()); onChanged(); } else { keywordsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeywords( int index, com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) { if (keywordsBuilder_ == null) { ensureKeywordsIsMutable(); keywords_.add(index, builderForValue.build()); onChanged(); } else { keywordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllKeywords( java.lang.Iterable values) { if (keywordsBuilder_ == null) { ensureKeywordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keywords_); onChanged(); } else { keywordsBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearKeywords() { if (keywordsBuilder_ == null) { keywords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { keywordsBuilder_.clear(); } return this; } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeKeywords(int index) { if (keywordsBuilder_ == null) { ensureKeywordsIsMutable(); keywords_.remove(index); onChanged(); } else { keywordsBuilder_.remove(index); } return this; } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfo.Builder getKeywordsBuilder( int index) { return getKeywordsFieldBuilder().getBuilder(index); } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordsOrBuilder( int index) { if (keywordsBuilder_ == null) { return keywords_.get(index); } else { return keywordsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getKeywordsOrBuilderList() { if (keywordsBuilder_ != null) { return keywordsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(keywords_); } } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfo.Builder addKeywordsBuilder() { return getKeywordsFieldBuilder().addBuilder( com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance()); } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.common.KeywordInfo.Builder addKeywordsBuilder( int index) { return getKeywordsFieldBuilder().addBuilder( index, com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance()); } /** *
       * Output only. The list of keywords to use for custom audience creation.
       * 
* * repeated .google.ads.googleads.v16.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getKeywordsBuilderList() { return getKeywordsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder> getKeywordsFieldBuilder() { if (keywordsBuilder_ == null) { keywordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>( keywords_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); keywords_ = null; } return keywordsBuilder_; } @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.v16.resources.Recommendation.CustomAudienceOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomAudienceOptInRecommendation 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.v16.resources.Recommendation.CustomAudienceOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeadFormAssetRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * The lead form asset recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation} */ public static final class LeadFormAssetRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) LeadFormAssetRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use LeadFormAssetRecommendation.newBuilder() to construct. private LeadFormAssetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeadFormAssetRecommendation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LeadFormAssetRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LeadFormAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LeadFormAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.v16.resources.Recommendation.LeadFormAssetRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation 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.v16.resources.Recommendation.LeadFormAssetRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation 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.v16.resources.Recommendation.LeadFormAssetRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation 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.v16.resources.Recommendation.LeadFormAssetRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation 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.v16.resources.Recommendation.LeadFormAssetRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation 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.v16.resources.Recommendation.LeadFormAssetRecommendation 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; } /** *
     * The lead form asset recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LeadFormAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LeadFormAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LeadFormAssetRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation(this); 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.v16.resources.Recommendation.LeadFormAssetRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.getDefaultInstance()) return this; 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; 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; } @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.v16.resources.Recommendation.LeadFormAssetRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LeadFormAssetRecommendation 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.v16.resources.Recommendation.LeadFormAssetRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ImproveDemandGenAdStrengthRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The resource name of the ad that can be improved.
     * 
* * string ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ java.lang.String getAd(); /** *
     * Output only. The resource name of the ad that can be improved.
     * 
* * string ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for ad. */ com.google.protobuf.ByteString getAdBytes(); /** *
     * Output only. The current ad strength.
     * 
* * .google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength ad_strength = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for adStrength. */ int getAdStrengthValue(); /** *
     * Output only. The current ad strength.
     * 
* * .google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength ad_strength = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The adStrength. */ com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength getAdStrength(); /** *
     * Output only. A list of recommendations to improve the ad strength.
     * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the demandGenAssetActionItems. */ java.util.List getDemandGenAssetActionItemsList(); /** *
     * Output only. A list of recommendations to improve the ad strength.
     * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of demandGenAssetActionItems. */ int getDemandGenAssetActionItemsCount(); /** *
     * Output only. A list of recommendations to improve the ad strength.
     * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The demandGenAssetActionItems at the given index. */ java.lang.String getDemandGenAssetActionItems(int index); /** *
     * Output only. A list of recommendations to improve the ad strength.
     * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the demandGenAssetActionItems at the given index. */ com.google.protobuf.ByteString getDemandGenAssetActionItemsBytes(int index); } /** *
   * The improve Demand Gen ad strength recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation} */ public static final class ImproveDemandGenAdStrengthRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) ImproveDemandGenAdStrengthRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use ImproveDemandGenAdStrengthRecommendation.newBuilder() to construct. private ImproveDemandGenAdStrengthRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImproveDemandGenAdStrengthRecommendation() { ad_ = ""; adStrength_ = 0; demandGenAssetActionItems_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ImproveDemandGenAdStrengthRecommendation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImproveDemandGenAdStrengthRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImproveDemandGenAdStrengthRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.Builder.class); } public static final int AD_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object ad_ = ""; /** *
     * Output only. The resource name of the ad that can be improved.
     * 
* * string ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ @java.lang.Override public java.lang.String getAd() { java.lang.Object ref = ad_; 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(); ad_ = s; return s; } } /** *
     * Output only. The resource name of the ad that can be improved.
     * 
* * string ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for ad. */ @java.lang.Override public com.google.protobuf.ByteString getAdBytes() { java.lang.Object ref = ad_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ad_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AD_STRENGTH_FIELD_NUMBER = 2; private int adStrength_ = 0; /** *
     * Output only. The current ad strength.
     * 
* * .google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength ad_strength = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for adStrength. */ @java.lang.Override public int getAdStrengthValue() { return adStrength_; } /** *
     * Output only. The current ad strength.
     * 
* * .google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength ad_strength = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The adStrength. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength getAdStrength() { com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength result = com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength.forNumber(adStrength_); return result == null ? com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength.UNRECOGNIZED : result; } public static final int DEMAND_GEN_ASSET_ACTION_ITEMS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList demandGenAssetActionItems_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * Output only. A list of recommendations to improve the ad strength.
     * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the demandGenAssetActionItems. */ public com.google.protobuf.ProtocolStringList getDemandGenAssetActionItemsList() { return demandGenAssetActionItems_; } /** *
     * Output only. A list of recommendations to improve the ad strength.
     * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of demandGenAssetActionItems. */ public int getDemandGenAssetActionItemsCount() { return demandGenAssetActionItems_.size(); } /** *
     * Output only. A list of recommendations to improve the ad strength.
     * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The demandGenAssetActionItems at the given index. */ public java.lang.String getDemandGenAssetActionItems(int index) { return demandGenAssetActionItems_.get(index); } /** *
     * Output only. A list of recommendations to improve the ad strength.
     * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the demandGenAssetActionItems at the given index. */ public com.google.protobuf.ByteString getDemandGenAssetActionItemsBytes(int index) { return demandGenAssetActionItems_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ad_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ad_); } if (adStrength_ != com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength.UNSPECIFIED.getNumber()) { output.writeEnum(2, adStrength_); } for (int i = 0; i < demandGenAssetActionItems_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, demandGenAssetActionItems_.getRaw(i)); } 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(ad_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ad_); } if (adStrength_ != com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, adStrength_); } { int dataSize = 0; for (int i = 0; i < demandGenAssetActionItems_.size(); i++) { dataSize += computeStringSizeNoTag(demandGenAssetActionItems_.getRaw(i)); } size += dataSize; size += 1 * getDemandGenAssetActionItemsList().size(); } 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.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) obj; if (!getAd() .equals(other.getAd())) return false; if (adStrength_ != other.adStrength_) return false; if (!getDemandGenAssetActionItemsList() .equals(other.getDemandGenAssetActionItemsList())) 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(); hash = (37 * hash) + AD_FIELD_NUMBER; hash = (53 * hash) + getAd().hashCode(); hash = (37 * hash) + AD_STRENGTH_FIELD_NUMBER; hash = (53 * hash) + adStrength_; if (getDemandGenAssetActionItemsCount() > 0) { hash = (37 * hash) + DEMAND_GEN_ASSET_ACTION_ITEMS_FIELD_NUMBER; hash = (53 * hash) + getDemandGenAssetActionItemsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation 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.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation 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.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation 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.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation 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.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation 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.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation 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; } /** *
     * The improve Demand Gen ad strength recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImproveDemandGenAdStrengthRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImproveDemandGenAdStrengthRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ad_ = ""; adStrength_ = 0; demandGenAssetActionItems_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ImproveDemandGenAdStrengthRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation build() { com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ad_ = ad_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.adStrength_ = adStrength_; } if (((from_bitField0_ & 0x00000004) != 0)) { demandGenAssetActionItems_.makeImmutable(); result.demandGenAssetActionItems_ = demandGenAssetActionItems_; } } @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.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.getDefaultInstance()) return this; if (!other.getAd().isEmpty()) { ad_ = other.ad_; bitField0_ |= 0x00000001; onChanged(); } if (other.adStrength_ != 0) { setAdStrengthValue(other.getAdStrengthValue()); } if (!other.demandGenAssetActionItems_.isEmpty()) { if (demandGenAssetActionItems_.isEmpty()) { demandGenAssetActionItems_ = other.demandGenAssetActionItems_; bitField0_ |= 0x00000004; } else { ensureDemandGenAssetActionItemsIsMutable(); demandGenAssetActionItems_.addAll(other.demandGenAssetActionItems_); } onChanged(); } 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: { ad_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { adStrength_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureDemandGenAssetActionItemsIsMutable(); demandGenAssetActionItems_.add(s); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object ad_ = ""; /** *
       * Output only. The resource name of the ad that can be improved.
       * 
* * string ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ public java.lang.String getAd() { java.lang.Object ref = ad_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ad_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. The resource name of the ad that can be improved.
       * 
* * string ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for ad. */ public com.google.protobuf.ByteString getAdBytes() { java.lang.Object ref = ad_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ad_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. The resource name of the ad that can be improved.
       * 
* * string ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The ad to set. * @return This builder for chaining. */ public Builder setAd( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ad_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Output only. The resource name of the ad that can be improved.
       * 
* * string ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAd() { ad_ = getDefaultInstance().getAd(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Output only. The resource name of the ad that can be improved.
       * 
* * string ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for ad to set. * @return This builder for chaining. */ public Builder setAdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ad_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int adStrength_ = 0; /** *
       * Output only. The current ad strength.
       * 
* * .google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength ad_strength = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for adStrength. */ @java.lang.Override public int getAdStrengthValue() { return adStrength_; } /** *
       * Output only. The current ad strength.
       * 
* * .google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength ad_strength = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for adStrength to set. * @return This builder for chaining. */ public Builder setAdStrengthValue(int value) { adStrength_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Output only. The current ad strength.
       * 
* * .google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength ad_strength = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The adStrength. */ @java.lang.Override public com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength getAdStrength() { com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength result = com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength.forNumber(adStrength_); return result == null ? com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength.UNRECOGNIZED : result; } /** *
       * Output only. The current ad strength.
       * 
* * .google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength ad_strength = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The adStrength to set. * @return This builder for chaining. */ public Builder setAdStrength(com.google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; adStrength_ = value.getNumber(); onChanged(); return this; } /** *
       * Output only. The current ad strength.
       * 
* * .google.ads.googleads.v16.enums.AdStrengthEnum.AdStrength ad_strength = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAdStrength() { bitField0_ = (bitField0_ & ~0x00000002); adStrength_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList demandGenAssetActionItems_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDemandGenAssetActionItemsIsMutable() { if (!demandGenAssetActionItems_.isModifiable()) { demandGenAssetActionItems_ = new com.google.protobuf.LazyStringArrayList(demandGenAssetActionItems_); } bitField0_ |= 0x00000004; } /** *
       * Output only. A list of recommendations to improve the ad strength.
       * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the demandGenAssetActionItems. */ public com.google.protobuf.ProtocolStringList getDemandGenAssetActionItemsList() { demandGenAssetActionItems_.makeImmutable(); return demandGenAssetActionItems_; } /** *
       * Output only. A list of recommendations to improve the ad strength.
       * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of demandGenAssetActionItems. */ public int getDemandGenAssetActionItemsCount() { return demandGenAssetActionItems_.size(); } /** *
       * Output only. A list of recommendations to improve the ad strength.
       * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The demandGenAssetActionItems at the given index. */ public java.lang.String getDemandGenAssetActionItems(int index) { return demandGenAssetActionItems_.get(index); } /** *
       * Output only. A list of recommendations to improve the ad strength.
       * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the demandGenAssetActionItems at the given index. */ public com.google.protobuf.ByteString getDemandGenAssetActionItemsBytes(int index) { return demandGenAssetActionItems_.getByteString(index); } /** *
       * Output only. A list of recommendations to improve the ad strength.
       * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The demandGenAssetActionItems to set. * @return This builder for chaining. */ public Builder setDemandGenAssetActionItems( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDemandGenAssetActionItemsIsMutable(); demandGenAssetActionItems_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. A list of recommendations to improve the ad strength.
       * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The demandGenAssetActionItems to add. * @return This builder for chaining. */ public Builder addDemandGenAssetActionItems( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDemandGenAssetActionItemsIsMutable(); demandGenAssetActionItems_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. A list of recommendations to improve the ad strength.
       * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The demandGenAssetActionItems to add. * @return This builder for chaining. */ public Builder addAllDemandGenAssetActionItems( java.lang.Iterable values) { ensureDemandGenAssetActionItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, demandGenAssetActionItems_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Output only. A list of recommendations to improve the ad strength.
       * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDemandGenAssetActionItems() { demandGenAssetActionItems_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
       * Output only. A list of recommendations to improve the ad strength.
       * 
* * repeated string demand_gen_asset_action_items = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the demandGenAssetActionItems to add. * @return This builder for chaining. */ public Builder addDemandGenAssetActionItemsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDemandGenAssetActionItemsIsMutable(); demandGenAssetActionItems_.add(value); bitField0_ |= 0x00000004; 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.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) private static final com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImproveDemandGenAdStrengthRecommendation 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.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; private int recommendationCase_ = 0; @SuppressWarnings("serial") private java.lang.Object recommendation_; public enum RecommendationCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CAMPAIGN_BUDGET_RECOMMENDATION(4), FORECASTING_CAMPAIGN_BUDGET_RECOMMENDATION(22), KEYWORD_RECOMMENDATION(8), TEXT_AD_RECOMMENDATION(9), TARGET_CPA_OPT_IN_RECOMMENDATION(10), MAXIMIZE_CONVERSIONS_OPT_IN_RECOMMENDATION(11), ENHANCED_CPC_OPT_IN_RECOMMENDATION(12), SEARCH_PARTNERS_OPT_IN_RECOMMENDATION(14), MAXIMIZE_CLICKS_OPT_IN_RECOMMENDATION(15), OPTIMIZE_AD_ROTATION_RECOMMENDATION(16), KEYWORD_MATCH_TYPE_RECOMMENDATION(20), MOVE_UNUSED_BUDGET_RECOMMENDATION(21), TARGET_ROAS_OPT_IN_RECOMMENDATION(23), RESPONSIVE_SEARCH_AD_RECOMMENDATION(28), MARGINAL_ROI_CAMPAIGN_BUDGET_RECOMMENDATION(29), USE_BROAD_MATCH_KEYWORD_RECOMMENDATION(30), RESPONSIVE_SEARCH_AD_ASSET_RECOMMENDATION(31), UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION(32), RESPONSIVE_SEARCH_AD_IMPROVE_AD_STRENGTH_RECOMMENDATION(33), DISPLAY_EXPANSION_OPT_IN_RECOMMENDATION(34), UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION(35), RAISE_TARGET_CPA_BID_TOO_LOW_RECOMMENDATION(36), FORECASTING_SET_TARGET_ROAS_RECOMMENDATION(37), CALLOUT_ASSET_RECOMMENDATION(39), SITELINK_ASSET_RECOMMENDATION(40), CALL_ASSET_RECOMMENDATION(41), SHOPPING_ADD_AGE_GROUP_RECOMMENDATION(42), SHOPPING_ADD_COLOR_RECOMMENDATION(43), SHOPPING_ADD_GENDER_RECOMMENDATION(44), SHOPPING_ADD_GTIN_RECOMMENDATION(45), SHOPPING_ADD_MORE_IDENTIFIERS_RECOMMENDATION(46), SHOPPING_ADD_SIZE_RECOMMENDATION(47), SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN_RECOMMENDATION(48), SHOPPING_FIX_DISAPPROVED_PRODUCTS_RECOMMENDATION(49), SHOPPING_TARGET_ALL_OFFERS_RECOMMENDATION(50), SHOPPING_FIX_SUSPENDED_MERCHANT_CENTER_ACCOUNT_RECOMMENDATION(51), SHOPPING_FIX_MERCHANT_CENTER_ACCOUNT_SUSPENSION_WARNING_RECOMMENDATION(52), SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX_RECOMMENDATION(53), DYNAMIC_IMAGE_EXTENSION_OPT_IN_RECOMMENDATION(54), RAISE_TARGET_CPA_RECOMMENDATION(55), LOWER_TARGET_ROAS_RECOMMENDATION(56), PERFORMANCE_MAX_OPT_IN_RECOMMENDATION(57), IMPROVE_PERFORMANCE_MAX_AD_STRENGTH_RECOMMENDATION(58), MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION(59), FORECASTING_SET_TARGET_CPA_RECOMMENDATION(60), SET_TARGET_CPA_RECOMMENDATION(61), SET_TARGET_ROAS_RECOMMENDATION(62), MAXIMIZE_CONVERSION_VALUE_OPT_IN_RECOMMENDATION(63), IMPROVE_GOOGLE_TAG_COVERAGE_RECOMMENDATION(64), PERFORMANCE_MAX_FINAL_URL_OPT_IN_RECOMMENDATION(65), REFRESH_CUSTOMER_MATCH_LIST_RECOMMENDATION(66), CUSTOM_AUDIENCE_OPT_IN_RECOMMENDATION(67), LEAD_FORM_ASSET_RECOMMENDATION(68), IMPROVE_DEMAND_GEN_AD_STRENGTH_RECOMMENDATION(69), RECOMMENDATION_NOT_SET(0); private final int value; private RecommendationCase(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 RecommendationCase valueOf(int value) { return forNumber(value); } public static RecommendationCase forNumber(int value) { switch (value) { case 4: return CAMPAIGN_BUDGET_RECOMMENDATION; case 22: return FORECASTING_CAMPAIGN_BUDGET_RECOMMENDATION; case 8: return KEYWORD_RECOMMENDATION; case 9: return TEXT_AD_RECOMMENDATION; case 10: return TARGET_CPA_OPT_IN_RECOMMENDATION; case 11: return MAXIMIZE_CONVERSIONS_OPT_IN_RECOMMENDATION; case 12: return ENHANCED_CPC_OPT_IN_RECOMMENDATION; case 14: return SEARCH_PARTNERS_OPT_IN_RECOMMENDATION; case 15: return MAXIMIZE_CLICKS_OPT_IN_RECOMMENDATION; case 16: return OPTIMIZE_AD_ROTATION_RECOMMENDATION; case 20: return KEYWORD_MATCH_TYPE_RECOMMENDATION; case 21: return MOVE_UNUSED_BUDGET_RECOMMENDATION; case 23: return TARGET_ROAS_OPT_IN_RECOMMENDATION; case 28: return RESPONSIVE_SEARCH_AD_RECOMMENDATION; case 29: return MARGINAL_ROI_CAMPAIGN_BUDGET_RECOMMENDATION; case 30: return USE_BROAD_MATCH_KEYWORD_RECOMMENDATION; case 31: return RESPONSIVE_SEARCH_AD_ASSET_RECOMMENDATION; case 32: return UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION; case 33: return RESPONSIVE_SEARCH_AD_IMPROVE_AD_STRENGTH_RECOMMENDATION; case 34: return DISPLAY_EXPANSION_OPT_IN_RECOMMENDATION; case 35: return UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION; case 36: return RAISE_TARGET_CPA_BID_TOO_LOW_RECOMMENDATION; case 37: return FORECASTING_SET_TARGET_ROAS_RECOMMENDATION; case 39: return CALLOUT_ASSET_RECOMMENDATION; case 40: return SITELINK_ASSET_RECOMMENDATION; case 41: return CALL_ASSET_RECOMMENDATION; case 42: return SHOPPING_ADD_AGE_GROUP_RECOMMENDATION; case 43: return SHOPPING_ADD_COLOR_RECOMMENDATION; case 44: return SHOPPING_ADD_GENDER_RECOMMENDATION; case 45: return SHOPPING_ADD_GTIN_RECOMMENDATION; case 46: return SHOPPING_ADD_MORE_IDENTIFIERS_RECOMMENDATION; case 47: return SHOPPING_ADD_SIZE_RECOMMENDATION; case 48: return SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN_RECOMMENDATION; case 49: return SHOPPING_FIX_DISAPPROVED_PRODUCTS_RECOMMENDATION; case 50: return SHOPPING_TARGET_ALL_OFFERS_RECOMMENDATION; case 51: return SHOPPING_FIX_SUSPENDED_MERCHANT_CENTER_ACCOUNT_RECOMMENDATION; case 52: return SHOPPING_FIX_MERCHANT_CENTER_ACCOUNT_SUSPENSION_WARNING_RECOMMENDATION; case 53: return SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX_RECOMMENDATION; case 54: return DYNAMIC_IMAGE_EXTENSION_OPT_IN_RECOMMENDATION; case 55: return RAISE_TARGET_CPA_RECOMMENDATION; case 56: return LOWER_TARGET_ROAS_RECOMMENDATION; case 57: return PERFORMANCE_MAX_OPT_IN_RECOMMENDATION; case 58: return IMPROVE_PERFORMANCE_MAX_AD_STRENGTH_RECOMMENDATION; case 59: return MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION; case 60: return FORECASTING_SET_TARGET_CPA_RECOMMENDATION; case 61: return SET_TARGET_CPA_RECOMMENDATION; case 62: return SET_TARGET_ROAS_RECOMMENDATION; case 63: return MAXIMIZE_CONVERSION_VALUE_OPT_IN_RECOMMENDATION; case 64: return IMPROVE_GOOGLE_TAG_COVERAGE_RECOMMENDATION; case 65: return PERFORMANCE_MAX_FINAL_URL_OPT_IN_RECOMMENDATION; case 66: return REFRESH_CUSTOMER_MATCH_LIST_RECOMMENDATION; case 67: return CUSTOM_AUDIENCE_OPT_IN_RECOMMENDATION; case 68: return LEAD_FORM_ASSET_RECOMMENDATION; case 69: return IMPROVE_DEMAND_GEN_AD_STRENGTH_RECOMMENDATION; case 0: return RECOMMENDATION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RecommendationCase getRecommendationCase() { return RecommendationCase.forNumber( recommendationCase_); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** *
   * Immutable. The resource name of the recommendation.
   *
   * `customers/{customer_id}/recommendations/{recommendation_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 recommendation.
   *
   * `customers/{customer_id}/recommendations/{recommendation_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 TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** *
   * Output only. The type of recommendation.
   * 
* * .google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.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 recommendation.
   * 
* * .google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType getType() { com.google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType result = com.google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType.forNumber(type_); return result == null ? com.google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType.UNRECOGNIZED : result; } public static final int IMPACT_FIELD_NUMBER = 3; private com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact_; /** *
   * Output only. The impact on account performance as a result of applying the
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impact field is set. */ @java.lang.Override public boolean hasImpact() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Output only. The impact on account performance as a result of applying the
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact() { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } /** *
   * Output only. The impact on account performance as a result of applying the
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } public static final int CAMPAIGN_BUDGET_FIELD_NUMBER = 24; @SuppressWarnings("serial") private volatile java.lang.Object campaignBudget_ = ""; /** *
   * Output only. The budget targeted by this recommendation. This will be set
   * only when the recommendation affects a single campaign budget.
   *
   * This field will be set for the following recommendation types:
   * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MARGINAL_ROI_CAMPAIGN_BUDGET,
   * MOVE_UNUSED_BUDGET
   * 
* * optional string campaign_budget = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the campaignBudget field is set. */ @java.lang.Override public boolean hasCampaignBudget() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Output only. The budget targeted by this recommendation. This will be set
   * only when the recommendation affects a single campaign budget.
   *
   * This field will be set for the following recommendation types:
   * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MARGINAL_ROI_CAMPAIGN_BUDGET,
   * MOVE_UNUSED_BUDGET
   * 
* * optional string campaign_budget = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The campaignBudget. */ @java.lang.Override public java.lang.String getCampaignBudget() { java.lang.Object ref = campaignBudget_; 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(); campaignBudget_ = s; return s; } } /** *
   * Output only. The budget targeted by this recommendation. This will be set
   * only when the recommendation affects a single campaign budget.
   *
   * This field will be set for the following recommendation types:
   * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MARGINAL_ROI_CAMPAIGN_BUDGET,
   * MOVE_UNUSED_BUDGET
   * 
* * optional string campaign_budget = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for campaignBudget. */ @java.lang.Override public com.google.protobuf.ByteString getCampaignBudgetBytes() { java.lang.Object ref = campaignBudget_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaignBudget_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CAMPAIGN_FIELD_NUMBER = 25; @SuppressWarnings("serial") private volatile java.lang.Object campaign_ = ""; /** *
   * Output only. The campaign targeted by this recommendation.
   *
   * This field will be set for the following recommendation types:
   * CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN,
   * USE_BROAD_MATCH_KEYWORD, KEYWORD, KEYWORD_MATCH_TYPE,
   * UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX, MAXIMIZE_CLICKS_OPT_IN,
   * MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
   * RESPONSIVE_SEARCH_AD,
   * RESPONSIVE_SEARCH_AD_ASSET,
   * SEARCH_PARTNERS_OPT_IN, DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION,
   * TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD,
   * UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX,
   * RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS,
   * SHOPPING_ADD_AGE_GROUP, SHOPPING_ADD_COLOR, SHOPPING_ADD_GENDER,
   * SHOPPING_ADD_SIZE, SHOPPING_ADD_GTIN, SHOPPING_ADD_MORE_IDENTIFIERS,
   * SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN, SHOPPING_FIX_DISAPPROVED_PRODUCTS,
   * SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX,
   * DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, LOWER_TARGET_ROAS,
   * FORECASTING_SET_TARGET_CPA,
   * SET_TARGET_CPA, SET_TARGET_ROAS, MAXIMIZE_CONVERSION_VALUE_OPT_IN,
   * IMPROVE_GOOGLE_TAG_COVERAGE, PERFORMANCE_MAX_FINAL_URL_OPT_IN
   * 
* * optional string campaign = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the campaign field is set. */ @java.lang.Override public boolean hasCampaign() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Output only. The campaign targeted by this recommendation.
   *
   * This field will be set for the following recommendation types:
   * CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN,
   * USE_BROAD_MATCH_KEYWORD, KEYWORD, KEYWORD_MATCH_TYPE,
   * UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX, MAXIMIZE_CLICKS_OPT_IN,
   * MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
   * RESPONSIVE_SEARCH_AD,
   * RESPONSIVE_SEARCH_AD_ASSET,
   * SEARCH_PARTNERS_OPT_IN, DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION,
   * TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD,
   * UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX,
   * RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS,
   * SHOPPING_ADD_AGE_GROUP, SHOPPING_ADD_COLOR, SHOPPING_ADD_GENDER,
   * SHOPPING_ADD_SIZE, SHOPPING_ADD_GTIN, SHOPPING_ADD_MORE_IDENTIFIERS,
   * SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN, SHOPPING_FIX_DISAPPROVED_PRODUCTS,
   * SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX,
   * DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, LOWER_TARGET_ROAS,
   * FORECASTING_SET_TARGET_CPA,
   * SET_TARGET_CPA, SET_TARGET_ROAS, MAXIMIZE_CONVERSION_VALUE_OPT_IN,
   * IMPROVE_GOOGLE_TAG_COVERAGE, PERFORMANCE_MAX_FINAL_URL_OPT_IN
   * 
* * optional string campaign = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The campaign. */ @java.lang.Override public java.lang.String getCampaign() { java.lang.Object ref = campaign_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); campaign_ = s; return s; } } /** *
   * Output only. The campaign targeted by this recommendation.
   *
   * This field will be set for the following recommendation types:
   * CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN,
   * USE_BROAD_MATCH_KEYWORD, KEYWORD, KEYWORD_MATCH_TYPE,
   * UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX, MAXIMIZE_CLICKS_OPT_IN,
   * MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
   * RESPONSIVE_SEARCH_AD,
   * RESPONSIVE_SEARCH_AD_ASSET,
   * SEARCH_PARTNERS_OPT_IN, DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION,
   * TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD,
   * UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX,
   * RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS,
   * SHOPPING_ADD_AGE_GROUP, SHOPPING_ADD_COLOR, SHOPPING_ADD_GENDER,
   * SHOPPING_ADD_SIZE, SHOPPING_ADD_GTIN, SHOPPING_ADD_MORE_IDENTIFIERS,
   * SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN, SHOPPING_FIX_DISAPPROVED_PRODUCTS,
   * SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX,
   * DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, LOWER_TARGET_ROAS,
   * FORECASTING_SET_TARGET_CPA,
   * SET_TARGET_CPA, SET_TARGET_ROAS, MAXIMIZE_CONVERSION_VALUE_OPT_IN,
   * IMPROVE_GOOGLE_TAG_COVERAGE, PERFORMANCE_MAX_FINAL_URL_OPT_IN
   * 
* * optional string campaign = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for campaign. */ @java.lang.Override public com.google.protobuf.ByteString getCampaignBytes() { java.lang.Object ref = campaign_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AD_GROUP_FIELD_NUMBER = 26; @SuppressWarnings("serial") private volatile java.lang.Object adGroup_ = ""; /** *
   * Output only. The ad group targeted by this recommendation. This will be set
   * only when the recommendation affects a single ad group.
   *
   * This field will be set for the following recommendation types:
   * KEYWORD, OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD,
   * RESPONSIVE_SEARCH_AD_ASSET, TEXT_AD
   * 
* * optional string ad_group = 26 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the adGroup field is set. */ @java.lang.Override public boolean hasAdGroup() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Output only. The ad group targeted by this recommendation. This will be set
   * only when the recommendation affects a single ad group.
   *
   * This field will be set for the following recommendation types:
   * KEYWORD, OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD,
   * RESPONSIVE_SEARCH_AD_ASSET, TEXT_AD
   * 
* * optional string ad_group = 26 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** *
   * Output only. The ad group targeted by this recommendation. This will be set
   * only when the recommendation affects a single ad group.
   *
   * This field will be set for the following recommendation types:
   * KEYWORD, OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD,
   * RESPONSIVE_SEARCH_AD_ASSET, TEXT_AD
   * 
* * optional string ad_group = 26 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 DISMISSED_FIELD_NUMBER = 27; private boolean dismissed_ = false; /** *
   * Output only. Whether the recommendation is dismissed or not.
   * 
* * optional bool dismissed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dismissed field is set. */ @java.lang.Override public boolean hasDismissed() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Output only. Whether the recommendation is dismissed or not.
   * 
* * optional bool dismissed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dismissed. */ @java.lang.Override public boolean getDismissed() { return dismissed_; } public static final int CAMPAIGNS_FIELD_NUMBER = 38; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList campaigns_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Output only. The campaigns targeted by this recommendation.
   *
   * This field will be set for the following recommendation types:
   * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
   * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
   * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the campaigns. */ public com.google.protobuf.ProtocolStringList getCampaignsList() { return campaigns_; } /** *
   * Output only. The campaigns targeted by this recommendation.
   *
   * This field will be set for the following recommendation types:
   * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
   * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
   * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of campaigns. */ public int getCampaignsCount() { return campaigns_.size(); } /** *
   * Output only. The campaigns targeted by this recommendation.
   *
   * This field will be set for the following recommendation types:
   * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
   * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
   * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The campaigns at the given index. */ public java.lang.String getCampaigns(int index) { return campaigns_.get(index); } /** *
   * Output only. The campaigns targeted by this recommendation.
   *
   * This field will be set for the following recommendation types:
   * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
   * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
   * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the campaigns at the given index. */ public com.google.protobuf.ByteString getCampaignsBytes(int index) { return campaigns_.getByteString(index); } public static final int CAMPAIGN_BUDGET_RECOMMENDATION_FIELD_NUMBER = 4; /** *
   * Output only. The campaign budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the campaignBudgetRecommendation field is set. */ @java.lang.Override public boolean hasCampaignBudgetRecommendation() { return recommendationCase_ == 4; } /** *
   * Output only. The campaign budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignBudgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getCampaignBudgetRecommendation() { if (recommendationCase_ == 4) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } /** *
   * Output only. The campaign budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getCampaignBudgetRecommendationOrBuilder() { if (recommendationCase_ == 4) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } public static final int FORECASTING_CAMPAIGN_BUDGET_RECOMMENDATION_FIELD_NUMBER = 22; /** *
   * Output only. The forecasting campaign budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the forecastingCampaignBudgetRecommendation field is set. */ @java.lang.Override public boolean hasForecastingCampaignBudgetRecommendation() { return recommendationCase_ == 22; } /** *
   * Output only. The forecasting campaign budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The forecastingCampaignBudgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getForecastingCampaignBudgetRecommendation() { if (recommendationCase_ == 22) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } /** *
   * Output only. The forecasting campaign budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getForecastingCampaignBudgetRecommendationOrBuilder() { if (recommendationCase_ == 22) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } public static final int KEYWORD_RECOMMENDATION_FIELD_NUMBER = 8; /** *
   * Output only. The keyword recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keywordRecommendation field is set. */ @java.lang.Override public boolean hasKeywordRecommendation() { return recommendationCase_ == 8; } /** *
   * Output only. The keyword recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keywordRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation getKeywordRecommendation() { if (recommendationCase_ == 8) { return (com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } /** *
   * Output only. The keyword recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendationOrBuilder getKeywordRecommendationOrBuilder() { if (recommendationCase_ == 8) { return (com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } public static final int TEXT_AD_RECOMMENDATION_FIELD_NUMBER = 9; /** *
   * Output only. Add expanded text ad recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the textAdRecommendation field is set. */ @java.lang.Override public boolean hasTextAdRecommendation() { return recommendationCase_ == 9; } /** *
   * Output only. Add expanded text ad recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The textAdRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation getTextAdRecommendation() { if (recommendationCase_ == 9) { return (com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } /** *
   * Output only. Add expanded text ad recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendationOrBuilder getTextAdRecommendationOrBuilder() { if (recommendationCase_ == 9) { return (com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } public static final int TARGET_CPA_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 10; /** *
   * Output only. The TargetCPA opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetCpaOptInRecommendation field is set. */ @java.lang.Override public boolean hasTargetCpaOptInRecommendation() { return recommendationCase_ == 10; } /** *
   * Output only. The TargetCPA opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetCpaOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation getTargetCpaOptInRecommendation() { if (recommendationCase_ == 10) { return (com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The TargetCPA opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder getTargetCpaOptInRecommendationOrBuilder() { if (recommendationCase_ == 10) { return (com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } public static final int MAXIMIZE_CONVERSIONS_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 11; /** *
   * Output only. The MaximizeConversions Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maximizeConversionsOptInRecommendation field is set. */ @java.lang.Override public boolean hasMaximizeConversionsOptInRecommendation() { return recommendationCase_ == 11; } /** *
   * Output only. The MaximizeConversions Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maximizeConversionsOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation getMaximizeConversionsOptInRecommendation() { if (recommendationCase_ == 11) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The MaximizeConversions Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder getMaximizeConversionsOptInRecommendationOrBuilder() { if (recommendationCase_ == 11) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } public static final int ENHANCED_CPC_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 12; /** *
   * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the enhancedCpcOptInRecommendation field is set. */ @java.lang.Override public boolean hasEnhancedCpcOptInRecommendation() { return recommendationCase_ == 12; } /** *
   * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enhancedCpcOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation getEnhancedCpcOptInRecommendation() { if (recommendationCase_ == 12) { return (com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder getEnhancedCpcOptInRecommendationOrBuilder() { if (recommendationCase_ == 12) { return (com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } public static final int SEARCH_PARTNERS_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 14; /** *
   * Output only. The Search Partners Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the searchPartnersOptInRecommendation field is set. */ @java.lang.Override public boolean hasSearchPartnersOptInRecommendation() { return recommendationCase_ == 14; } /** *
   * Output only. The Search Partners Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The searchPartnersOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation getSearchPartnersOptInRecommendation() { if (recommendationCase_ == 14) { return (com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The Search Partners Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder getSearchPartnersOptInRecommendationOrBuilder() { if (recommendationCase_ == 14) { return (com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } public static final int MAXIMIZE_CLICKS_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 15; /** *
   * Output only. The MaximizeClicks Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maximizeClicksOptInRecommendation field is set. */ @java.lang.Override public boolean hasMaximizeClicksOptInRecommendation() { return recommendationCase_ == 15; } /** *
   * Output only. The MaximizeClicks Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maximizeClicksOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation getMaximizeClicksOptInRecommendation() { if (recommendationCase_ == 15) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The MaximizeClicks Opt-In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder getMaximizeClicksOptInRecommendationOrBuilder() { if (recommendationCase_ == 15) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } public static final int OPTIMIZE_AD_ROTATION_RECOMMENDATION_FIELD_NUMBER = 16; /** *
   * Output only. The Optimize Ad Rotation recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the optimizeAdRotationRecommendation field is set. */ @java.lang.Override public boolean hasOptimizeAdRotationRecommendation() { return recommendationCase_ == 16; } /** *
   * Output only. The Optimize Ad Rotation recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The optimizeAdRotationRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation getOptimizeAdRotationRecommendation() { if (recommendationCase_ == 16) { return (com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } /** *
   * Output only. The Optimize Ad Rotation recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder getOptimizeAdRotationRecommendationOrBuilder() { if (recommendationCase_ == 16) { return (com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } public static final int KEYWORD_MATCH_TYPE_RECOMMENDATION_FIELD_NUMBER = 20; /** *
   * Output only. The keyword match type recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keywordMatchTypeRecommendation field is set. */ @java.lang.Override public boolean hasKeywordMatchTypeRecommendation() { return recommendationCase_ == 20; } /** *
   * Output only. The keyword match type recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keywordMatchTypeRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation getKeywordMatchTypeRecommendation() { if (recommendationCase_ == 20) { return (com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } /** *
   * Output only. The keyword match type recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder getKeywordMatchTypeRecommendationOrBuilder() { if (recommendationCase_ == 20) { return (com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } public static final int MOVE_UNUSED_BUDGET_RECOMMENDATION_FIELD_NUMBER = 21; /** *
   * Output only. The move unused budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the moveUnusedBudgetRecommendation field is set. */ @java.lang.Override public boolean hasMoveUnusedBudgetRecommendation() { return recommendationCase_ == 21; } /** *
   * Output only. The move unused budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The moveUnusedBudgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation getMoveUnusedBudgetRecommendation() { if (recommendationCase_ == 21) { return (com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } /** *
   * Output only. The move unused budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder getMoveUnusedBudgetRecommendationOrBuilder() { if (recommendationCase_ == 21) { return (com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } public static final int TARGET_ROAS_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 23; /** *
   * Output only. The Target ROAS opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetRoasOptInRecommendation field is set. */ @java.lang.Override public boolean hasTargetRoasOptInRecommendation() { return recommendationCase_ == 23; } /** *
   * Output only. The Target ROAS opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetRoasOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation getTargetRoasOptInRecommendation() { if (recommendationCase_ == 23) { return (com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The Target ROAS opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder getTargetRoasOptInRecommendationOrBuilder() { if (recommendationCase_ == 23) { return (com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } public static final int RESPONSIVE_SEARCH_AD_RECOMMENDATION_FIELD_NUMBER = 28; /** *
   * Output only. The add responsive search ad recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the responsiveSearchAdRecommendation field is set. */ @java.lang.Override public boolean hasResponsiveSearchAdRecommendation() { return recommendationCase_ == 28; } /** *
   * Output only. The add responsive search ad recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The responsiveSearchAdRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation getResponsiveSearchAdRecommendation() { if (recommendationCase_ == 28) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } /** *
   * Output only. The add responsive search ad recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder getResponsiveSearchAdRecommendationOrBuilder() { if (recommendationCase_ == 28) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } public static final int MARGINAL_ROI_CAMPAIGN_BUDGET_RECOMMENDATION_FIELD_NUMBER = 29; /** *
   * Output only. The marginal ROI campaign budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the marginalRoiCampaignBudgetRecommendation field is set. */ @java.lang.Override public boolean hasMarginalRoiCampaignBudgetRecommendation() { return recommendationCase_ == 29; } /** *
   * Output only. The marginal ROI campaign budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The marginalRoiCampaignBudgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getMarginalRoiCampaignBudgetRecommendation() { if (recommendationCase_ == 29) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } /** *
   * Output only. The marginal ROI campaign budget recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getMarginalRoiCampaignBudgetRecommendationOrBuilder() { if (recommendationCase_ == 29) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } public static final int USE_BROAD_MATCH_KEYWORD_RECOMMENDATION_FIELD_NUMBER = 30; /** *
   * Output only. The use broad match keyword recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the useBroadMatchKeywordRecommendation field is set. */ @java.lang.Override public boolean hasUseBroadMatchKeywordRecommendation() { return recommendationCase_ == 30; } /** *
   * Output only. The use broad match keyword recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The useBroadMatchKeywordRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation getUseBroadMatchKeywordRecommendation() { if (recommendationCase_ == 30) { return (com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } /** *
   * Output only. The use broad match keyword recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder getUseBroadMatchKeywordRecommendationOrBuilder() { if (recommendationCase_ == 30) { return (com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } public static final int RESPONSIVE_SEARCH_AD_ASSET_RECOMMENDATION_FIELD_NUMBER = 31; /** *
   * Output only. The responsive search ad asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the responsiveSearchAdAssetRecommendation field is set. */ @java.lang.Override public boolean hasResponsiveSearchAdAssetRecommendation() { return recommendationCase_ == 31; } /** *
   * Output only. The responsive search ad asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The responsiveSearchAdAssetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getResponsiveSearchAdAssetRecommendation() { if (recommendationCase_ == 31) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } /** *
   * Output only. The responsive search ad asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder getResponsiveSearchAdAssetRecommendationOrBuilder() { if (recommendationCase_ == 31) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } public static final int UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION_FIELD_NUMBER = 32; /** *
   * Output only. The upgrade a Smart Shopping campaign to a Performance Max
   * campaign recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the upgradeSmartShoppingCampaignToPerformanceMaxRecommendation field is set. */ @java.lang.Override public boolean hasUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation() { return recommendationCase_ == 32; } /** *
   * Output only. The upgrade a Smart Shopping campaign to a Performance Max
   * campaign recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The upgradeSmartShoppingCampaignToPerformanceMaxRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation() { if (recommendationCase_ == 32) { return (com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } /** *
   * Output only. The upgrade a Smart Shopping campaign to a Performance Max
   * campaign recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder() { if (recommendationCase_ == 32) { return (com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } public static final int RESPONSIVE_SEARCH_AD_IMPROVE_AD_STRENGTH_RECOMMENDATION_FIELD_NUMBER = 33; /** *
   * Output only. The responsive search ad improve ad strength recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the responsiveSearchAdImproveAdStrengthRecommendation field is set. */ @java.lang.Override public boolean hasResponsiveSearchAdImproveAdStrengthRecommendation() { return recommendationCase_ == 33; } /** *
   * Output only. The responsive search ad improve ad strength recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The responsiveSearchAdImproveAdStrengthRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation getResponsiveSearchAdImproveAdStrengthRecommendation() { if (recommendationCase_ == 33) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.getDefaultInstance(); } /** *
   * Output only. The responsive search ad improve ad strength recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder getResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder() { if (recommendationCase_ == 33) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.getDefaultInstance(); } public static final int DISPLAY_EXPANSION_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 34; /** *
   * Output only. The Display Expansion opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the displayExpansionOptInRecommendation field is set. */ @java.lang.Override public boolean hasDisplayExpansionOptInRecommendation() { return recommendationCase_ == 34; } /** *
   * Output only. The Display Expansion opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The displayExpansionOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation getDisplayExpansionOptInRecommendation() { if (recommendationCase_ == 34) { return (com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The Display Expansion opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendationOrBuilder getDisplayExpansionOptInRecommendationOrBuilder() { if (recommendationCase_ == 34) { return (com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.getDefaultInstance(); } public static final int UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION_FIELD_NUMBER = 35; /** *
   * Output only. The upgrade a Local campaign to a Performance Max campaign
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the upgradeLocalCampaignToPerformanceMaxRecommendation field is set. */ @java.lang.Override public boolean hasUpgradeLocalCampaignToPerformanceMaxRecommendation() { return recommendationCase_ == 35; } /** *
   * Output only. The upgrade a Local campaign to a Performance Max campaign
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The upgradeLocalCampaignToPerformanceMaxRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation getUpgradeLocalCampaignToPerformanceMaxRecommendation() { if (recommendationCase_ == 35) { return (com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } /** *
   * Output only. The upgrade a Local campaign to a Performance Max campaign
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder getUpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder() { if (recommendationCase_ == 35) { return (com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } public static final int RAISE_TARGET_CPA_BID_TOO_LOW_RECOMMENDATION_FIELD_NUMBER = 36; /** *
   * Output only. The raise target CPA bid too low recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the raiseTargetCpaBidTooLowRecommendation field is set. */ @java.lang.Override public boolean hasRaiseTargetCpaBidTooLowRecommendation() { return recommendationCase_ == 36; } /** *
   * Output only. The raise target CPA bid too low recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The raiseTargetCpaBidTooLowRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation getRaiseTargetCpaBidTooLowRecommendation() { if (recommendationCase_ == 36) { return (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.getDefaultInstance(); } /** *
   * Output only. The raise target CPA bid too low recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendationOrBuilder getRaiseTargetCpaBidTooLowRecommendationOrBuilder() { if (recommendationCase_ == 36) { return (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.getDefaultInstance(); } public static final int FORECASTING_SET_TARGET_ROAS_RECOMMENDATION_FIELD_NUMBER = 37; /** *
   * Output only. The forecasting set target ROAS recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the forecastingSetTargetRoasRecommendation field is set. */ @java.lang.Override public boolean hasForecastingSetTargetRoasRecommendation() { return recommendationCase_ == 37; } /** *
   * Output only. The forecasting set target ROAS recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The forecastingSetTargetRoasRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation getForecastingSetTargetRoasRecommendation() { if (recommendationCase_ == 37) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } /** *
   * Output only. The forecasting set target ROAS recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder getForecastingSetTargetRoasRecommendationOrBuilder() { if (recommendationCase_ == 37) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } public static final int CALLOUT_ASSET_RECOMMENDATION_FIELD_NUMBER = 39; /** *
   * Output only. The callout asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the calloutAssetRecommendation field is set. */ @java.lang.Override public boolean hasCalloutAssetRecommendation() { return recommendationCase_ == 39; } /** *
   * Output only. The callout asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The calloutAssetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation getCalloutAssetRecommendation() { if (recommendationCase_ == 39) { return (com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.getDefaultInstance(); } /** *
   * Output only. The callout asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendationOrBuilder getCalloutAssetRecommendationOrBuilder() { if (recommendationCase_ == 39) { return (com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.getDefaultInstance(); } public static final int SITELINK_ASSET_RECOMMENDATION_FIELD_NUMBER = 40; /** *
   * Output only. The sitelink asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sitelinkAssetRecommendation field is set. */ @java.lang.Override public boolean hasSitelinkAssetRecommendation() { return recommendationCase_ == 40; } /** *
   * Output only. The sitelink asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sitelinkAssetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation getSitelinkAssetRecommendation() { if (recommendationCase_ == 40) { return (com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.getDefaultInstance(); } /** *
   * Output only. The sitelink asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendationOrBuilder getSitelinkAssetRecommendationOrBuilder() { if (recommendationCase_ == 40) { return (com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.getDefaultInstance(); } public static final int CALL_ASSET_RECOMMENDATION_FIELD_NUMBER = 41; /** *
   * Output only. The call asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the callAssetRecommendation field is set. */ @java.lang.Override public boolean hasCallAssetRecommendation() { return recommendationCase_ == 41; } /** *
   * Output only. The call asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callAssetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation getCallAssetRecommendation() { if (recommendationCase_ == 41) { return (com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.getDefaultInstance(); } /** *
   * Output only. The call asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendationOrBuilder getCallAssetRecommendationOrBuilder() { if (recommendationCase_ == 41) { return (com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.getDefaultInstance(); } public static final int SHOPPING_ADD_AGE_GROUP_RECOMMENDATION_FIELD_NUMBER = 42; /** *
   * Output only. The shopping add age group recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddAgeGroupRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddAgeGroupRecommendation() { return recommendationCase_ == 42; } /** *
   * Output only. The shopping add age group recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddAgeGroupRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddAgeGroupRecommendation() { if (recommendationCase_ == 42) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping add age group recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddAgeGroupRecommendationOrBuilder() { if (recommendationCase_ == 42) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } public static final int SHOPPING_ADD_COLOR_RECOMMENDATION_FIELD_NUMBER = 43; /** *
   * Output only. The shopping add color recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddColorRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddColorRecommendation() { return recommendationCase_ == 43; } /** *
   * Output only. The shopping add color recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddColorRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddColorRecommendation() { if (recommendationCase_ == 43) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping add color recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddColorRecommendationOrBuilder() { if (recommendationCase_ == 43) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } public static final int SHOPPING_ADD_GENDER_RECOMMENDATION_FIELD_NUMBER = 44; /** *
   * Output only. The shopping add gender recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddGenderRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddGenderRecommendation() { return recommendationCase_ == 44; } /** *
   * Output only. The shopping add gender recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddGenderRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddGenderRecommendation() { if (recommendationCase_ == 44) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping add gender recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddGenderRecommendationOrBuilder() { if (recommendationCase_ == 44) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } public static final int SHOPPING_ADD_GTIN_RECOMMENDATION_FIELD_NUMBER = 45; /** *
   * Output only. The shopping add GTIN recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddGtinRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddGtinRecommendation() { return recommendationCase_ == 45; } /** *
   * Output only. The shopping add GTIN recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddGtinRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddGtinRecommendation() { if (recommendationCase_ == 45) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping add GTIN recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddGtinRecommendationOrBuilder() { if (recommendationCase_ == 45) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } public static final int SHOPPING_ADD_MORE_IDENTIFIERS_RECOMMENDATION_FIELD_NUMBER = 46; /** *
   * Output only. The shopping add more identifiers recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddMoreIdentifiersRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddMoreIdentifiersRecommendation() { return recommendationCase_ == 46; } /** *
   * Output only. The shopping add more identifiers recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddMoreIdentifiersRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddMoreIdentifiersRecommendation() { if (recommendationCase_ == 46) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping add more identifiers recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddMoreIdentifiersRecommendationOrBuilder() { if (recommendationCase_ == 46) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } public static final int SHOPPING_ADD_SIZE_RECOMMENDATION_FIELD_NUMBER = 47; /** *
   * Output only. The shopping add size recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddSizeRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddSizeRecommendation() { return recommendationCase_ == 47; } /** *
   * Output only. The shopping add size recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddSizeRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddSizeRecommendation() { if (recommendationCase_ == 47) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping add size recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddSizeRecommendationOrBuilder() { if (recommendationCase_ == 47) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } public static final int SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN_RECOMMENDATION_FIELD_NUMBER = 48; /** *
   * Output only. The shopping add products to campaign recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddProductsToCampaignRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddProductsToCampaignRecommendation() { return recommendationCase_ == 48; } /** *
   * Output only. The shopping add products to campaign recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddProductsToCampaignRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation getShoppingAddProductsToCampaignRecommendation() { if (recommendationCase_ == 48) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping add products to campaign recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendationOrBuilder getShoppingAddProductsToCampaignRecommendationOrBuilder() { if (recommendationCase_ == 48) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.getDefaultInstance(); } public static final int SHOPPING_FIX_DISAPPROVED_PRODUCTS_RECOMMENDATION_FIELD_NUMBER = 49; /** *
   * Output only. The shopping fix disapproved products recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingFixDisapprovedProductsRecommendation field is set. */ @java.lang.Override public boolean hasShoppingFixDisapprovedProductsRecommendation() { return recommendationCase_ == 49; } /** *
   * Output only. The shopping fix disapproved products recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingFixDisapprovedProductsRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation getShoppingFixDisapprovedProductsRecommendation() { if (recommendationCase_ == 49) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping fix disapproved products recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendationOrBuilder getShoppingFixDisapprovedProductsRecommendationOrBuilder() { if (recommendationCase_ == 49) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.getDefaultInstance(); } public static final int SHOPPING_TARGET_ALL_OFFERS_RECOMMENDATION_FIELD_NUMBER = 50; /** *
   * Output only. The shopping target all offers recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingTargetAllOffersRecommendation field is set. */ @java.lang.Override public boolean hasShoppingTargetAllOffersRecommendation() { return recommendationCase_ == 50; } /** *
   * Output only. The shopping target all offers recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingTargetAllOffersRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation getShoppingTargetAllOffersRecommendation() { if (recommendationCase_ == 50) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping target all offers recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendationOrBuilder getShoppingTargetAllOffersRecommendationOrBuilder() { if (recommendationCase_ == 50) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.getDefaultInstance(); } public static final int SHOPPING_FIX_SUSPENDED_MERCHANT_CENTER_ACCOUNT_RECOMMENDATION_FIELD_NUMBER = 51; /** *
   * Output only. The shopping fix suspended Merchant Center account
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingFixSuspendedMerchantCenterAccountRecommendation field is set. */ @java.lang.Override public boolean hasShoppingFixSuspendedMerchantCenterAccountRecommendation() { return recommendationCase_ == 51; } /** *
   * Output only. The shopping fix suspended Merchant Center account
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingFixSuspendedMerchantCenterAccountRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation getShoppingFixSuspendedMerchantCenterAccountRecommendation() { if (recommendationCase_ == 51) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping fix suspended Merchant Center account
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder getShoppingFixSuspendedMerchantCenterAccountRecommendationOrBuilder() { if (recommendationCase_ == 51) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } public static final int SHOPPING_FIX_MERCHANT_CENTER_ACCOUNT_SUSPENSION_WARNING_RECOMMENDATION_FIELD_NUMBER = 52; /** *
   * Output only. The shopping fix Merchant Center account suspension warning
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingFixMerchantCenterAccountSuspensionWarningRecommendation field is set. */ @java.lang.Override public boolean hasShoppingFixMerchantCenterAccountSuspensionWarningRecommendation() { return recommendationCase_ == 52; } /** *
   * Output only. The shopping fix Merchant Center account suspension warning
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingFixMerchantCenterAccountSuspensionWarningRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation getShoppingFixMerchantCenterAccountSuspensionWarningRecommendation() { if (recommendationCase_ == 52) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping fix Merchant Center account suspension warning
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder getShoppingFixMerchantCenterAccountSuspensionWarningRecommendationOrBuilder() { if (recommendationCase_ == 52) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } public static final int SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX_RECOMMENDATION_FIELD_NUMBER = 53; /** *
   * Output only. The shopping migrate Regular Shopping Campaign offers to
   * Performance Max recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation field is set. */ @java.lang.Override public boolean hasShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation() { return recommendationCase_ == 53; } /** *
   * Output only. The shopping migrate Regular Shopping Campaign offers to
   * Performance Max recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation() { if (recommendationCase_ == 53) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.getDefaultInstance(); } /** *
   * Output only. The shopping migrate Regular Shopping Campaign offers to
   * Performance Max recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder() { if (recommendationCase_ == 53) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.getDefaultInstance(); } public static final int DYNAMIC_IMAGE_EXTENSION_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 54; /** *
   * Output only. Recommendation to enable dynamic image extensions on the
   * account, allowing Google to find the best images from ad landing pages
   * and complement text ads.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dynamicImageExtensionOptInRecommendation field is set. */ @java.lang.Override public boolean hasDynamicImageExtensionOptInRecommendation() { return recommendationCase_ == 54; } /** *
   * Output only. Recommendation to enable dynamic image extensions on the
   * account, allowing Google to find the best images from ad landing pages
   * and complement text ads.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dynamicImageExtensionOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation getDynamicImageExtensionOptInRecommendation() { if (recommendationCase_ == 54) { return (com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. Recommendation to enable dynamic image extensions on the
   * account, allowing Google to find the best images from ad landing pages
   * and complement text ads.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendationOrBuilder getDynamicImageExtensionOptInRecommendationOrBuilder() { if (recommendationCase_ == 54) { return (com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.getDefaultInstance(); } public static final int RAISE_TARGET_CPA_RECOMMENDATION_FIELD_NUMBER = 55; /** *
   * Output only. Recommendation to raise Target CPA.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the raiseTargetCpaRecommendation field is set. */ @java.lang.Override public boolean hasRaiseTargetCpaRecommendation() { return recommendationCase_ == 55; } /** *
   * Output only. Recommendation to raise Target CPA.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The raiseTargetCpaRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation getRaiseTargetCpaRecommendation() { if (recommendationCase_ == 55) { return (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.getDefaultInstance(); } /** *
   * Output only. Recommendation to raise Target CPA.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendationOrBuilder getRaiseTargetCpaRecommendationOrBuilder() { if (recommendationCase_ == 55) { return (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.getDefaultInstance(); } public static final int LOWER_TARGET_ROAS_RECOMMENDATION_FIELD_NUMBER = 56; /** *
   * Output only. Recommendation to lower Target ROAS.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lowerTargetRoasRecommendation field is set. */ @java.lang.Override public boolean hasLowerTargetRoasRecommendation() { return recommendationCase_ == 56; } /** *
   * Output only. Recommendation to lower Target ROAS.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lowerTargetRoasRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation getLowerTargetRoasRecommendation() { if (recommendationCase_ == 56) { return (com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.getDefaultInstance(); } /** *
   * Output only. Recommendation to lower Target ROAS.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendationOrBuilder getLowerTargetRoasRecommendationOrBuilder() { if (recommendationCase_ == 56) { return (com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.getDefaultInstance(); } public static final int PERFORMANCE_MAX_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 57; /** *
   * Output only. The Performance Max Opt In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the performanceMaxOptInRecommendation field is set. */ @java.lang.Override public boolean hasPerformanceMaxOptInRecommendation() { return recommendationCase_ == 57; } /** *
   * Output only. The Performance Max Opt In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The performanceMaxOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation getPerformanceMaxOptInRecommendation() { if (recommendationCase_ == 57) { return (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The Performance Max Opt In recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendationOrBuilder getPerformanceMaxOptInRecommendationOrBuilder() { if (recommendationCase_ == 57) { return (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.getDefaultInstance(); } public static final int IMPROVE_PERFORMANCE_MAX_AD_STRENGTH_RECOMMENDATION_FIELD_NUMBER = 58; /** *
   * Output only. The improve Performance Max ad strength recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the improvePerformanceMaxAdStrengthRecommendation field is set. */ @java.lang.Override public boolean hasImprovePerformanceMaxAdStrengthRecommendation() { return recommendationCase_ == 58; } /** *
   * Output only. The improve Performance Max ad strength recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The improvePerformanceMaxAdStrengthRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation getImprovePerformanceMaxAdStrengthRecommendation() { if (recommendationCase_ == 58) { return (com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.getDefaultInstance(); } /** *
   * Output only. The improve Performance Max ad strength recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendationOrBuilder getImprovePerformanceMaxAdStrengthRecommendationOrBuilder() { if (recommendationCase_ == 58) { return (com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.getDefaultInstance(); } public static final int MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION_FIELD_NUMBER = 59; /** *
   * Output only. The Dynamic Search Ads to Performance Max migration
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation field is set. */ @java.lang.Override public boolean hasMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation() { return recommendationCase_ == 59; } /** *
   * Output only. The Dynamic Search Ads to Performance Max migration
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation() { if (recommendationCase_ == 59) { return (com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } /** *
   * Output only. The Dynamic Search Ads to Performance Max migration
   * recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationOrBuilder getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationOrBuilder() { if (recommendationCase_ == 59) { return (com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } public static final int FORECASTING_SET_TARGET_CPA_RECOMMENDATION_FIELD_NUMBER = 60; /** *
   * Output only. The forecasting set target CPA recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the forecastingSetTargetCpaRecommendation field is set. */ @java.lang.Override public boolean hasForecastingSetTargetCpaRecommendation() { return recommendationCase_ == 60; } /** *
   * Output only. The forecasting set target CPA recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The forecastingSetTargetCpaRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation getForecastingSetTargetCpaRecommendation() { if (recommendationCase_ == 60) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } /** *
   * Output only. The forecasting set target CPA recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendationOrBuilder getForecastingSetTargetCpaRecommendationOrBuilder() { if (recommendationCase_ == 60) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } public static final int SET_TARGET_CPA_RECOMMENDATION_FIELD_NUMBER = 61; /** *
   * Output only. The set target CPA recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the setTargetCpaRecommendation field is set. */ @java.lang.Override public boolean hasSetTargetCpaRecommendation() { return recommendationCase_ == 61; } /** *
   * Output only. The set target CPA recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The setTargetCpaRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation getSetTargetCpaRecommendation() { if (recommendationCase_ == 61) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } /** *
   * Output only. The set target CPA recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendationOrBuilder getSetTargetCpaRecommendationOrBuilder() { if (recommendationCase_ == 61) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } public static final int SET_TARGET_ROAS_RECOMMENDATION_FIELD_NUMBER = 62; /** *
   * Output only. The set target ROAS recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the setTargetRoasRecommendation field is set. */ @java.lang.Override public boolean hasSetTargetRoasRecommendation() { return recommendationCase_ == 62; } /** *
   * Output only. The set target ROAS recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The setTargetRoasRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation getSetTargetRoasRecommendation() { if (recommendationCase_ == 62) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } /** *
   * Output only. The set target ROAS recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder getSetTargetRoasRecommendationOrBuilder() { if (recommendationCase_ == 62) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } public static final int MAXIMIZE_CONVERSION_VALUE_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 63; /** *
   * Output only. The Maximize Conversion Value opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maximizeConversionValueOptInRecommendation field is set. */ @java.lang.Override public boolean hasMaximizeConversionValueOptInRecommendation() { return recommendationCase_ == 63; } /** *
   * Output only. The Maximize Conversion Value opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maximizeConversionValueOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation getMaximizeConversionValueOptInRecommendation() { if (recommendationCase_ == 63) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The Maximize Conversion Value opt-in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendationOrBuilder getMaximizeConversionValueOptInRecommendationOrBuilder() { if (recommendationCase_ == 63) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.getDefaultInstance(); } public static final int IMPROVE_GOOGLE_TAG_COVERAGE_RECOMMENDATION_FIELD_NUMBER = 64; /** *
   * Output only. Recommendation to deploy Google Tag on more pages.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the improveGoogleTagCoverageRecommendation field is set. */ @java.lang.Override public boolean hasImproveGoogleTagCoverageRecommendation() { return recommendationCase_ == 64; } /** *
   * Output only. Recommendation to deploy Google Tag on more pages.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The improveGoogleTagCoverageRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation getImproveGoogleTagCoverageRecommendation() { if (recommendationCase_ == 64) { return (com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.getDefaultInstance(); } /** *
   * Output only. Recommendation to deploy Google Tag on more pages.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendationOrBuilder getImproveGoogleTagCoverageRecommendationOrBuilder() { if (recommendationCase_ == 64) { return (com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.getDefaultInstance(); } public static final int PERFORMANCE_MAX_FINAL_URL_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 65; /** *
   * Output only. Recommendation to turn on Final URL expansion for your
   * Performance Max campaigns.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the performanceMaxFinalUrlOptInRecommendation field is set. */ @java.lang.Override public boolean hasPerformanceMaxFinalUrlOptInRecommendation() { return recommendationCase_ == 65; } /** *
   * Output only. Recommendation to turn on Final URL expansion for your
   * Performance Max campaigns.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The performanceMaxFinalUrlOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation getPerformanceMaxFinalUrlOptInRecommendation() { if (recommendationCase_ == 65) { return (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. Recommendation to turn on Final URL expansion for your
   * Performance Max campaigns.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendationOrBuilder getPerformanceMaxFinalUrlOptInRecommendationOrBuilder() { if (recommendationCase_ == 65) { return (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.getDefaultInstance(); } public static final int REFRESH_CUSTOMER_MATCH_LIST_RECOMMENDATION_FIELD_NUMBER = 66; /** *
   * Output only. The refresh customer list recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the refreshCustomerMatchListRecommendation field is set. */ @java.lang.Override public boolean hasRefreshCustomerMatchListRecommendation() { return recommendationCase_ == 66; } /** *
   * Output only. The refresh customer list recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The refreshCustomerMatchListRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation getRefreshCustomerMatchListRecommendation() { if (recommendationCase_ == 66) { return (com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.getDefaultInstance(); } /** *
   * Output only. The refresh customer list recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendationOrBuilder getRefreshCustomerMatchListRecommendationOrBuilder() { if (recommendationCase_ == 66) { return (com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.getDefaultInstance(); } public static final int CUSTOM_AUDIENCE_OPT_IN_RECOMMENDATION_FIELD_NUMBER = 67; /** *
   * Output only. The custom audience opt in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customAudienceOptInRecommendation field is set. */ @java.lang.Override public boolean hasCustomAudienceOptInRecommendation() { return recommendationCase_ == 67; } /** *
   * Output only. The custom audience opt in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customAudienceOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation getCustomAudienceOptInRecommendation() { if (recommendationCase_ == 67) { return (com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The custom audience opt in recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendationOrBuilder getCustomAudienceOptInRecommendationOrBuilder() { if (recommendationCase_ == 67) { return (com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.getDefaultInstance(); } public static final int LEAD_FORM_ASSET_RECOMMENDATION_FIELD_NUMBER = 68; /** *
   * Output only. The lead form asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the leadFormAssetRecommendation field is set. */ @java.lang.Override public boolean hasLeadFormAssetRecommendation() { return recommendationCase_ == 68; } /** *
   * Output only. The lead form asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The leadFormAssetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation getLeadFormAssetRecommendation() { if (recommendationCase_ == 68) { return (com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.getDefaultInstance(); } /** *
   * Output only. The lead form asset recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendationOrBuilder getLeadFormAssetRecommendationOrBuilder() { if (recommendationCase_ == 68) { return (com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.getDefaultInstance(); } public static final int IMPROVE_DEMAND_GEN_AD_STRENGTH_RECOMMENDATION_FIELD_NUMBER = 69; /** *
   * Output only. The improve Demand Gen ad strength recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the improveDemandGenAdStrengthRecommendation field is set. */ @java.lang.Override public boolean hasImproveDemandGenAdStrengthRecommendation() { return recommendationCase_ == 69; } /** *
   * Output only. The improve Demand Gen ad strength recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The improveDemandGenAdStrengthRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation getImproveDemandGenAdStrengthRecommendation() { if (recommendationCase_ == 69) { return (com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.getDefaultInstance(); } /** *
   * Output only. The improve Demand Gen ad strength recommendation.
   * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendationOrBuilder getImproveDemandGenAdStrengthRecommendationOrBuilder() { if (recommendationCase_ == 69) { return (com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (type_ != com.google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType.UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getImpact()); } if (recommendationCase_ == 4) { output.writeMessage(4, (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 8) { output.writeMessage(8, (com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) recommendation_); } if (recommendationCase_ == 9) { output.writeMessage(9, (com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) recommendation_); } if (recommendationCase_ == 10) { output.writeMessage(10, (com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_); } if (recommendationCase_ == 11) { output.writeMessage(11, (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_); } if (recommendationCase_ == 12) { output.writeMessage(12, (com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_); } if (recommendationCase_ == 14) { output.writeMessage(14, (com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_); } if (recommendationCase_ == 15) { output.writeMessage(15, (com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_); } if (recommendationCase_ == 16) { output.writeMessage(16, (com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_); } if (recommendationCase_ == 20) { output.writeMessage(20, (com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_); } if (recommendationCase_ == 21) { output.writeMessage(21, (com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_); } if (recommendationCase_ == 22) { output.writeMessage(22, (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 23) { output.writeMessage(23, (com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, campaignBudget_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, campaign_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, adGroup_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(27, dismissed_); } if (recommendationCase_ == 28) { output.writeMessage(28, (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_); } if (recommendationCase_ == 29) { output.writeMessage(29, (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 30) { output.writeMessage(30, (com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_); } if (recommendationCase_ == 31) { output.writeMessage(31, (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_); } if (recommendationCase_ == 32) { output.writeMessage(32, (com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) recommendation_); } if (recommendationCase_ == 33) { output.writeMessage(33, (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) recommendation_); } if (recommendationCase_ == 34) { output.writeMessage(34, (com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) recommendation_); } if (recommendationCase_ == 35) { output.writeMessage(35, (com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) recommendation_); } if (recommendationCase_ == 36) { output.writeMessage(36, (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) recommendation_); } if (recommendationCase_ == 37) { output.writeMessage(37, (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_); } for (int i = 0; i < campaigns_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 38, campaigns_.getRaw(i)); } if (recommendationCase_ == 39) { output.writeMessage(39, (com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) recommendation_); } if (recommendationCase_ == 40) { output.writeMessage(40, (com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) recommendation_); } if (recommendationCase_ == 41) { output.writeMessage(41, (com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) recommendation_); } if (recommendationCase_ == 42) { output.writeMessage(42, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 43) { output.writeMessage(43, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 44) { output.writeMessage(44, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 45) { output.writeMessage(45, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 46) { output.writeMessage(46, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 47) { output.writeMessage(47, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 48) { output.writeMessage(48, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) recommendation_); } if (recommendationCase_ == 49) { output.writeMessage(49, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) recommendation_); } if (recommendationCase_ == 50) { output.writeMessage(50, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) recommendation_); } if (recommendationCase_ == 51) { output.writeMessage(51, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_); } if (recommendationCase_ == 52) { output.writeMessage(52, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_); } if (recommendationCase_ == 53) { output.writeMessage(53, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) recommendation_); } if (recommendationCase_ == 54) { output.writeMessage(54, (com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) recommendation_); } if (recommendationCase_ == 55) { output.writeMessage(55, (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) recommendation_); } if (recommendationCase_ == 56) { output.writeMessage(56, (com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) recommendation_); } if (recommendationCase_ == 57) { output.writeMessage(57, (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) recommendation_); } if (recommendationCase_ == 58) { output.writeMessage(58, (com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) recommendation_); } if (recommendationCase_ == 59) { output.writeMessage(59, (com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) recommendation_); } if (recommendationCase_ == 60) { output.writeMessage(60, (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_); } if (recommendationCase_ == 61) { output.writeMessage(61, (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_); } if (recommendationCase_ == 62) { output.writeMessage(62, (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_); } if (recommendationCase_ == 63) { output.writeMessage(63, (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) recommendation_); } if (recommendationCase_ == 64) { output.writeMessage(64, (com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) recommendation_); } if (recommendationCase_ == 65) { output.writeMessage(65, (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) recommendation_); } if (recommendationCase_ == 66) { output.writeMessage(66, (com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) recommendation_); } if (recommendationCase_ == 67) { output.writeMessage(67, (com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) recommendation_); } if (recommendationCase_ == 68) { output.writeMessage(68, (com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) recommendation_); } if (recommendationCase_ == 69) { output.writeMessage(69, (com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) recommendation_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); } if (type_ != com.google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getImpact()); } if (recommendationCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) recommendation_); } if (recommendationCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) recommendation_); } if (recommendationCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_); } if (recommendationCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_); } if (recommendationCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_); } if (recommendationCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_); } if (recommendationCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_); } if (recommendationCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_); } if (recommendationCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_); } if (recommendationCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_); } if (recommendationCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, (com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, campaignBudget_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, campaign_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, adGroup_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(27, dismissed_); } if (recommendationCase_ == 28) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_); } if (recommendationCase_ == 29) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(29, (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 30) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, (com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_); } if (recommendationCase_ == 31) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_); } if (recommendationCase_ == 32) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, (com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) recommendation_); } if (recommendationCase_ == 33) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) recommendation_); } if (recommendationCase_ == 34) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, (com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) recommendation_); } if (recommendationCase_ == 35) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(35, (com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) recommendation_); } if (recommendationCase_ == 36) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(36, (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) recommendation_); } if (recommendationCase_ == 37) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(37, (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_); } { int dataSize = 0; for (int i = 0; i < campaigns_.size(); i++) { dataSize += computeStringSizeNoTag(campaigns_.getRaw(i)); } size += dataSize; size += 2 * getCampaignsList().size(); } if (recommendationCase_ == 39) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(39, (com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) recommendation_); } if (recommendationCase_ == 40) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(40, (com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) recommendation_); } if (recommendationCase_ == 41) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(41, (com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) recommendation_); } if (recommendationCase_ == 42) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(42, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 43) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(43, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 44) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(44, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 45) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(45, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 46) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(46, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 47) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(47, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_); } if (recommendationCase_ == 48) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(48, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) recommendation_); } if (recommendationCase_ == 49) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(49, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) recommendation_); } if (recommendationCase_ == 50) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(50, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) recommendation_); } if (recommendationCase_ == 51) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(51, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_); } if (recommendationCase_ == 52) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(52, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_); } if (recommendationCase_ == 53) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(53, (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) recommendation_); } if (recommendationCase_ == 54) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(54, (com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) recommendation_); } if (recommendationCase_ == 55) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(55, (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) recommendation_); } if (recommendationCase_ == 56) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(56, (com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) recommendation_); } if (recommendationCase_ == 57) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(57, (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) recommendation_); } if (recommendationCase_ == 58) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(58, (com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) recommendation_); } if (recommendationCase_ == 59) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(59, (com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) recommendation_); } if (recommendationCase_ == 60) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(60, (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_); } if (recommendationCase_ == 61) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(61, (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_); } if (recommendationCase_ == 62) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(62, (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_); } if (recommendationCase_ == 63) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(63, (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) recommendation_); } if (recommendationCase_ == 64) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(64, (com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) recommendation_); } if (recommendationCase_ == 65) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(65, (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) recommendation_); } if (recommendationCase_ == 66) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(66, (com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) recommendation_); } if (recommendationCase_ == 67) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(67, (com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) recommendation_); } if (recommendationCase_ == 68) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(68, (com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) recommendation_); } if (recommendationCase_ == 69) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(69, (com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) recommendation_); } 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.v16.resources.Recommendation)) { return super.equals(obj); } com.google.ads.googleads.v16.resources.Recommendation other = (com.google.ads.googleads.v16.resources.Recommendation) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (type_ != other.type_) return false; if (hasImpact() != other.hasImpact()) return false; if (hasImpact()) { if (!getImpact() .equals(other.getImpact())) return false; } if (hasCampaignBudget() != other.hasCampaignBudget()) return false; if (hasCampaignBudget()) { if (!getCampaignBudget() .equals(other.getCampaignBudget())) return false; } if (hasCampaign() != other.hasCampaign()) return false; if (hasCampaign()) { if (!getCampaign() .equals(other.getCampaign())) return false; } if (hasAdGroup() != other.hasAdGroup()) return false; if (hasAdGroup()) { if (!getAdGroup() .equals(other.getAdGroup())) return false; } if (hasDismissed() != other.hasDismissed()) return false; if (hasDismissed()) { if (getDismissed() != other.getDismissed()) return false; } if (!getCampaignsList() .equals(other.getCampaignsList())) return false; if (!getRecommendationCase().equals(other.getRecommendationCase())) return false; switch (recommendationCase_) { case 4: if (!getCampaignBudgetRecommendation() .equals(other.getCampaignBudgetRecommendation())) return false; break; case 22: if (!getForecastingCampaignBudgetRecommendation() .equals(other.getForecastingCampaignBudgetRecommendation())) return false; break; case 8: if (!getKeywordRecommendation() .equals(other.getKeywordRecommendation())) return false; break; case 9: if (!getTextAdRecommendation() .equals(other.getTextAdRecommendation())) return false; break; case 10: if (!getTargetCpaOptInRecommendation() .equals(other.getTargetCpaOptInRecommendation())) return false; break; case 11: if (!getMaximizeConversionsOptInRecommendation() .equals(other.getMaximizeConversionsOptInRecommendation())) return false; break; case 12: if (!getEnhancedCpcOptInRecommendation() .equals(other.getEnhancedCpcOptInRecommendation())) return false; break; case 14: if (!getSearchPartnersOptInRecommendation() .equals(other.getSearchPartnersOptInRecommendation())) return false; break; case 15: if (!getMaximizeClicksOptInRecommendation() .equals(other.getMaximizeClicksOptInRecommendation())) return false; break; case 16: if (!getOptimizeAdRotationRecommendation() .equals(other.getOptimizeAdRotationRecommendation())) return false; break; case 20: if (!getKeywordMatchTypeRecommendation() .equals(other.getKeywordMatchTypeRecommendation())) return false; break; case 21: if (!getMoveUnusedBudgetRecommendation() .equals(other.getMoveUnusedBudgetRecommendation())) return false; break; case 23: if (!getTargetRoasOptInRecommendation() .equals(other.getTargetRoasOptInRecommendation())) return false; break; case 28: if (!getResponsiveSearchAdRecommendation() .equals(other.getResponsiveSearchAdRecommendation())) return false; break; case 29: if (!getMarginalRoiCampaignBudgetRecommendation() .equals(other.getMarginalRoiCampaignBudgetRecommendation())) return false; break; case 30: if (!getUseBroadMatchKeywordRecommendation() .equals(other.getUseBroadMatchKeywordRecommendation())) return false; break; case 31: if (!getResponsiveSearchAdAssetRecommendation() .equals(other.getResponsiveSearchAdAssetRecommendation())) return false; break; case 32: if (!getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation() .equals(other.getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation())) return false; break; case 33: if (!getResponsiveSearchAdImproveAdStrengthRecommendation() .equals(other.getResponsiveSearchAdImproveAdStrengthRecommendation())) return false; break; case 34: if (!getDisplayExpansionOptInRecommendation() .equals(other.getDisplayExpansionOptInRecommendation())) return false; break; case 35: if (!getUpgradeLocalCampaignToPerformanceMaxRecommendation() .equals(other.getUpgradeLocalCampaignToPerformanceMaxRecommendation())) return false; break; case 36: if (!getRaiseTargetCpaBidTooLowRecommendation() .equals(other.getRaiseTargetCpaBidTooLowRecommendation())) return false; break; case 37: if (!getForecastingSetTargetRoasRecommendation() .equals(other.getForecastingSetTargetRoasRecommendation())) return false; break; case 39: if (!getCalloutAssetRecommendation() .equals(other.getCalloutAssetRecommendation())) return false; break; case 40: if (!getSitelinkAssetRecommendation() .equals(other.getSitelinkAssetRecommendation())) return false; break; case 41: if (!getCallAssetRecommendation() .equals(other.getCallAssetRecommendation())) return false; break; case 42: if (!getShoppingAddAgeGroupRecommendation() .equals(other.getShoppingAddAgeGroupRecommendation())) return false; break; case 43: if (!getShoppingAddColorRecommendation() .equals(other.getShoppingAddColorRecommendation())) return false; break; case 44: if (!getShoppingAddGenderRecommendation() .equals(other.getShoppingAddGenderRecommendation())) return false; break; case 45: if (!getShoppingAddGtinRecommendation() .equals(other.getShoppingAddGtinRecommendation())) return false; break; case 46: if (!getShoppingAddMoreIdentifiersRecommendation() .equals(other.getShoppingAddMoreIdentifiersRecommendation())) return false; break; case 47: if (!getShoppingAddSizeRecommendation() .equals(other.getShoppingAddSizeRecommendation())) return false; break; case 48: if (!getShoppingAddProductsToCampaignRecommendation() .equals(other.getShoppingAddProductsToCampaignRecommendation())) return false; break; case 49: if (!getShoppingFixDisapprovedProductsRecommendation() .equals(other.getShoppingFixDisapprovedProductsRecommendation())) return false; break; case 50: if (!getShoppingTargetAllOffersRecommendation() .equals(other.getShoppingTargetAllOffersRecommendation())) return false; break; case 51: if (!getShoppingFixSuspendedMerchantCenterAccountRecommendation() .equals(other.getShoppingFixSuspendedMerchantCenterAccountRecommendation())) return false; break; case 52: if (!getShoppingFixMerchantCenterAccountSuspensionWarningRecommendation() .equals(other.getShoppingFixMerchantCenterAccountSuspensionWarningRecommendation())) return false; break; case 53: if (!getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation() .equals(other.getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation())) return false; break; case 54: if (!getDynamicImageExtensionOptInRecommendation() .equals(other.getDynamicImageExtensionOptInRecommendation())) return false; break; case 55: if (!getRaiseTargetCpaRecommendation() .equals(other.getRaiseTargetCpaRecommendation())) return false; break; case 56: if (!getLowerTargetRoasRecommendation() .equals(other.getLowerTargetRoasRecommendation())) return false; break; case 57: if (!getPerformanceMaxOptInRecommendation() .equals(other.getPerformanceMaxOptInRecommendation())) return false; break; case 58: if (!getImprovePerformanceMaxAdStrengthRecommendation() .equals(other.getImprovePerformanceMaxAdStrengthRecommendation())) return false; break; case 59: if (!getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation() .equals(other.getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation())) return false; break; case 60: if (!getForecastingSetTargetCpaRecommendation() .equals(other.getForecastingSetTargetCpaRecommendation())) return false; break; case 61: if (!getSetTargetCpaRecommendation() .equals(other.getSetTargetCpaRecommendation())) return false; break; case 62: if (!getSetTargetRoasRecommendation() .equals(other.getSetTargetRoasRecommendation())) return false; break; case 63: if (!getMaximizeConversionValueOptInRecommendation() .equals(other.getMaximizeConversionValueOptInRecommendation())) return false; break; case 64: if (!getImproveGoogleTagCoverageRecommendation() .equals(other.getImproveGoogleTagCoverageRecommendation())) return false; break; case 65: if (!getPerformanceMaxFinalUrlOptInRecommendation() .equals(other.getPerformanceMaxFinalUrlOptInRecommendation())) return false; break; case 66: if (!getRefreshCustomerMatchListRecommendation() .equals(other.getRefreshCustomerMatchListRecommendation())) return false; break; case 67: if (!getCustomAudienceOptInRecommendation() .equals(other.getCustomAudienceOptInRecommendation())) return false; break; case 68: if (!getLeadFormAssetRecommendation() .equals(other.getLeadFormAssetRecommendation())) return false; break; case 69: if (!getImproveDemandGenAdStrengthRecommendation() .equals(other.getImproveDemandGenAdStrengthRecommendation())) 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(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasImpact()) { hash = (37 * hash) + IMPACT_FIELD_NUMBER; hash = (53 * hash) + getImpact().hashCode(); } if (hasCampaignBudget()) { hash = (37 * hash) + CAMPAIGN_BUDGET_FIELD_NUMBER; hash = (53 * hash) + getCampaignBudget().hashCode(); } if (hasCampaign()) { hash = (37 * hash) + CAMPAIGN_FIELD_NUMBER; hash = (53 * hash) + getCampaign().hashCode(); } if (hasAdGroup()) { hash = (37 * hash) + AD_GROUP_FIELD_NUMBER; hash = (53 * hash) + getAdGroup().hashCode(); } if (hasDismissed()) { hash = (37 * hash) + DISMISSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDismissed()); } if (getCampaignsCount() > 0) { hash = (37 * hash) + CAMPAIGNS_FIELD_NUMBER; hash = (53 * hash) + getCampaignsList().hashCode(); } switch (recommendationCase_) { case 4: hash = (37 * hash) + CAMPAIGN_BUDGET_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getCampaignBudgetRecommendation().hashCode(); break; case 22: hash = (37 * hash) + FORECASTING_CAMPAIGN_BUDGET_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getForecastingCampaignBudgetRecommendation().hashCode(); break; case 8: hash = (37 * hash) + KEYWORD_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getKeywordRecommendation().hashCode(); break; case 9: hash = (37 * hash) + TEXT_AD_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getTextAdRecommendation().hashCode(); break; case 10: hash = (37 * hash) + TARGET_CPA_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getTargetCpaOptInRecommendation().hashCode(); break; case 11: hash = (37 * hash) + MAXIMIZE_CONVERSIONS_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getMaximizeConversionsOptInRecommendation().hashCode(); break; case 12: hash = (37 * hash) + ENHANCED_CPC_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getEnhancedCpcOptInRecommendation().hashCode(); break; case 14: hash = (37 * hash) + SEARCH_PARTNERS_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getSearchPartnersOptInRecommendation().hashCode(); break; case 15: hash = (37 * hash) + MAXIMIZE_CLICKS_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getMaximizeClicksOptInRecommendation().hashCode(); break; case 16: hash = (37 * hash) + OPTIMIZE_AD_ROTATION_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getOptimizeAdRotationRecommendation().hashCode(); break; case 20: hash = (37 * hash) + KEYWORD_MATCH_TYPE_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getKeywordMatchTypeRecommendation().hashCode(); break; case 21: hash = (37 * hash) + MOVE_UNUSED_BUDGET_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getMoveUnusedBudgetRecommendation().hashCode(); break; case 23: hash = (37 * hash) + TARGET_ROAS_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getTargetRoasOptInRecommendation().hashCode(); break; case 28: hash = (37 * hash) + RESPONSIVE_SEARCH_AD_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getResponsiveSearchAdRecommendation().hashCode(); break; case 29: hash = (37 * hash) + MARGINAL_ROI_CAMPAIGN_BUDGET_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getMarginalRoiCampaignBudgetRecommendation().hashCode(); break; case 30: hash = (37 * hash) + USE_BROAD_MATCH_KEYWORD_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getUseBroadMatchKeywordRecommendation().hashCode(); break; case 31: hash = (37 * hash) + RESPONSIVE_SEARCH_AD_ASSET_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getResponsiveSearchAdAssetRecommendation().hashCode(); break; case 32: hash = (37 * hash) + UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation().hashCode(); break; case 33: hash = (37 * hash) + RESPONSIVE_SEARCH_AD_IMPROVE_AD_STRENGTH_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getResponsiveSearchAdImproveAdStrengthRecommendation().hashCode(); break; case 34: hash = (37 * hash) + DISPLAY_EXPANSION_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getDisplayExpansionOptInRecommendation().hashCode(); break; case 35: hash = (37 * hash) + UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getUpgradeLocalCampaignToPerformanceMaxRecommendation().hashCode(); break; case 36: hash = (37 * hash) + RAISE_TARGET_CPA_BID_TOO_LOW_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getRaiseTargetCpaBidTooLowRecommendation().hashCode(); break; case 37: hash = (37 * hash) + FORECASTING_SET_TARGET_ROAS_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getForecastingSetTargetRoasRecommendation().hashCode(); break; case 39: hash = (37 * hash) + CALLOUT_ASSET_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getCalloutAssetRecommendation().hashCode(); break; case 40: hash = (37 * hash) + SITELINK_ASSET_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getSitelinkAssetRecommendation().hashCode(); break; case 41: hash = (37 * hash) + CALL_ASSET_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getCallAssetRecommendation().hashCode(); break; case 42: hash = (37 * hash) + SHOPPING_ADD_AGE_GROUP_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingAddAgeGroupRecommendation().hashCode(); break; case 43: hash = (37 * hash) + SHOPPING_ADD_COLOR_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingAddColorRecommendation().hashCode(); break; case 44: hash = (37 * hash) + SHOPPING_ADD_GENDER_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingAddGenderRecommendation().hashCode(); break; case 45: hash = (37 * hash) + SHOPPING_ADD_GTIN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingAddGtinRecommendation().hashCode(); break; case 46: hash = (37 * hash) + SHOPPING_ADD_MORE_IDENTIFIERS_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingAddMoreIdentifiersRecommendation().hashCode(); break; case 47: hash = (37 * hash) + SHOPPING_ADD_SIZE_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingAddSizeRecommendation().hashCode(); break; case 48: hash = (37 * hash) + SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingAddProductsToCampaignRecommendation().hashCode(); break; case 49: hash = (37 * hash) + SHOPPING_FIX_DISAPPROVED_PRODUCTS_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingFixDisapprovedProductsRecommendation().hashCode(); break; case 50: hash = (37 * hash) + SHOPPING_TARGET_ALL_OFFERS_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingTargetAllOffersRecommendation().hashCode(); break; case 51: hash = (37 * hash) + SHOPPING_FIX_SUSPENDED_MERCHANT_CENTER_ACCOUNT_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingFixSuspendedMerchantCenterAccountRecommendation().hashCode(); break; case 52: hash = (37 * hash) + SHOPPING_FIX_MERCHANT_CENTER_ACCOUNT_SUSPENSION_WARNING_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingFixMerchantCenterAccountSuspensionWarningRecommendation().hashCode(); break; case 53: hash = (37 * hash) + SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation().hashCode(); break; case 54: hash = (37 * hash) + DYNAMIC_IMAGE_EXTENSION_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getDynamicImageExtensionOptInRecommendation().hashCode(); break; case 55: hash = (37 * hash) + RAISE_TARGET_CPA_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getRaiseTargetCpaRecommendation().hashCode(); break; case 56: hash = (37 * hash) + LOWER_TARGET_ROAS_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getLowerTargetRoasRecommendation().hashCode(); break; case 57: hash = (37 * hash) + PERFORMANCE_MAX_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getPerformanceMaxOptInRecommendation().hashCode(); break; case 58: hash = (37 * hash) + IMPROVE_PERFORMANCE_MAX_AD_STRENGTH_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getImprovePerformanceMaxAdStrengthRecommendation().hashCode(); break; case 59: hash = (37 * hash) + MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation().hashCode(); break; case 60: hash = (37 * hash) + FORECASTING_SET_TARGET_CPA_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getForecastingSetTargetCpaRecommendation().hashCode(); break; case 61: hash = (37 * hash) + SET_TARGET_CPA_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getSetTargetCpaRecommendation().hashCode(); break; case 62: hash = (37 * hash) + SET_TARGET_ROAS_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getSetTargetRoasRecommendation().hashCode(); break; case 63: hash = (37 * hash) + MAXIMIZE_CONVERSION_VALUE_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getMaximizeConversionValueOptInRecommendation().hashCode(); break; case 64: hash = (37 * hash) + IMPROVE_GOOGLE_TAG_COVERAGE_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getImproveGoogleTagCoverageRecommendation().hashCode(); break; case 65: hash = (37 * hash) + PERFORMANCE_MAX_FINAL_URL_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getPerformanceMaxFinalUrlOptInRecommendation().hashCode(); break; case 66: hash = (37 * hash) + REFRESH_CUSTOMER_MATCH_LIST_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getRefreshCustomerMatchListRecommendation().hashCode(); break; case 67: hash = (37 * hash) + CUSTOM_AUDIENCE_OPT_IN_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getCustomAudienceOptInRecommendation().hashCode(); break; case 68: hash = (37 * hash) + LEAD_FORM_ASSET_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getLeadFormAssetRecommendation().hashCode(); break; case 69: hash = (37 * hash) + IMPROVE_DEMAND_GEN_AD_STRENGTH_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getImproveDemandGenAdStrengthRecommendation().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v16.resources.Recommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation 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.v16.resources.Recommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation 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.v16.resources.Recommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v16.resources.Recommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v16.resources.Recommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation 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.v16.resources.Recommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation 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.v16.resources.Recommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v16.resources.Recommendation 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.v16.resources.Recommendation 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 recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v16.resources.Recommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation) com.google.ads.googleads.v16.resources.RecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v16.resources.Recommendation.class, com.google.ads.googleads.v16.resources.Recommendation.Builder.class); } // Construct using com.google.ads.googleads.v16.resources.Recommendation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getImpactFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bitField1_ = 0; resourceName_ = ""; type_ = 0; impact_ = null; if (impactBuilder_ != null) { impactBuilder_.dispose(); impactBuilder_ = null; } campaignBudget_ = ""; campaign_ = ""; adGroup_ = ""; dismissed_ = false; campaigns_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (campaignBudgetRecommendationBuilder_ != null) { campaignBudgetRecommendationBuilder_.clear(); } if (forecastingCampaignBudgetRecommendationBuilder_ != null) { forecastingCampaignBudgetRecommendationBuilder_.clear(); } if (keywordRecommendationBuilder_ != null) { keywordRecommendationBuilder_.clear(); } if (textAdRecommendationBuilder_ != null) { textAdRecommendationBuilder_.clear(); } if (targetCpaOptInRecommendationBuilder_ != null) { targetCpaOptInRecommendationBuilder_.clear(); } if (maximizeConversionsOptInRecommendationBuilder_ != null) { maximizeConversionsOptInRecommendationBuilder_.clear(); } if (enhancedCpcOptInRecommendationBuilder_ != null) { enhancedCpcOptInRecommendationBuilder_.clear(); } if (searchPartnersOptInRecommendationBuilder_ != null) { searchPartnersOptInRecommendationBuilder_.clear(); } if (maximizeClicksOptInRecommendationBuilder_ != null) { maximizeClicksOptInRecommendationBuilder_.clear(); } if (optimizeAdRotationRecommendationBuilder_ != null) { optimizeAdRotationRecommendationBuilder_.clear(); } if (keywordMatchTypeRecommendationBuilder_ != null) { keywordMatchTypeRecommendationBuilder_.clear(); } if (moveUnusedBudgetRecommendationBuilder_ != null) { moveUnusedBudgetRecommendationBuilder_.clear(); } if (targetRoasOptInRecommendationBuilder_ != null) { targetRoasOptInRecommendationBuilder_.clear(); } if (responsiveSearchAdRecommendationBuilder_ != null) { responsiveSearchAdRecommendationBuilder_.clear(); } if (marginalRoiCampaignBudgetRecommendationBuilder_ != null) { marginalRoiCampaignBudgetRecommendationBuilder_.clear(); } if (useBroadMatchKeywordRecommendationBuilder_ != null) { useBroadMatchKeywordRecommendationBuilder_.clear(); } if (responsiveSearchAdAssetRecommendationBuilder_ != null) { responsiveSearchAdAssetRecommendationBuilder_.clear(); } if (upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_ != null) { upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_.clear(); } if (responsiveSearchAdImproveAdStrengthRecommendationBuilder_ != null) { responsiveSearchAdImproveAdStrengthRecommendationBuilder_.clear(); } if (displayExpansionOptInRecommendationBuilder_ != null) { displayExpansionOptInRecommendationBuilder_.clear(); } if (upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_ != null) { upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_.clear(); } if (raiseTargetCpaBidTooLowRecommendationBuilder_ != null) { raiseTargetCpaBidTooLowRecommendationBuilder_.clear(); } if (forecastingSetTargetRoasRecommendationBuilder_ != null) { forecastingSetTargetRoasRecommendationBuilder_.clear(); } if (calloutAssetRecommendationBuilder_ != null) { calloutAssetRecommendationBuilder_.clear(); } if (sitelinkAssetRecommendationBuilder_ != null) { sitelinkAssetRecommendationBuilder_.clear(); } if (callAssetRecommendationBuilder_ != null) { callAssetRecommendationBuilder_.clear(); } if (shoppingAddAgeGroupRecommendationBuilder_ != null) { shoppingAddAgeGroupRecommendationBuilder_.clear(); } if (shoppingAddColorRecommendationBuilder_ != null) { shoppingAddColorRecommendationBuilder_.clear(); } if (shoppingAddGenderRecommendationBuilder_ != null) { shoppingAddGenderRecommendationBuilder_.clear(); } if (shoppingAddGtinRecommendationBuilder_ != null) { shoppingAddGtinRecommendationBuilder_.clear(); } if (shoppingAddMoreIdentifiersRecommendationBuilder_ != null) { shoppingAddMoreIdentifiersRecommendationBuilder_.clear(); } if (shoppingAddSizeRecommendationBuilder_ != null) { shoppingAddSizeRecommendationBuilder_.clear(); } if (shoppingAddProductsToCampaignRecommendationBuilder_ != null) { shoppingAddProductsToCampaignRecommendationBuilder_.clear(); } if (shoppingFixDisapprovedProductsRecommendationBuilder_ != null) { shoppingFixDisapprovedProductsRecommendationBuilder_.clear(); } if (shoppingTargetAllOffersRecommendationBuilder_ != null) { shoppingTargetAllOffersRecommendationBuilder_.clear(); } if (shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_ != null) { shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_.clear(); } if (shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_ != null) { shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_.clear(); } if (shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_ != null) { shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_.clear(); } if (dynamicImageExtensionOptInRecommendationBuilder_ != null) { dynamicImageExtensionOptInRecommendationBuilder_.clear(); } if (raiseTargetCpaRecommendationBuilder_ != null) { raiseTargetCpaRecommendationBuilder_.clear(); } if (lowerTargetRoasRecommendationBuilder_ != null) { lowerTargetRoasRecommendationBuilder_.clear(); } if (performanceMaxOptInRecommendationBuilder_ != null) { performanceMaxOptInRecommendationBuilder_.clear(); } if (improvePerformanceMaxAdStrengthRecommendationBuilder_ != null) { improvePerformanceMaxAdStrengthRecommendationBuilder_.clear(); } if (migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_ != null) { migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_.clear(); } if (forecastingSetTargetCpaRecommendationBuilder_ != null) { forecastingSetTargetCpaRecommendationBuilder_.clear(); } if (setTargetCpaRecommendationBuilder_ != null) { setTargetCpaRecommendationBuilder_.clear(); } if (setTargetRoasRecommendationBuilder_ != null) { setTargetRoasRecommendationBuilder_.clear(); } if (maximizeConversionValueOptInRecommendationBuilder_ != null) { maximizeConversionValueOptInRecommendationBuilder_.clear(); } if (improveGoogleTagCoverageRecommendationBuilder_ != null) { improveGoogleTagCoverageRecommendationBuilder_.clear(); } if (performanceMaxFinalUrlOptInRecommendationBuilder_ != null) { performanceMaxFinalUrlOptInRecommendationBuilder_.clear(); } if (refreshCustomerMatchListRecommendationBuilder_ != null) { refreshCustomerMatchListRecommendationBuilder_.clear(); } if (customAudienceOptInRecommendationBuilder_ != null) { customAudienceOptInRecommendationBuilder_.clear(); } if (leadFormAssetRecommendationBuilder_ != null) { leadFormAssetRecommendationBuilder_.clear(); } if (improveDemandGenAdStrengthRecommendationBuilder_ != null) { improveDemandGenAdStrengthRecommendationBuilder_.clear(); } recommendationCase_ = 0; recommendation_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation getDefaultInstanceForType() { return com.google.ads.googleads.v16.resources.Recommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation build() { com.google.ads.googleads.v16.resources.Recommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation buildPartial() { com.google.ads.googleads.v16.resources.Recommendation result = new com.google.ads.googleads.v16.resources.Recommendation(this); if (bitField0_ != 0) { buildPartial0(result); } if (bitField1_ != 0) { buildPartial1(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resourceName_ = resourceName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = type_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.impact_ = impactBuilder_ == null ? impact_ : impactBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.campaignBudget_ = campaignBudget_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.campaign_ = campaign_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.adGroup_ = adGroup_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { result.dismissed_ = dismissed_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { campaigns_.makeImmutable(); result.campaigns_ = campaigns_; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.google.ads.googleads.v16.resources.Recommendation result) { int from_bitField1_ = bitField1_; } private void buildPartialOneofs(com.google.ads.googleads.v16.resources.Recommendation result) { result.recommendationCase_ = recommendationCase_; result.recommendation_ = this.recommendation_; if (recommendationCase_ == 4 && campaignBudgetRecommendationBuilder_ != null) { result.recommendation_ = campaignBudgetRecommendationBuilder_.build(); } if (recommendationCase_ == 22 && forecastingCampaignBudgetRecommendationBuilder_ != null) { result.recommendation_ = forecastingCampaignBudgetRecommendationBuilder_.build(); } if (recommendationCase_ == 8 && keywordRecommendationBuilder_ != null) { result.recommendation_ = keywordRecommendationBuilder_.build(); } if (recommendationCase_ == 9 && textAdRecommendationBuilder_ != null) { result.recommendation_ = textAdRecommendationBuilder_.build(); } if (recommendationCase_ == 10 && targetCpaOptInRecommendationBuilder_ != null) { result.recommendation_ = targetCpaOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 11 && maximizeConversionsOptInRecommendationBuilder_ != null) { result.recommendation_ = maximizeConversionsOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 12 && enhancedCpcOptInRecommendationBuilder_ != null) { result.recommendation_ = enhancedCpcOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 14 && searchPartnersOptInRecommendationBuilder_ != null) { result.recommendation_ = searchPartnersOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 15 && maximizeClicksOptInRecommendationBuilder_ != null) { result.recommendation_ = maximizeClicksOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 16 && optimizeAdRotationRecommendationBuilder_ != null) { result.recommendation_ = optimizeAdRotationRecommendationBuilder_.build(); } if (recommendationCase_ == 20 && keywordMatchTypeRecommendationBuilder_ != null) { result.recommendation_ = keywordMatchTypeRecommendationBuilder_.build(); } if (recommendationCase_ == 21 && moveUnusedBudgetRecommendationBuilder_ != null) { result.recommendation_ = moveUnusedBudgetRecommendationBuilder_.build(); } if (recommendationCase_ == 23 && targetRoasOptInRecommendationBuilder_ != null) { result.recommendation_ = targetRoasOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 28 && responsiveSearchAdRecommendationBuilder_ != null) { result.recommendation_ = responsiveSearchAdRecommendationBuilder_.build(); } if (recommendationCase_ == 29 && marginalRoiCampaignBudgetRecommendationBuilder_ != null) { result.recommendation_ = marginalRoiCampaignBudgetRecommendationBuilder_.build(); } if (recommendationCase_ == 30 && useBroadMatchKeywordRecommendationBuilder_ != null) { result.recommendation_ = useBroadMatchKeywordRecommendationBuilder_.build(); } if (recommendationCase_ == 31 && responsiveSearchAdAssetRecommendationBuilder_ != null) { result.recommendation_ = responsiveSearchAdAssetRecommendationBuilder_.build(); } if (recommendationCase_ == 32 && upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_ != null) { result.recommendation_ = upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_.build(); } if (recommendationCase_ == 33 && responsiveSearchAdImproveAdStrengthRecommendationBuilder_ != null) { result.recommendation_ = responsiveSearchAdImproveAdStrengthRecommendationBuilder_.build(); } if (recommendationCase_ == 34 && displayExpansionOptInRecommendationBuilder_ != null) { result.recommendation_ = displayExpansionOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 35 && upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_ != null) { result.recommendation_ = upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_.build(); } if (recommendationCase_ == 36 && raiseTargetCpaBidTooLowRecommendationBuilder_ != null) { result.recommendation_ = raiseTargetCpaBidTooLowRecommendationBuilder_.build(); } if (recommendationCase_ == 37 && forecastingSetTargetRoasRecommendationBuilder_ != null) { result.recommendation_ = forecastingSetTargetRoasRecommendationBuilder_.build(); } if (recommendationCase_ == 39 && calloutAssetRecommendationBuilder_ != null) { result.recommendation_ = calloutAssetRecommendationBuilder_.build(); } if (recommendationCase_ == 40 && sitelinkAssetRecommendationBuilder_ != null) { result.recommendation_ = sitelinkAssetRecommendationBuilder_.build(); } if (recommendationCase_ == 41 && callAssetRecommendationBuilder_ != null) { result.recommendation_ = callAssetRecommendationBuilder_.build(); } if (recommendationCase_ == 42 && shoppingAddAgeGroupRecommendationBuilder_ != null) { result.recommendation_ = shoppingAddAgeGroupRecommendationBuilder_.build(); } if (recommendationCase_ == 43 && shoppingAddColorRecommendationBuilder_ != null) { result.recommendation_ = shoppingAddColorRecommendationBuilder_.build(); } if (recommendationCase_ == 44 && shoppingAddGenderRecommendationBuilder_ != null) { result.recommendation_ = shoppingAddGenderRecommendationBuilder_.build(); } if (recommendationCase_ == 45 && shoppingAddGtinRecommendationBuilder_ != null) { result.recommendation_ = shoppingAddGtinRecommendationBuilder_.build(); } if (recommendationCase_ == 46 && shoppingAddMoreIdentifiersRecommendationBuilder_ != null) { result.recommendation_ = shoppingAddMoreIdentifiersRecommendationBuilder_.build(); } if (recommendationCase_ == 47 && shoppingAddSizeRecommendationBuilder_ != null) { result.recommendation_ = shoppingAddSizeRecommendationBuilder_.build(); } if (recommendationCase_ == 48 && shoppingAddProductsToCampaignRecommendationBuilder_ != null) { result.recommendation_ = shoppingAddProductsToCampaignRecommendationBuilder_.build(); } if (recommendationCase_ == 49 && shoppingFixDisapprovedProductsRecommendationBuilder_ != null) { result.recommendation_ = shoppingFixDisapprovedProductsRecommendationBuilder_.build(); } if (recommendationCase_ == 50 && shoppingTargetAllOffersRecommendationBuilder_ != null) { result.recommendation_ = shoppingTargetAllOffersRecommendationBuilder_.build(); } if (recommendationCase_ == 51 && shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_ != null) { result.recommendation_ = shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_.build(); } if (recommendationCase_ == 52 && shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_ != null) { result.recommendation_ = shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_.build(); } if (recommendationCase_ == 53 && shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_ != null) { result.recommendation_ = shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_.build(); } if (recommendationCase_ == 54 && dynamicImageExtensionOptInRecommendationBuilder_ != null) { result.recommendation_ = dynamicImageExtensionOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 55 && raiseTargetCpaRecommendationBuilder_ != null) { result.recommendation_ = raiseTargetCpaRecommendationBuilder_.build(); } if (recommendationCase_ == 56 && lowerTargetRoasRecommendationBuilder_ != null) { result.recommendation_ = lowerTargetRoasRecommendationBuilder_.build(); } if (recommendationCase_ == 57 && performanceMaxOptInRecommendationBuilder_ != null) { result.recommendation_ = performanceMaxOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 58 && improvePerformanceMaxAdStrengthRecommendationBuilder_ != null) { result.recommendation_ = improvePerformanceMaxAdStrengthRecommendationBuilder_.build(); } if (recommendationCase_ == 59 && migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_ != null) { result.recommendation_ = migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_.build(); } if (recommendationCase_ == 60 && forecastingSetTargetCpaRecommendationBuilder_ != null) { result.recommendation_ = forecastingSetTargetCpaRecommendationBuilder_.build(); } if (recommendationCase_ == 61 && setTargetCpaRecommendationBuilder_ != null) { result.recommendation_ = setTargetCpaRecommendationBuilder_.build(); } if (recommendationCase_ == 62 && setTargetRoasRecommendationBuilder_ != null) { result.recommendation_ = setTargetRoasRecommendationBuilder_.build(); } if (recommendationCase_ == 63 && maximizeConversionValueOptInRecommendationBuilder_ != null) { result.recommendation_ = maximizeConversionValueOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 64 && improveGoogleTagCoverageRecommendationBuilder_ != null) { result.recommendation_ = improveGoogleTagCoverageRecommendationBuilder_.build(); } if (recommendationCase_ == 65 && performanceMaxFinalUrlOptInRecommendationBuilder_ != null) { result.recommendation_ = performanceMaxFinalUrlOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 66 && refreshCustomerMatchListRecommendationBuilder_ != null) { result.recommendation_ = refreshCustomerMatchListRecommendationBuilder_.build(); } if (recommendationCase_ == 67 && customAudienceOptInRecommendationBuilder_ != null) { result.recommendation_ = customAudienceOptInRecommendationBuilder_.build(); } if (recommendationCase_ == 68 && leadFormAssetRecommendationBuilder_ != null) { result.recommendation_ = leadFormAssetRecommendationBuilder_.build(); } if (recommendationCase_ == 69 && improveDemandGenAdStrengthRecommendationBuilder_ != null) { result.recommendation_ = improveDemandGenAdStrengthRecommendationBuilder_.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.v16.resources.Recommendation) { return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation other) { if (other == com.google.ads.googleads.v16.resources.Recommendation.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; bitField0_ |= 0x00000001; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasImpact()) { mergeImpact(other.getImpact()); } if (other.hasCampaignBudget()) { campaignBudget_ = other.campaignBudget_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasCampaign()) { campaign_ = other.campaign_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasAdGroup()) { adGroup_ = other.adGroup_; bitField0_ |= 0x00000020; onChanged(); } if (other.hasDismissed()) { setDismissed(other.getDismissed()); } if (!other.campaigns_.isEmpty()) { if (campaigns_.isEmpty()) { campaigns_ = other.campaigns_; bitField0_ |= 0x00000080; } else { ensureCampaignsIsMutable(); campaigns_.addAll(other.campaigns_); } onChanged(); } switch (other.getRecommendationCase()) { case CAMPAIGN_BUDGET_RECOMMENDATION: { mergeCampaignBudgetRecommendation(other.getCampaignBudgetRecommendation()); break; } case FORECASTING_CAMPAIGN_BUDGET_RECOMMENDATION: { mergeForecastingCampaignBudgetRecommendation(other.getForecastingCampaignBudgetRecommendation()); break; } case KEYWORD_RECOMMENDATION: { mergeKeywordRecommendation(other.getKeywordRecommendation()); break; } case TEXT_AD_RECOMMENDATION: { mergeTextAdRecommendation(other.getTextAdRecommendation()); break; } case TARGET_CPA_OPT_IN_RECOMMENDATION: { mergeTargetCpaOptInRecommendation(other.getTargetCpaOptInRecommendation()); break; } case MAXIMIZE_CONVERSIONS_OPT_IN_RECOMMENDATION: { mergeMaximizeConversionsOptInRecommendation(other.getMaximizeConversionsOptInRecommendation()); break; } case ENHANCED_CPC_OPT_IN_RECOMMENDATION: { mergeEnhancedCpcOptInRecommendation(other.getEnhancedCpcOptInRecommendation()); break; } case SEARCH_PARTNERS_OPT_IN_RECOMMENDATION: { mergeSearchPartnersOptInRecommendation(other.getSearchPartnersOptInRecommendation()); break; } case MAXIMIZE_CLICKS_OPT_IN_RECOMMENDATION: { mergeMaximizeClicksOptInRecommendation(other.getMaximizeClicksOptInRecommendation()); break; } case OPTIMIZE_AD_ROTATION_RECOMMENDATION: { mergeOptimizeAdRotationRecommendation(other.getOptimizeAdRotationRecommendation()); break; } case KEYWORD_MATCH_TYPE_RECOMMENDATION: { mergeKeywordMatchTypeRecommendation(other.getKeywordMatchTypeRecommendation()); break; } case MOVE_UNUSED_BUDGET_RECOMMENDATION: { mergeMoveUnusedBudgetRecommendation(other.getMoveUnusedBudgetRecommendation()); break; } case TARGET_ROAS_OPT_IN_RECOMMENDATION: { mergeTargetRoasOptInRecommendation(other.getTargetRoasOptInRecommendation()); break; } case RESPONSIVE_SEARCH_AD_RECOMMENDATION: { mergeResponsiveSearchAdRecommendation(other.getResponsiveSearchAdRecommendation()); break; } case MARGINAL_ROI_CAMPAIGN_BUDGET_RECOMMENDATION: { mergeMarginalRoiCampaignBudgetRecommendation(other.getMarginalRoiCampaignBudgetRecommendation()); break; } case USE_BROAD_MATCH_KEYWORD_RECOMMENDATION: { mergeUseBroadMatchKeywordRecommendation(other.getUseBroadMatchKeywordRecommendation()); break; } case RESPONSIVE_SEARCH_AD_ASSET_RECOMMENDATION: { mergeResponsiveSearchAdAssetRecommendation(other.getResponsiveSearchAdAssetRecommendation()); break; } case UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION: { mergeUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation(other.getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation()); break; } case RESPONSIVE_SEARCH_AD_IMPROVE_AD_STRENGTH_RECOMMENDATION: { mergeResponsiveSearchAdImproveAdStrengthRecommendation(other.getResponsiveSearchAdImproveAdStrengthRecommendation()); break; } case DISPLAY_EXPANSION_OPT_IN_RECOMMENDATION: { mergeDisplayExpansionOptInRecommendation(other.getDisplayExpansionOptInRecommendation()); break; } case UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION: { mergeUpgradeLocalCampaignToPerformanceMaxRecommendation(other.getUpgradeLocalCampaignToPerformanceMaxRecommendation()); break; } case RAISE_TARGET_CPA_BID_TOO_LOW_RECOMMENDATION: { mergeRaiseTargetCpaBidTooLowRecommendation(other.getRaiseTargetCpaBidTooLowRecommendation()); break; } case FORECASTING_SET_TARGET_ROAS_RECOMMENDATION: { mergeForecastingSetTargetRoasRecommendation(other.getForecastingSetTargetRoasRecommendation()); break; } case CALLOUT_ASSET_RECOMMENDATION: { mergeCalloutAssetRecommendation(other.getCalloutAssetRecommendation()); break; } case SITELINK_ASSET_RECOMMENDATION: { mergeSitelinkAssetRecommendation(other.getSitelinkAssetRecommendation()); break; } case CALL_ASSET_RECOMMENDATION: { mergeCallAssetRecommendation(other.getCallAssetRecommendation()); break; } case SHOPPING_ADD_AGE_GROUP_RECOMMENDATION: { mergeShoppingAddAgeGroupRecommendation(other.getShoppingAddAgeGroupRecommendation()); break; } case SHOPPING_ADD_COLOR_RECOMMENDATION: { mergeShoppingAddColorRecommendation(other.getShoppingAddColorRecommendation()); break; } case SHOPPING_ADD_GENDER_RECOMMENDATION: { mergeShoppingAddGenderRecommendation(other.getShoppingAddGenderRecommendation()); break; } case SHOPPING_ADD_GTIN_RECOMMENDATION: { mergeShoppingAddGtinRecommendation(other.getShoppingAddGtinRecommendation()); break; } case SHOPPING_ADD_MORE_IDENTIFIERS_RECOMMENDATION: { mergeShoppingAddMoreIdentifiersRecommendation(other.getShoppingAddMoreIdentifiersRecommendation()); break; } case SHOPPING_ADD_SIZE_RECOMMENDATION: { mergeShoppingAddSizeRecommendation(other.getShoppingAddSizeRecommendation()); break; } case SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN_RECOMMENDATION: { mergeShoppingAddProductsToCampaignRecommendation(other.getShoppingAddProductsToCampaignRecommendation()); break; } case SHOPPING_FIX_DISAPPROVED_PRODUCTS_RECOMMENDATION: { mergeShoppingFixDisapprovedProductsRecommendation(other.getShoppingFixDisapprovedProductsRecommendation()); break; } case SHOPPING_TARGET_ALL_OFFERS_RECOMMENDATION: { mergeShoppingTargetAllOffersRecommendation(other.getShoppingTargetAllOffersRecommendation()); break; } case SHOPPING_FIX_SUSPENDED_MERCHANT_CENTER_ACCOUNT_RECOMMENDATION: { mergeShoppingFixSuspendedMerchantCenterAccountRecommendation(other.getShoppingFixSuspendedMerchantCenterAccountRecommendation()); break; } case SHOPPING_FIX_MERCHANT_CENTER_ACCOUNT_SUSPENSION_WARNING_RECOMMENDATION: { mergeShoppingFixMerchantCenterAccountSuspensionWarningRecommendation(other.getShoppingFixMerchantCenterAccountSuspensionWarningRecommendation()); break; } case SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX_RECOMMENDATION: { mergeShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation(other.getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation()); break; } case DYNAMIC_IMAGE_EXTENSION_OPT_IN_RECOMMENDATION: { mergeDynamicImageExtensionOptInRecommendation(other.getDynamicImageExtensionOptInRecommendation()); break; } case RAISE_TARGET_CPA_RECOMMENDATION: { mergeRaiseTargetCpaRecommendation(other.getRaiseTargetCpaRecommendation()); break; } case LOWER_TARGET_ROAS_RECOMMENDATION: { mergeLowerTargetRoasRecommendation(other.getLowerTargetRoasRecommendation()); break; } case PERFORMANCE_MAX_OPT_IN_RECOMMENDATION: { mergePerformanceMaxOptInRecommendation(other.getPerformanceMaxOptInRecommendation()); break; } case IMPROVE_PERFORMANCE_MAX_AD_STRENGTH_RECOMMENDATION: { mergeImprovePerformanceMaxAdStrengthRecommendation(other.getImprovePerformanceMaxAdStrengthRecommendation()); break; } case MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX_RECOMMENDATION: { mergeMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(other.getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation()); break; } case FORECASTING_SET_TARGET_CPA_RECOMMENDATION: { mergeForecastingSetTargetCpaRecommendation(other.getForecastingSetTargetCpaRecommendation()); break; } case SET_TARGET_CPA_RECOMMENDATION: { mergeSetTargetCpaRecommendation(other.getSetTargetCpaRecommendation()); break; } case SET_TARGET_ROAS_RECOMMENDATION: { mergeSetTargetRoasRecommendation(other.getSetTargetRoasRecommendation()); break; } case MAXIMIZE_CONVERSION_VALUE_OPT_IN_RECOMMENDATION: { mergeMaximizeConversionValueOptInRecommendation(other.getMaximizeConversionValueOptInRecommendation()); break; } case IMPROVE_GOOGLE_TAG_COVERAGE_RECOMMENDATION: { mergeImproveGoogleTagCoverageRecommendation(other.getImproveGoogleTagCoverageRecommendation()); break; } case PERFORMANCE_MAX_FINAL_URL_OPT_IN_RECOMMENDATION: { mergePerformanceMaxFinalUrlOptInRecommendation(other.getPerformanceMaxFinalUrlOptInRecommendation()); break; } case REFRESH_CUSTOMER_MATCH_LIST_RECOMMENDATION: { mergeRefreshCustomerMatchListRecommendation(other.getRefreshCustomerMatchListRecommendation()); break; } case CUSTOM_AUDIENCE_OPT_IN_RECOMMENDATION: { mergeCustomAudienceOptInRecommendation(other.getCustomAudienceOptInRecommendation()); break; } case LEAD_FORM_ASSET_RECOMMENDATION: { mergeLeadFormAssetRecommendation(other.getLeadFormAssetRecommendation()); break; } case IMPROVE_DEMAND_GEN_AD_STRENGTH_RECOMMENDATION: { mergeImproveDemandGenAdStrengthRecommendation(other.getImproveDemandGenAdStrengthRecommendation()); break; } case RECOMMENDATION_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 16: { type_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getImpactFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getCampaignBudgetRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 4; break; } // case 34 case 66: { input.readMessage( getKeywordRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 8; break; } // case 66 case 74: { input.readMessage( getTextAdRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 9; break; } // case 74 case 82: { input.readMessage( getTargetCpaOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 10; break; } // case 82 case 90: { input.readMessage( getMaximizeConversionsOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 11; break; } // case 90 case 98: { input.readMessage( getEnhancedCpcOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 12; break; } // case 98 case 114: { input.readMessage( getSearchPartnersOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 14; break; } // case 114 case 122: { input.readMessage( getMaximizeClicksOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 15; break; } // case 122 case 130: { input.readMessage( getOptimizeAdRotationRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 16; break; } // case 130 case 162: { input.readMessage( getKeywordMatchTypeRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 20; break; } // case 162 case 170: { input.readMessage( getMoveUnusedBudgetRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 21; break; } // case 170 case 178: { input.readMessage( getForecastingCampaignBudgetRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 22; break; } // case 178 case 186: { input.readMessage( getTargetRoasOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 23; break; } // case 186 case 194: { campaignBudget_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 194 case 202: { campaign_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 202 case 210: { adGroup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 210 case 216: { dismissed_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 216 case 226: { input.readMessage( getResponsiveSearchAdRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 28; break; } // case 226 case 234: { input.readMessage( getMarginalRoiCampaignBudgetRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 29; break; } // case 234 case 242: { input.readMessage( getUseBroadMatchKeywordRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 30; break; } // case 242 case 250: { input.readMessage( getResponsiveSearchAdAssetRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 31; break; } // case 250 case 258: { input.readMessage( getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 32; break; } // case 258 case 266: { input.readMessage( getResponsiveSearchAdImproveAdStrengthRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 33; break; } // case 266 case 274: { input.readMessage( getDisplayExpansionOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 34; break; } // case 274 case 282: { input.readMessage( getUpgradeLocalCampaignToPerformanceMaxRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 35; break; } // case 282 case 290: { input.readMessage( getRaiseTargetCpaBidTooLowRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 36; break; } // case 290 case 298: { input.readMessage( getForecastingSetTargetRoasRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 37; break; } // case 298 case 306: { java.lang.String s = input.readStringRequireUtf8(); ensureCampaignsIsMutable(); campaigns_.add(s); break; } // case 306 case 314: { input.readMessage( getCalloutAssetRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 39; break; } // case 314 case 322: { input.readMessage( getSitelinkAssetRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 40; break; } // case 322 case 330: { input.readMessage( getCallAssetRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 41; break; } // case 330 case 338: { input.readMessage( getShoppingAddAgeGroupRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 42; break; } // case 338 case 346: { input.readMessage( getShoppingAddColorRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 43; break; } // case 346 case 354: { input.readMessage( getShoppingAddGenderRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 44; break; } // case 354 case 362: { input.readMessage( getShoppingAddGtinRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 45; break; } // case 362 case 370: { input.readMessage( getShoppingAddMoreIdentifiersRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 46; break; } // case 370 case 378: { input.readMessage( getShoppingAddSizeRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 47; break; } // case 378 case 386: { input.readMessage( getShoppingAddProductsToCampaignRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 48; break; } // case 386 case 394: { input.readMessage( getShoppingFixDisapprovedProductsRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 49; break; } // case 394 case 402: { input.readMessage( getShoppingTargetAllOffersRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 50; break; } // case 402 case 410: { input.readMessage( getShoppingFixSuspendedMerchantCenterAccountRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 51; break; } // case 410 case 418: { input.readMessage( getShoppingFixMerchantCenterAccountSuspensionWarningRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 52; break; } // case 418 case 426: { input.readMessage( getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 53; break; } // case 426 case 434: { input.readMessage( getDynamicImageExtensionOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 54; break; } // case 434 case 442: { input.readMessage( getRaiseTargetCpaRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 55; break; } // case 442 case 450: { input.readMessage( getLowerTargetRoasRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 56; break; } // case 450 case 458: { input.readMessage( getPerformanceMaxOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 57; break; } // case 458 case 466: { input.readMessage( getImprovePerformanceMaxAdStrengthRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 58; break; } // case 466 case 474: { input.readMessage( getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 59; break; } // case 474 case 482: { input.readMessage( getForecastingSetTargetCpaRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 60; break; } // case 482 case 490: { input.readMessage( getSetTargetCpaRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 61; break; } // case 490 case 498: { input.readMessage( getSetTargetRoasRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 62; break; } // case 498 case 506: { input.readMessage( getMaximizeConversionValueOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 63; break; } // case 506 case 514: { input.readMessage( getImproveGoogleTagCoverageRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 64; break; } // case 514 case 522: { input.readMessage( getPerformanceMaxFinalUrlOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 65; break; } // case 522 case 530: { input.readMessage( getRefreshCustomerMatchListRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 66; break; } // case 530 case 538: { input.readMessage( getCustomAudienceOptInRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 67; break; } // case 538 case 546: { input.readMessage( getLeadFormAssetRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 68; break; } // case 546 case 554: { input.readMessage( getImproveDemandGenAdStrengthRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 69; break; } // case 554 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 recommendationCase_ = 0; private java.lang.Object recommendation_; public RecommendationCase getRecommendationCase() { return RecommendationCase.forNumber( recommendationCase_); } public Builder clearRecommendation() { recommendationCase_ = 0; recommendation_ = null; onChanged(); return this; } private int bitField0_; private int bitField1_; private java.lang.Object resourceName_ = ""; /** *
     * Immutable. The resource name of the recommendation.
     *
     * `customers/{customer_id}/recommendations/{recommendation_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 recommendation.
     *
     * `customers/{customer_id}/recommendations/{recommendation_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 recommendation.
     *
     * `customers/{customer_id}/recommendations/{recommendation_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 recommendation.
     *
     * `customers/{customer_id}/recommendations/{recommendation_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 recommendation.
     *
     * `customers/{customer_id}/recommendations/{recommendation_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 int type_ = 0; /** *
     * Output only. The type of recommendation.
     * 
* * .google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.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 recommendation.
     * 
* * .google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.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_ |= 0x00000002; onChanged(); return this; } /** *
     * Output only. The type of recommendation.
     * 
* * .google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType getType() { com.google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType result = com.google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType.forNumber(type_); return result == null ? com.google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType.UNRECOGNIZED : result; } /** *
     * Output only. The type of recommendation.
     * 
* * .google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The type of recommendation.
     * 
* * .google.ads.googleads.v16.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } private com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder> impactBuilder_; /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impact field is set. */ public boolean hasImpact() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact() { if (impactBuilder_ == null) { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } else { return impactBuilder_.getMessage(); } } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (value == null) { throw new NullPointerException(); } impact_ = value; } else { impactBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact( com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder builderForValue) { if (impactBuilder_ == null) { impact_ = builderForValue.build(); } else { impactBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeImpact(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && impact_ != null && impact_ != com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance()) { getImpactBuilder().mergeFrom(value); } else { impact_ = value; } } else { impactBuilder_.mergeFrom(value); } if (impact_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearImpact() { bitField0_ = (bitField0_ & ~0x00000004); impact_ = null; if (impactBuilder_ != null) { impactBuilder_.dispose(); impactBuilder_ = null; } onChanged(); return this; } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder getImpactBuilder() { bitField0_ |= 0x00000004; onChanged(); return getImpactFieldBuilder().getBuilder(); } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { if (impactBuilder_ != null) { return impactBuilder_.getMessageOrBuilder(); } else { return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder> getImpactFieldBuilder() { if (impactBuilder_ == null) { impactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder>( getImpact(), getParentForChildren(), isClean()); impact_ = null; } return impactBuilder_; } private java.lang.Object campaignBudget_ = ""; /** *
     * Output only. The budget targeted by this recommendation. This will be set
     * only when the recommendation affects a single campaign budget.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MARGINAL_ROI_CAMPAIGN_BUDGET,
     * MOVE_UNUSED_BUDGET
     * 
* * optional string campaign_budget = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the campaignBudget field is set. */ public boolean hasCampaignBudget() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Output only. The budget targeted by this recommendation. This will be set
     * only when the recommendation affects a single campaign budget.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MARGINAL_ROI_CAMPAIGN_BUDGET,
     * MOVE_UNUSED_BUDGET
     * 
* * optional string campaign_budget = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The campaignBudget. */ public java.lang.String getCampaignBudget() { java.lang.Object ref = campaignBudget_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); campaignBudget_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The budget targeted by this recommendation. This will be set
     * only when the recommendation affects a single campaign budget.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MARGINAL_ROI_CAMPAIGN_BUDGET,
     * MOVE_UNUSED_BUDGET
     * 
* * optional string campaign_budget = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for campaignBudget. */ public com.google.protobuf.ByteString getCampaignBudgetBytes() { java.lang.Object ref = campaignBudget_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaignBudget_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The budget targeted by this recommendation. This will be set
     * only when the recommendation affects a single campaign budget.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MARGINAL_ROI_CAMPAIGN_BUDGET,
     * MOVE_UNUSED_BUDGET
     * 
* * optional string campaign_budget = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The campaignBudget to set. * @return This builder for chaining. */ public Builder setCampaignBudget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } campaignBudget_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Output only. The budget targeted by this recommendation. This will be set
     * only when the recommendation affects a single campaign budget.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MARGINAL_ROI_CAMPAIGN_BUDGET,
     * MOVE_UNUSED_BUDGET
     * 
* * optional string campaign_budget = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCampaignBudget() { campaignBudget_ = getDefaultInstance().getCampaignBudget(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * Output only. The budget targeted by this recommendation. This will be set
     * only when the recommendation affects a single campaign budget.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MARGINAL_ROI_CAMPAIGN_BUDGET,
     * MOVE_UNUSED_BUDGET
     * 
* * optional string campaign_budget = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for campaignBudget to set. * @return This builder for chaining. */ public Builder setCampaignBudgetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); campaignBudget_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object campaign_ = ""; /** *
     * Output only. The campaign targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN,
     * USE_BROAD_MATCH_KEYWORD, KEYWORD, KEYWORD_MATCH_TYPE,
     * UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX, MAXIMIZE_CLICKS_OPT_IN,
     * MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION,
     * TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD,
     * UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX,
     * RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS,
     * SHOPPING_ADD_AGE_GROUP, SHOPPING_ADD_COLOR, SHOPPING_ADD_GENDER,
     * SHOPPING_ADD_SIZE, SHOPPING_ADD_GTIN, SHOPPING_ADD_MORE_IDENTIFIERS,
     * SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN, SHOPPING_FIX_DISAPPROVED_PRODUCTS,
     * SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX,
     * DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, LOWER_TARGET_ROAS,
     * FORECASTING_SET_TARGET_CPA,
     * SET_TARGET_CPA, SET_TARGET_ROAS, MAXIMIZE_CONVERSION_VALUE_OPT_IN,
     * IMPROVE_GOOGLE_TAG_COVERAGE, PERFORMANCE_MAX_FINAL_URL_OPT_IN
     * 
* * optional string campaign = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the campaign field is set. */ public boolean hasCampaign() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Output only. The campaign targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN,
     * USE_BROAD_MATCH_KEYWORD, KEYWORD, KEYWORD_MATCH_TYPE,
     * UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX, MAXIMIZE_CLICKS_OPT_IN,
     * MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION,
     * TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD,
     * UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX,
     * RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS,
     * SHOPPING_ADD_AGE_GROUP, SHOPPING_ADD_COLOR, SHOPPING_ADD_GENDER,
     * SHOPPING_ADD_SIZE, SHOPPING_ADD_GTIN, SHOPPING_ADD_MORE_IDENTIFIERS,
     * SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN, SHOPPING_FIX_DISAPPROVED_PRODUCTS,
     * SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX,
     * DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, LOWER_TARGET_ROAS,
     * FORECASTING_SET_TARGET_CPA,
     * SET_TARGET_CPA, SET_TARGET_ROAS, MAXIMIZE_CONVERSION_VALUE_OPT_IN,
     * IMPROVE_GOOGLE_TAG_COVERAGE, PERFORMANCE_MAX_FINAL_URL_OPT_IN
     * 
* * optional string campaign = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The campaign. */ public java.lang.String getCampaign() { java.lang.Object ref = campaign_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); campaign_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The campaign targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN,
     * USE_BROAD_MATCH_KEYWORD, KEYWORD, KEYWORD_MATCH_TYPE,
     * UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX, MAXIMIZE_CLICKS_OPT_IN,
     * MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION,
     * TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD,
     * UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX,
     * RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS,
     * SHOPPING_ADD_AGE_GROUP, SHOPPING_ADD_COLOR, SHOPPING_ADD_GENDER,
     * SHOPPING_ADD_SIZE, SHOPPING_ADD_GTIN, SHOPPING_ADD_MORE_IDENTIFIERS,
     * SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN, SHOPPING_FIX_DISAPPROVED_PRODUCTS,
     * SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX,
     * DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, LOWER_TARGET_ROAS,
     * FORECASTING_SET_TARGET_CPA,
     * SET_TARGET_CPA, SET_TARGET_ROAS, MAXIMIZE_CONVERSION_VALUE_OPT_IN,
     * IMPROVE_GOOGLE_TAG_COVERAGE, PERFORMANCE_MAX_FINAL_URL_OPT_IN
     * 
* * optional string campaign = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for campaign. */ public com.google.protobuf.ByteString getCampaignBytes() { java.lang.Object ref = campaign_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); campaign_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The campaign targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN,
     * USE_BROAD_MATCH_KEYWORD, KEYWORD, KEYWORD_MATCH_TYPE,
     * UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX, MAXIMIZE_CLICKS_OPT_IN,
     * MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION,
     * TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD,
     * UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX,
     * RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS,
     * SHOPPING_ADD_AGE_GROUP, SHOPPING_ADD_COLOR, SHOPPING_ADD_GENDER,
     * SHOPPING_ADD_SIZE, SHOPPING_ADD_GTIN, SHOPPING_ADD_MORE_IDENTIFIERS,
     * SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN, SHOPPING_FIX_DISAPPROVED_PRODUCTS,
     * SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX,
     * DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, LOWER_TARGET_ROAS,
     * FORECASTING_SET_TARGET_CPA,
     * SET_TARGET_CPA, SET_TARGET_ROAS, MAXIMIZE_CONVERSION_VALUE_OPT_IN,
     * IMPROVE_GOOGLE_TAG_COVERAGE, PERFORMANCE_MAX_FINAL_URL_OPT_IN
     * 
* * optional string campaign = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The campaign to set. * @return This builder for chaining. */ public Builder setCampaign( java.lang.String value) { if (value == null) { throw new NullPointerException(); } campaign_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Output only. The campaign targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN,
     * USE_BROAD_MATCH_KEYWORD, KEYWORD, KEYWORD_MATCH_TYPE,
     * UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX, MAXIMIZE_CLICKS_OPT_IN,
     * MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION,
     * TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD,
     * UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX,
     * RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS,
     * SHOPPING_ADD_AGE_GROUP, SHOPPING_ADD_COLOR, SHOPPING_ADD_GENDER,
     * SHOPPING_ADD_SIZE, SHOPPING_ADD_GTIN, SHOPPING_ADD_MORE_IDENTIFIERS,
     * SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN, SHOPPING_FIX_DISAPPROVED_PRODUCTS,
     * SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX,
     * DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, LOWER_TARGET_ROAS,
     * FORECASTING_SET_TARGET_CPA,
     * SET_TARGET_CPA, SET_TARGET_ROAS, MAXIMIZE_CONVERSION_VALUE_OPT_IN,
     * IMPROVE_GOOGLE_TAG_COVERAGE, PERFORMANCE_MAX_FINAL_URL_OPT_IN
     * 
* * optional string campaign = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCampaign() { campaign_ = getDefaultInstance().getCampaign(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Output only. The campaign targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN,
     * USE_BROAD_MATCH_KEYWORD, KEYWORD, KEYWORD_MATCH_TYPE,
     * UPGRADE_LOCAL_CAMPAIGN_TO_PERFORMANCE_MAX, MAXIMIZE_CLICKS_OPT_IN,
     * MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION,
     * TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD,
     * UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX,
     * RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS,
     * SHOPPING_ADD_AGE_GROUP, SHOPPING_ADD_COLOR, SHOPPING_ADD_GENDER,
     * SHOPPING_ADD_SIZE, SHOPPING_ADD_GTIN, SHOPPING_ADD_MORE_IDENTIFIERS,
     * SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN, SHOPPING_FIX_DISAPPROVED_PRODUCTS,
     * SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX,
     * DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, LOWER_TARGET_ROAS,
     * FORECASTING_SET_TARGET_CPA,
     * SET_TARGET_CPA, SET_TARGET_ROAS, MAXIMIZE_CONVERSION_VALUE_OPT_IN,
     * IMPROVE_GOOGLE_TAG_COVERAGE, PERFORMANCE_MAX_FINAL_URL_OPT_IN
     * 
* * optional string campaign = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for campaign to set. * @return This builder for chaining. */ public Builder setCampaignBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); campaign_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object adGroup_ = ""; /** *
     * Output only. The ad group targeted by this recommendation. This will be set
     * only when the recommendation affects a single ad group.
     *
     * This field will be set for the following recommendation types:
     * KEYWORD, OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET, TEXT_AD
     * 
* * optional string ad_group = 26 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the adGroup field is set. */ public boolean hasAdGroup() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Output only. The ad group targeted by this recommendation. This will be set
     * only when the recommendation affects a single ad group.
     *
     * This field will be set for the following recommendation types:
     * KEYWORD, OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET, TEXT_AD
     * 
* * optional string ad_group = 26 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** *
     * Output only. The ad group targeted by this recommendation. This will be set
     * only when the recommendation affects a single ad group.
     *
     * This field will be set for the following recommendation types:
     * KEYWORD, OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET, TEXT_AD
     * 
* * optional string ad_group = 26 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** *
     * Output only. The ad group targeted by this recommendation. This will be set
     * only when the recommendation affects a single ad group.
     *
     * This field will be set for the following recommendation types:
     * KEYWORD, OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET, TEXT_AD
     * 
* * optional string ad_group = 26 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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(); } adGroup_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Output only. The ad group targeted by this recommendation. This will be set
     * only when the recommendation affects a single ad group.
     *
     * This field will be set for the following recommendation types:
     * KEYWORD, OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET, TEXT_AD
     * 
* * optional string ad_group = 26 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearAdGroup() { adGroup_ = getDefaultInstance().getAdGroup(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Output only. The ad group targeted by this recommendation. This will be set
     * only when the recommendation affects a single ad group.
     *
     * This field will be set for the following recommendation types:
     * KEYWORD, OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET, TEXT_AD
     * 
* * optional string ad_group = 26 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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); adGroup_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private boolean dismissed_ ; /** *
     * Output only. Whether the recommendation is dismissed or not.
     * 
* * optional bool dismissed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dismissed field is set. */ @java.lang.Override public boolean hasDismissed() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Output only. Whether the recommendation is dismissed or not.
     * 
* * optional bool dismissed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dismissed. */ @java.lang.Override public boolean getDismissed() { return dismissed_; } /** *
     * Output only. Whether the recommendation is dismissed or not.
     * 
* * optional bool dismissed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The dismissed to set. * @return This builder for chaining. */ public Builder setDismissed(boolean value) { dismissed_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Output only. Whether the recommendation is dismissed or not.
     * 
* * optional bool dismissed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDismissed() { bitField0_ = (bitField0_ & ~0x00000040); dismissed_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList campaigns_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCampaignsIsMutable() { if (!campaigns_.isModifiable()) { campaigns_ = new com.google.protobuf.LazyStringArrayList(campaigns_); } bitField0_ |= 0x00000080; } /** *
     * Output only. The campaigns targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
     * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
     * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the campaigns. */ public com.google.protobuf.ProtocolStringList getCampaignsList() { campaigns_.makeImmutable(); return campaigns_; } /** *
     * Output only. The campaigns targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
     * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
     * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of campaigns. */ public int getCampaignsCount() { return campaigns_.size(); } /** *
     * Output only. The campaigns targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
     * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
     * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The campaigns at the given index. */ public java.lang.String getCampaigns(int index) { return campaigns_.get(index); } /** *
     * Output only. The campaigns targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
     * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
     * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the campaigns at the given index. */ public com.google.protobuf.ByteString getCampaignsBytes(int index) { return campaigns_.getByteString(index); } /** *
     * Output only. The campaigns targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
     * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
     * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The campaigns to set. * @return This builder for chaining. */ public Builder setCampaigns( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCampaignsIsMutable(); campaigns_.set(index, value); bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Output only. The campaigns targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
     * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
     * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The campaigns to add. * @return This builder for chaining. */ public Builder addCampaigns( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCampaignsIsMutable(); campaigns_.add(value); bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Output only. The campaigns targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
     * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
     * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param values The campaigns to add. * @return This builder for chaining. */ public Builder addAllCampaigns( java.lang.Iterable values) { ensureCampaignsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, campaigns_); bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Output only. The campaigns targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
     * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
     * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCampaigns() { campaigns_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000080);; onChanged(); return this; } /** *
     * Output only. The campaigns targeted by this recommendation.
     *
     * This field will be set for the following recommendation types:
     * CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET,
     * MARGINAL_ROI_CAMPAIGN_BUDGET and MOVE_UNUSED_BUDGET
     * 
* * repeated string campaigns = 38 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes of the campaigns to add. * @return This builder for chaining. */ public Builder addCampaignsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCampaignsIsMutable(); campaigns_.add(value); bitField0_ |= 0x00000080; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> campaignBudgetRecommendationBuilder_; /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the campaignBudgetRecommendation field is set. */ @java.lang.Override public boolean hasCampaignBudgetRecommendation() { return recommendationCase_ == 4; } /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignBudgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getCampaignBudgetRecommendation() { if (campaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 4) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 4) { return campaignBudgetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCampaignBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation value) { if (campaignBudgetRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { campaignBudgetRecommendationBuilder_.setMessage(value); } recommendationCase_ = 4; return this; } /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCampaignBudgetRecommendation( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder builderForValue) { if (campaignBudgetRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { campaignBudgetRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 4; return this; } /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCampaignBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation value) { if (campaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 4 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 4) { campaignBudgetRecommendationBuilder_.mergeFrom(value); } else { campaignBudgetRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 4; return this; } /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCampaignBudgetRecommendation() { if (campaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 4) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 4) { recommendationCase_ = 0; recommendation_ = null; } campaignBudgetRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder getCampaignBudgetRecommendationBuilder() { return getCampaignBudgetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getCampaignBudgetRecommendationOrBuilder() { if ((recommendationCase_ == 4) && (campaignBudgetRecommendationBuilder_ != null)) { return campaignBudgetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 4) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> getCampaignBudgetRecommendationFieldBuilder() { if (campaignBudgetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 4)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } campaignBudgetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 4; onChanged(); return campaignBudgetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> forecastingCampaignBudgetRecommendationBuilder_; /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the forecastingCampaignBudgetRecommendation field is set. */ @java.lang.Override public boolean hasForecastingCampaignBudgetRecommendation() { return recommendationCase_ == 22; } /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The forecastingCampaignBudgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getForecastingCampaignBudgetRecommendation() { if (forecastingCampaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 22) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 22) { return forecastingCampaignBudgetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setForecastingCampaignBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation value) { if (forecastingCampaignBudgetRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { forecastingCampaignBudgetRecommendationBuilder_.setMessage(value); } recommendationCase_ = 22; return this; } /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setForecastingCampaignBudgetRecommendation( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder builderForValue) { if (forecastingCampaignBudgetRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { forecastingCampaignBudgetRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 22; return this; } /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeForecastingCampaignBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation value) { if (forecastingCampaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 22 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 22) { forecastingCampaignBudgetRecommendationBuilder_.mergeFrom(value); } else { forecastingCampaignBudgetRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 22; return this; } /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearForecastingCampaignBudgetRecommendation() { if (forecastingCampaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 22) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 22) { recommendationCase_ = 0; recommendation_ = null; } forecastingCampaignBudgetRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder getForecastingCampaignBudgetRecommendationBuilder() { return getForecastingCampaignBudgetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getForecastingCampaignBudgetRecommendationOrBuilder() { if ((recommendationCase_ == 22) && (forecastingCampaignBudgetRecommendationBuilder_ != null)) { return forecastingCampaignBudgetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 22) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> getForecastingCampaignBudgetRecommendationFieldBuilder() { if (forecastingCampaignBudgetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 22)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } forecastingCampaignBudgetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 22; onChanged(); return forecastingCampaignBudgetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendationOrBuilder> keywordRecommendationBuilder_; /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keywordRecommendation field is set. */ @java.lang.Override public boolean hasKeywordRecommendation() { return recommendationCase_ == 8; } /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keywordRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation getKeywordRecommendation() { if (keywordRecommendationBuilder_ == null) { if (recommendationCase_ == 8) { return (com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 8) { return keywordRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } } /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeywordRecommendation(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation value) { if (keywordRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { keywordRecommendationBuilder_.setMessage(value); } recommendationCase_ = 8; return this; } /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeywordRecommendation( com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.Builder builderForValue) { if (keywordRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { keywordRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 8; return this; } /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeKeywordRecommendation(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation value) { if (keywordRecommendationBuilder_ == null) { if (recommendationCase_ == 8 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 8) { keywordRecommendationBuilder_.mergeFrom(value); } else { keywordRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 8; return this; } /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearKeywordRecommendation() { if (keywordRecommendationBuilder_ == null) { if (recommendationCase_ == 8) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 8) { recommendationCase_ = 0; recommendation_ = null; } keywordRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.Builder getKeywordRecommendationBuilder() { return getKeywordRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendationOrBuilder getKeywordRecommendationOrBuilder() { if ((recommendationCase_ == 8) && (keywordRecommendationBuilder_ != null)) { return keywordRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 8) { return (com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } } /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendationOrBuilder> getKeywordRecommendationFieldBuilder() { if (keywordRecommendationBuilder_ == null) { if (!(recommendationCase_ == 8)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } keywordRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 8; onChanged(); return keywordRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation, com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendationOrBuilder> textAdRecommendationBuilder_; /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the textAdRecommendation field is set. */ @java.lang.Override public boolean hasTextAdRecommendation() { return recommendationCase_ == 9; } /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The textAdRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation getTextAdRecommendation() { if (textAdRecommendationBuilder_ == null) { if (recommendationCase_ == 9) { return (com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 9) { return textAdRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } } /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTextAdRecommendation(com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation value) { if (textAdRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { textAdRecommendationBuilder_.setMessage(value); } recommendationCase_ = 9; return this; } /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTextAdRecommendation( com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.Builder builderForValue) { if (textAdRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { textAdRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 9; return this; } /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTextAdRecommendation(com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation value) { if (textAdRecommendationBuilder_ == null) { if (recommendationCase_ == 9 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 9) { textAdRecommendationBuilder_.mergeFrom(value); } else { textAdRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 9; return this; } /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTextAdRecommendation() { if (textAdRecommendationBuilder_ == null) { if (recommendationCase_ == 9) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 9) { recommendationCase_ = 0; recommendation_ = null; } textAdRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.Builder getTextAdRecommendationBuilder() { return getTextAdRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendationOrBuilder getTextAdRecommendationOrBuilder() { if ((recommendationCase_ == 9) && (textAdRecommendationBuilder_ != null)) { return textAdRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 9) { return (com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } } /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation, com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendationOrBuilder> getTextAdRecommendationFieldBuilder() { if (textAdRecommendationBuilder_ == null) { if (!(recommendationCase_ == 9)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } textAdRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation, com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 9; onChanged(); return textAdRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder> targetCpaOptInRecommendationBuilder_; /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetCpaOptInRecommendation field is set. */ @java.lang.Override public boolean hasTargetCpaOptInRecommendation() { return recommendationCase_ == 10; } /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetCpaOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation getTargetCpaOptInRecommendation() { if (targetCpaOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 10) { return (com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 10) { return targetCpaOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetCpaOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation value) { if (targetCpaOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { targetCpaOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 10; return this; } /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetCpaOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.Builder builderForValue) { if (targetCpaOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { targetCpaOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 10; return this; } /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTargetCpaOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation value) { if (targetCpaOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 10 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 10) { targetCpaOptInRecommendationBuilder_.mergeFrom(value); } else { targetCpaOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 10; return this; } /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTargetCpaOptInRecommendation() { if (targetCpaOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 10) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 10) { recommendationCase_ = 0; recommendation_ = null; } targetCpaOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.Builder getTargetCpaOptInRecommendationBuilder() { return getTargetCpaOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder getTargetCpaOptInRecommendationOrBuilder() { if ((recommendationCase_ == 10) && (targetCpaOptInRecommendationBuilder_ != null)) { return targetCpaOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 10) { return (com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder> getTargetCpaOptInRecommendationFieldBuilder() { if (targetCpaOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 10)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } targetCpaOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 10; onChanged(); return targetCpaOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder> maximizeConversionsOptInRecommendationBuilder_; /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maximizeConversionsOptInRecommendation field is set. */ @java.lang.Override public boolean hasMaximizeConversionsOptInRecommendation() { return recommendationCase_ == 11; } /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maximizeConversionsOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation getMaximizeConversionsOptInRecommendation() { if (maximizeConversionsOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 11) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 11) { return maximizeConversionsOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaximizeConversionsOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation value) { if (maximizeConversionsOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { maximizeConversionsOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 11; return this; } /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaximizeConversionsOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder builderForValue) { if (maximizeConversionsOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { maximizeConversionsOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 11; return this; } /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMaximizeConversionsOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation value) { if (maximizeConversionsOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 11 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 11) { maximizeConversionsOptInRecommendationBuilder_.mergeFrom(value); } else { maximizeConversionsOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 11; return this; } /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMaximizeConversionsOptInRecommendation() { if (maximizeConversionsOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 11) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 11) { recommendationCase_ = 0; recommendation_ = null; } maximizeConversionsOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder getMaximizeConversionsOptInRecommendationBuilder() { return getMaximizeConversionsOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder getMaximizeConversionsOptInRecommendationOrBuilder() { if ((recommendationCase_ == 11) && (maximizeConversionsOptInRecommendationBuilder_ != null)) { return maximizeConversionsOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 11) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder> getMaximizeConversionsOptInRecommendationFieldBuilder() { if (maximizeConversionsOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 11)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } maximizeConversionsOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 11; onChanged(); return maximizeConversionsOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder> enhancedCpcOptInRecommendationBuilder_; /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the enhancedCpcOptInRecommendation field is set. */ @java.lang.Override public boolean hasEnhancedCpcOptInRecommendation() { return recommendationCase_ == 12; } /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enhancedCpcOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation getEnhancedCpcOptInRecommendation() { if (enhancedCpcOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 12) { return (com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 12) { return enhancedCpcOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEnhancedCpcOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation value) { if (enhancedCpcOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { enhancedCpcOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 12; return this; } /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEnhancedCpcOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder builderForValue) { if (enhancedCpcOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { enhancedCpcOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 12; return this; } /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEnhancedCpcOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation value) { if (enhancedCpcOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 12 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 12) { enhancedCpcOptInRecommendationBuilder_.mergeFrom(value); } else { enhancedCpcOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 12; return this; } /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEnhancedCpcOptInRecommendation() { if (enhancedCpcOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 12) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 12) { recommendationCase_ = 0; recommendation_ = null; } enhancedCpcOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder getEnhancedCpcOptInRecommendationBuilder() { return getEnhancedCpcOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder getEnhancedCpcOptInRecommendationOrBuilder() { if ((recommendationCase_ == 12) && (enhancedCpcOptInRecommendationBuilder_ != null)) { return enhancedCpcOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 12) { return (com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder> getEnhancedCpcOptInRecommendationFieldBuilder() { if (enhancedCpcOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 12)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } enhancedCpcOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 12; onChanged(); return enhancedCpcOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder> searchPartnersOptInRecommendationBuilder_; /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the searchPartnersOptInRecommendation field is set. */ @java.lang.Override public boolean hasSearchPartnersOptInRecommendation() { return recommendationCase_ == 14; } /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The searchPartnersOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation getSearchPartnersOptInRecommendation() { if (searchPartnersOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 14) { return (com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 14) { return searchPartnersOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSearchPartnersOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation value) { if (searchPartnersOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { searchPartnersOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 14; return this; } /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSearchPartnersOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.Builder builderForValue) { if (searchPartnersOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { searchPartnersOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 14; return this; } /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSearchPartnersOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation value) { if (searchPartnersOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 14 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 14) { searchPartnersOptInRecommendationBuilder_.mergeFrom(value); } else { searchPartnersOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 14; return this; } /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSearchPartnersOptInRecommendation() { if (searchPartnersOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 14) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 14) { recommendationCase_ = 0; recommendation_ = null; } searchPartnersOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.Builder getSearchPartnersOptInRecommendationBuilder() { return getSearchPartnersOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder getSearchPartnersOptInRecommendationOrBuilder() { if ((recommendationCase_ == 14) && (searchPartnersOptInRecommendationBuilder_ != null)) { return searchPartnersOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 14) { return (com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder> getSearchPartnersOptInRecommendationFieldBuilder() { if (searchPartnersOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 14)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } searchPartnersOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 14; onChanged(); return searchPartnersOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder> maximizeClicksOptInRecommendationBuilder_; /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maximizeClicksOptInRecommendation field is set. */ @java.lang.Override public boolean hasMaximizeClicksOptInRecommendation() { return recommendationCase_ == 15; } /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maximizeClicksOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation getMaximizeClicksOptInRecommendation() { if (maximizeClicksOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 15) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 15) { return maximizeClicksOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaximizeClicksOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation value) { if (maximizeClicksOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { maximizeClicksOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 15; return this; } /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaximizeClicksOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder builderForValue) { if (maximizeClicksOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { maximizeClicksOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 15; return this; } /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMaximizeClicksOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation value) { if (maximizeClicksOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 15 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 15) { maximizeClicksOptInRecommendationBuilder_.mergeFrom(value); } else { maximizeClicksOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 15; return this; } /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMaximizeClicksOptInRecommendation() { if (maximizeClicksOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 15) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 15) { recommendationCase_ = 0; recommendation_ = null; } maximizeClicksOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder getMaximizeClicksOptInRecommendationBuilder() { return getMaximizeClicksOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder getMaximizeClicksOptInRecommendationOrBuilder() { if ((recommendationCase_ == 15) && (maximizeClicksOptInRecommendationBuilder_ != null)) { return maximizeClicksOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 15) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder> getMaximizeClicksOptInRecommendationFieldBuilder() { if (maximizeClicksOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 15)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } maximizeClicksOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 15; onChanged(); return maximizeClicksOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation, com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder> optimizeAdRotationRecommendationBuilder_; /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the optimizeAdRotationRecommendation field is set. */ @java.lang.Override public boolean hasOptimizeAdRotationRecommendation() { return recommendationCase_ == 16; } /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The optimizeAdRotationRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation getOptimizeAdRotationRecommendation() { if (optimizeAdRotationRecommendationBuilder_ == null) { if (recommendationCase_ == 16) { return (com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 16) { return optimizeAdRotationRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOptimizeAdRotationRecommendation(com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation value) { if (optimizeAdRotationRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { optimizeAdRotationRecommendationBuilder_.setMessage(value); } recommendationCase_ = 16; return this; } /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOptimizeAdRotationRecommendation( com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.Builder builderForValue) { if (optimizeAdRotationRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { optimizeAdRotationRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 16; return this; } /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeOptimizeAdRotationRecommendation(com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation value) { if (optimizeAdRotationRecommendationBuilder_ == null) { if (recommendationCase_ == 16 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 16) { optimizeAdRotationRecommendationBuilder_.mergeFrom(value); } else { optimizeAdRotationRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 16; return this; } /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearOptimizeAdRotationRecommendation() { if (optimizeAdRotationRecommendationBuilder_ == null) { if (recommendationCase_ == 16) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 16) { recommendationCase_ = 0; recommendation_ = null; } optimizeAdRotationRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.Builder getOptimizeAdRotationRecommendationBuilder() { return getOptimizeAdRotationRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder getOptimizeAdRotationRecommendationOrBuilder() { if ((recommendationCase_ == 16) && (optimizeAdRotationRecommendationBuilder_ != null)) { return optimizeAdRotationRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 16) { return (com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation, com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder> getOptimizeAdRotationRecommendationFieldBuilder() { if (optimizeAdRotationRecommendationBuilder_ == null) { if (!(recommendationCase_ == 16)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } optimizeAdRotationRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation, com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 16; onChanged(); return optimizeAdRotationRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder> keywordMatchTypeRecommendationBuilder_; /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keywordMatchTypeRecommendation field is set. */ @java.lang.Override public boolean hasKeywordMatchTypeRecommendation() { return recommendationCase_ == 20; } /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keywordMatchTypeRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation getKeywordMatchTypeRecommendation() { if (keywordMatchTypeRecommendationBuilder_ == null) { if (recommendationCase_ == 20) { return (com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 20) { return keywordMatchTypeRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeywordMatchTypeRecommendation(com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation value) { if (keywordMatchTypeRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { keywordMatchTypeRecommendationBuilder_.setMessage(value); } recommendationCase_ = 20; return this; } /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeywordMatchTypeRecommendation( com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.Builder builderForValue) { if (keywordMatchTypeRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { keywordMatchTypeRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 20; return this; } /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeKeywordMatchTypeRecommendation(com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation value) { if (keywordMatchTypeRecommendationBuilder_ == null) { if (recommendationCase_ == 20 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 20) { keywordMatchTypeRecommendationBuilder_.mergeFrom(value); } else { keywordMatchTypeRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 20; return this; } /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearKeywordMatchTypeRecommendation() { if (keywordMatchTypeRecommendationBuilder_ == null) { if (recommendationCase_ == 20) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 20) { recommendationCase_ = 0; recommendation_ = null; } keywordMatchTypeRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.Builder getKeywordMatchTypeRecommendationBuilder() { return getKeywordMatchTypeRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder getKeywordMatchTypeRecommendationOrBuilder() { if ((recommendationCase_ == 20) && (keywordMatchTypeRecommendationBuilder_ != null)) { return keywordMatchTypeRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 20) { return (com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder> getKeywordMatchTypeRecommendationFieldBuilder() { if (keywordMatchTypeRecommendationBuilder_ == null) { if (!(recommendationCase_ == 20)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } keywordMatchTypeRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 20; onChanged(); return keywordMatchTypeRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder> moveUnusedBudgetRecommendationBuilder_; /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the moveUnusedBudgetRecommendation field is set. */ @java.lang.Override public boolean hasMoveUnusedBudgetRecommendation() { return recommendationCase_ == 21; } /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The moveUnusedBudgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation getMoveUnusedBudgetRecommendation() { if (moveUnusedBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 21) { return (com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 21) { return moveUnusedBudgetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMoveUnusedBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation value) { if (moveUnusedBudgetRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { moveUnusedBudgetRecommendationBuilder_.setMessage(value); } recommendationCase_ = 21; return this; } /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMoveUnusedBudgetRecommendation( com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder builderForValue) { if (moveUnusedBudgetRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { moveUnusedBudgetRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 21; return this; } /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMoveUnusedBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation value) { if (moveUnusedBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 21 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 21) { moveUnusedBudgetRecommendationBuilder_.mergeFrom(value); } else { moveUnusedBudgetRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 21; return this; } /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMoveUnusedBudgetRecommendation() { if (moveUnusedBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 21) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 21) { recommendationCase_ = 0; recommendation_ = null; } moveUnusedBudgetRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder getMoveUnusedBudgetRecommendationBuilder() { return getMoveUnusedBudgetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder getMoveUnusedBudgetRecommendationOrBuilder() { if ((recommendationCase_ == 21) && (moveUnusedBudgetRecommendationBuilder_ != null)) { return moveUnusedBudgetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 21) { return (com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder> getMoveUnusedBudgetRecommendationFieldBuilder() { if (moveUnusedBudgetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 21)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } moveUnusedBudgetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 21; onChanged(); return moveUnusedBudgetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder> targetRoasOptInRecommendationBuilder_; /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetRoasOptInRecommendation field is set. */ @java.lang.Override public boolean hasTargetRoasOptInRecommendation() { return recommendationCase_ == 23; } /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetRoasOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation getTargetRoasOptInRecommendation() { if (targetRoasOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 23) { return (com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 23) { return targetRoasOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetRoasOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation value) { if (targetRoasOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { targetRoasOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 23; return this; } /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetRoasOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.Builder builderForValue) { if (targetRoasOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { targetRoasOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 23; return this; } /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTargetRoasOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation value) { if (targetRoasOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 23 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 23) { targetRoasOptInRecommendationBuilder_.mergeFrom(value); } else { targetRoasOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 23; return this; } /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTargetRoasOptInRecommendation() { if (targetRoasOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 23) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 23) { recommendationCase_ = 0; recommendation_ = null; } targetRoasOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.Builder getTargetRoasOptInRecommendationBuilder() { return getTargetRoasOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder getTargetRoasOptInRecommendationOrBuilder() { if ((recommendationCase_ == 23) && (targetRoasOptInRecommendationBuilder_ != null)) { return targetRoasOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 23) { return (com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder> getTargetRoasOptInRecommendationFieldBuilder() { if (targetRoasOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 23)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } targetRoasOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 23; onChanged(); return targetRoasOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder> responsiveSearchAdRecommendationBuilder_; /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the responsiveSearchAdRecommendation field is set. */ @java.lang.Override public boolean hasResponsiveSearchAdRecommendation() { return recommendationCase_ == 28; } /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The responsiveSearchAdRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation getResponsiveSearchAdRecommendation() { if (responsiveSearchAdRecommendationBuilder_ == null) { if (recommendationCase_ == 28) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 28) { return responsiveSearchAdRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } } /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResponsiveSearchAdRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation value) { if (responsiveSearchAdRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { responsiveSearchAdRecommendationBuilder_.setMessage(value); } recommendationCase_ = 28; return this; } /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResponsiveSearchAdRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder builderForValue) { if (responsiveSearchAdRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { responsiveSearchAdRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 28; return this; } /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeResponsiveSearchAdRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation value) { if (responsiveSearchAdRecommendationBuilder_ == null) { if (recommendationCase_ == 28 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 28) { responsiveSearchAdRecommendationBuilder_.mergeFrom(value); } else { responsiveSearchAdRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 28; return this; } /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearResponsiveSearchAdRecommendation() { if (responsiveSearchAdRecommendationBuilder_ == null) { if (recommendationCase_ == 28) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 28) { recommendationCase_ = 0; recommendation_ = null; } responsiveSearchAdRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder getResponsiveSearchAdRecommendationBuilder() { return getResponsiveSearchAdRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder getResponsiveSearchAdRecommendationOrBuilder() { if ((recommendationCase_ == 28) && (responsiveSearchAdRecommendationBuilder_ != null)) { return responsiveSearchAdRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 28) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } } /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder> getResponsiveSearchAdRecommendationFieldBuilder() { if (responsiveSearchAdRecommendationBuilder_ == null) { if (!(recommendationCase_ == 28)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } responsiveSearchAdRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 28; onChanged(); return responsiveSearchAdRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> marginalRoiCampaignBudgetRecommendationBuilder_; /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the marginalRoiCampaignBudgetRecommendation field is set. */ @java.lang.Override public boolean hasMarginalRoiCampaignBudgetRecommendation() { return recommendationCase_ == 29; } /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The marginalRoiCampaignBudgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getMarginalRoiCampaignBudgetRecommendation() { if (marginalRoiCampaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 29) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 29) { return marginalRoiCampaignBudgetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMarginalRoiCampaignBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation value) { if (marginalRoiCampaignBudgetRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { marginalRoiCampaignBudgetRecommendationBuilder_.setMessage(value); } recommendationCase_ = 29; return this; } /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMarginalRoiCampaignBudgetRecommendation( com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder builderForValue) { if (marginalRoiCampaignBudgetRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { marginalRoiCampaignBudgetRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 29; return this; } /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMarginalRoiCampaignBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation value) { if (marginalRoiCampaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 29 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 29) { marginalRoiCampaignBudgetRecommendationBuilder_.mergeFrom(value); } else { marginalRoiCampaignBudgetRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 29; return this; } /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMarginalRoiCampaignBudgetRecommendation() { if (marginalRoiCampaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 29) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 29) { recommendationCase_ = 0; recommendation_ = null; } marginalRoiCampaignBudgetRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder getMarginalRoiCampaignBudgetRecommendationBuilder() { return getMarginalRoiCampaignBudgetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getMarginalRoiCampaignBudgetRecommendationOrBuilder() { if ((recommendationCase_ == 29) && (marginalRoiCampaignBudgetRecommendationBuilder_ != null)) { return marginalRoiCampaignBudgetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 29) { return (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> getMarginalRoiCampaignBudgetRecommendationFieldBuilder() { if (marginalRoiCampaignBudgetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 29)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } marginalRoiCampaignBudgetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 29; onChanged(); return marginalRoiCampaignBudgetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation, com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder> useBroadMatchKeywordRecommendationBuilder_; /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the useBroadMatchKeywordRecommendation field is set. */ @java.lang.Override public boolean hasUseBroadMatchKeywordRecommendation() { return recommendationCase_ == 30; } /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The useBroadMatchKeywordRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation getUseBroadMatchKeywordRecommendation() { if (useBroadMatchKeywordRecommendationBuilder_ == null) { if (recommendationCase_ == 30) { return (com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 30) { return useBroadMatchKeywordRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } } /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUseBroadMatchKeywordRecommendation(com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation value) { if (useBroadMatchKeywordRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { useBroadMatchKeywordRecommendationBuilder_.setMessage(value); } recommendationCase_ = 30; return this; } /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUseBroadMatchKeywordRecommendation( com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder builderForValue) { if (useBroadMatchKeywordRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { useBroadMatchKeywordRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 30; return this; } /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUseBroadMatchKeywordRecommendation(com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation value) { if (useBroadMatchKeywordRecommendationBuilder_ == null) { if (recommendationCase_ == 30 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 30) { useBroadMatchKeywordRecommendationBuilder_.mergeFrom(value); } else { useBroadMatchKeywordRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 30; return this; } /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUseBroadMatchKeywordRecommendation() { if (useBroadMatchKeywordRecommendationBuilder_ == null) { if (recommendationCase_ == 30) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 30) { recommendationCase_ = 0; recommendation_ = null; } useBroadMatchKeywordRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder getUseBroadMatchKeywordRecommendationBuilder() { return getUseBroadMatchKeywordRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder getUseBroadMatchKeywordRecommendationOrBuilder() { if ((recommendationCase_ == 30) && (useBroadMatchKeywordRecommendationBuilder_ != null)) { return useBroadMatchKeywordRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 30) { return (com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } } /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation, com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder> getUseBroadMatchKeywordRecommendationFieldBuilder() { if (useBroadMatchKeywordRecommendationBuilder_ == null) { if (!(recommendationCase_ == 30)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } useBroadMatchKeywordRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation, com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 30; onChanged(); return useBroadMatchKeywordRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder> responsiveSearchAdAssetRecommendationBuilder_; /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the responsiveSearchAdAssetRecommendation field is set. */ @java.lang.Override public boolean hasResponsiveSearchAdAssetRecommendation() { return recommendationCase_ == 31; } /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The responsiveSearchAdAssetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getResponsiveSearchAdAssetRecommendation() { if (responsiveSearchAdAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 31) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 31) { return responsiveSearchAdAssetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResponsiveSearchAdAssetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation value) { if (responsiveSearchAdAssetRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { responsiveSearchAdAssetRecommendationBuilder_.setMessage(value); } recommendationCase_ = 31; return this; } /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResponsiveSearchAdAssetRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder builderForValue) { if (responsiveSearchAdAssetRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { responsiveSearchAdAssetRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 31; return this; } /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeResponsiveSearchAdAssetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation value) { if (responsiveSearchAdAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 31 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 31) { responsiveSearchAdAssetRecommendationBuilder_.mergeFrom(value); } else { responsiveSearchAdAssetRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 31; return this; } /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearResponsiveSearchAdAssetRecommendation() { if (responsiveSearchAdAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 31) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 31) { recommendationCase_ = 0; recommendation_ = null; } responsiveSearchAdAssetRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder getResponsiveSearchAdAssetRecommendationBuilder() { return getResponsiveSearchAdAssetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder getResponsiveSearchAdAssetRecommendationOrBuilder() { if ((recommendationCase_ == 31) && (responsiveSearchAdAssetRecommendationBuilder_ != null)) { return responsiveSearchAdAssetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 31) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder> getResponsiveSearchAdAssetRecommendationFieldBuilder() { if (responsiveSearchAdAssetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 31)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } responsiveSearchAdAssetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 31; onChanged(); return responsiveSearchAdAssetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder> upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_; /** *
     * Output only. The upgrade a Smart Shopping campaign to a Performance Max
     * campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the upgradeSmartShoppingCampaignToPerformanceMaxRecommendation field is set. */ @java.lang.Override public boolean hasUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation() { return recommendationCase_ == 32; } /** *
     * Output only. The upgrade a Smart Shopping campaign to a Performance Max
     * campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The upgradeSmartShoppingCampaignToPerformanceMaxRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation() { if (upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 32) { return (com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 32) { return upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } } /** *
     * Output only. The upgrade a Smart Shopping campaign to a Performance Max
     * campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation(com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation value) { if (upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_.setMessage(value); } recommendationCase_ = 32; return this; } /** *
     * Output only. The upgrade a Smart Shopping campaign to a Performance Max
     * campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation( com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.Builder builderForValue) { if (upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 32; return this; } /** *
     * Output only. The upgrade a Smart Shopping campaign to a Performance Max
     * campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation(com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation value) { if (upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 32 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 32) { upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_.mergeFrom(value); } else { upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 32; return this; } /** *
     * Output only. The upgrade a Smart Shopping campaign to a Performance Max
     * campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpgradeSmartShoppingCampaignToPerformanceMaxRecommendation() { if (upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 32) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 32) { recommendationCase_ = 0; recommendation_ = null; } upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The upgrade a Smart Shopping campaign to a Performance Max
     * campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.Builder getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder() { return getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The upgrade a Smart Shopping campaign to a Performance Max
     * campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder() { if ((recommendationCase_ == 32) && (upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_ != null)) { return upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 32) { return (com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } } /** *
     * Output only. The upgrade a Smart Shopping campaign to a Performance Max
     * campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation upgrade_smart_shopping_campaign_to_performance_max_recommendation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder> getUpgradeSmartShoppingCampaignToPerformanceMaxRecommendationFieldBuilder() { if (upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (!(recommendationCase_ == 32)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 32; onChanged(); return upgradeSmartShoppingCampaignToPerformanceMaxRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder> responsiveSearchAdImproveAdStrengthRecommendationBuilder_; /** *
     * Output only. The responsive search ad improve ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the responsiveSearchAdImproveAdStrengthRecommendation field is set. */ @java.lang.Override public boolean hasResponsiveSearchAdImproveAdStrengthRecommendation() { return recommendationCase_ == 33; } /** *
     * Output only. The responsive search ad improve ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The responsiveSearchAdImproveAdStrengthRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation getResponsiveSearchAdImproveAdStrengthRecommendation() { if (responsiveSearchAdImproveAdStrengthRecommendationBuilder_ == null) { if (recommendationCase_ == 33) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 33) { return responsiveSearchAdImproveAdStrengthRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.getDefaultInstance(); } } /** *
     * Output only. The responsive search ad improve ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResponsiveSearchAdImproveAdStrengthRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation value) { if (responsiveSearchAdImproveAdStrengthRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { responsiveSearchAdImproveAdStrengthRecommendationBuilder_.setMessage(value); } recommendationCase_ = 33; return this; } /** *
     * Output only. The responsive search ad improve ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResponsiveSearchAdImproveAdStrengthRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.Builder builderForValue) { if (responsiveSearchAdImproveAdStrengthRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { responsiveSearchAdImproveAdStrengthRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 33; return this; } /** *
     * Output only. The responsive search ad improve ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeResponsiveSearchAdImproveAdStrengthRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation value) { if (responsiveSearchAdImproveAdStrengthRecommendationBuilder_ == null) { if (recommendationCase_ == 33 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 33) { responsiveSearchAdImproveAdStrengthRecommendationBuilder_.mergeFrom(value); } else { responsiveSearchAdImproveAdStrengthRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 33; return this; } /** *
     * Output only. The responsive search ad improve ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearResponsiveSearchAdImproveAdStrengthRecommendation() { if (responsiveSearchAdImproveAdStrengthRecommendationBuilder_ == null) { if (recommendationCase_ == 33) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 33) { recommendationCase_ = 0; recommendation_ = null; } responsiveSearchAdImproveAdStrengthRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The responsive search ad improve ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.Builder getResponsiveSearchAdImproveAdStrengthRecommendationBuilder() { return getResponsiveSearchAdImproveAdStrengthRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The responsive search ad improve ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder getResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder() { if ((recommendationCase_ == 33) && (responsiveSearchAdImproveAdStrengthRecommendationBuilder_ != null)) { return responsiveSearchAdImproveAdStrengthRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 33) { return (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.getDefaultInstance(); } } /** *
     * Output only. The responsive search ad improve ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation responsive_search_ad_improve_ad_strength_recommendation = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder> getResponsiveSearchAdImproveAdStrengthRecommendationFieldBuilder() { if (responsiveSearchAdImproveAdStrengthRecommendationBuilder_ == null) { if (!(recommendationCase_ == 33)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.getDefaultInstance(); } responsiveSearchAdImproveAdStrengthRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 33; onChanged(); return responsiveSearchAdImproveAdStrengthRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendationOrBuilder> displayExpansionOptInRecommendationBuilder_; /** *
     * Output only. The Display Expansion opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the displayExpansionOptInRecommendation field is set. */ @java.lang.Override public boolean hasDisplayExpansionOptInRecommendation() { return recommendationCase_ == 34; } /** *
     * Output only. The Display Expansion opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The displayExpansionOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation getDisplayExpansionOptInRecommendation() { if (displayExpansionOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 34) { return (com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 34) { return displayExpansionOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Display Expansion opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDisplayExpansionOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation value) { if (displayExpansionOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { displayExpansionOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 34; return this; } /** *
     * Output only. The Display Expansion opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDisplayExpansionOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.Builder builderForValue) { if (displayExpansionOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { displayExpansionOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 34; return this; } /** *
     * Output only. The Display Expansion opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDisplayExpansionOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation value) { if (displayExpansionOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 34 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 34) { displayExpansionOptInRecommendationBuilder_.mergeFrom(value); } else { displayExpansionOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 34; return this; } /** *
     * Output only. The Display Expansion opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDisplayExpansionOptInRecommendation() { if (displayExpansionOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 34) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 34) { recommendationCase_ = 0; recommendation_ = null; } displayExpansionOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The Display Expansion opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.Builder getDisplayExpansionOptInRecommendationBuilder() { return getDisplayExpansionOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Display Expansion opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendationOrBuilder getDisplayExpansionOptInRecommendationOrBuilder() { if ((recommendationCase_ == 34) && (displayExpansionOptInRecommendationBuilder_ != null)) { return displayExpansionOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 34) { return (com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Display Expansion opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation display_expansion_opt_in_recommendation = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendationOrBuilder> getDisplayExpansionOptInRecommendationFieldBuilder() { if (displayExpansionOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 34)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.getDefaultInstance(); } displayExpansionOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 34; onChanged(); return displayExpansionOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder> upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_; /** *
     * Output only. The upgrade a Local campaign to a Performance Max campaign
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the upgradeLocalCampaignToPerformanceMaxRecommendation field is set. */ @java.lang.Override public boolean hasUpgradeLocalCampaignToPerformanceMaxRecommendation() { return recommendationCase_ == 35; } /** *
     * Output only. The upgrade a Local campaign to a Performance Max campaign
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The upgradeLocalCampaignToPerformanceMaxRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation getUpgradeLocalCampaignToPerformanceMaxRecommendation() { if (upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 35) { return (com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 35) { return upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } } /** *
     * Output only. The upgrade a Local campaign to a Performance Max campaign
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpgradeLocalCampaignToPerformanceMaxRecommendation(com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation value) { if (upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_.setMessage(value); } recommendationCase_ = 35; return this; } /** *
     * Output only. The upgrade a Local campaign to a Performance Max campaign
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpgradeLocalCampaignToPerformanceMaxRecommendation( com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.Builder builderForValue) { if (upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 35; return this; } /** *
     * Output only. The upgrade a Local campaign to a Performance Max campaign
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpgradeLocalCampaignToPerformanceMaxRecommendation(com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation value) { if (upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 35 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 35) { upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_.mergeFrom(value); } else { upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 35; return this; } /** *
     * Output only. The upgrade a Local campaign to a Performance Max campaign
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpgradeLocalCampaignToPerformanceMaxRecommendation() { if (upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 35) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 35) { recommendationCase_ = 0; recommendation_ = null; } upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The upgrade a Local campaign to a Performance Max campaign
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.Builder getUpgradeLocalCampaignToPerformanceMaxRecommendationBuilder() { return getUpgradeLocalCampaignToPerformanceMaxRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The upgrade a Local campaign to a Performance Max campaign
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder getUpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder() { if ((recommendationCase_ == 35) && (upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_ != null)) { return upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 35) { return (com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } } /** *
     * Output only. The upgrade a Local campaign to a Performance Max campaign
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder> getUpgradeLocalCampaignToPerformanceMaxRecommendationFieldBuilder() { if (upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (!(recommendationCase_ == 35)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 35; onChanged(); return upgradeLocalCampaignToPerformanceMaxRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendationOrBuilder> raiseTargetCpaBidTooLowRecommendationBuilder_; /** *
     * Output only. The raise target CPA bid too low recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the raiseTargetCpaBidTooLowRecommendation field is set. */ @java.lang.Override public boolean hasRaiseTargetCpaBidTooLowRecommendation() { return recommendationCase_ == 36; } /** *
     * Output only. The raise target CPA bid too low recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The raiseTargetCpaBidTooLowRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation getRaiseTargetCpaBidTooLowRecommendation() { if (raiseTargetCpaBidTooLowRecommendationBuilder_ == null) { if (recommendationCase_ == 36) { return (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 36) { return raiseTargetCpaBidTooLowRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.getDefaultInstance(); } } /** *
     * Output only. The raise target CPA bid too low recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRaiseTargetCpaBidTooLowRecommendation(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation value) { if (raiseTargetCpaBidTooLowRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { raiseTargetCpaBidTooLowRecommendationBuilder_.setMessage(value); } recommendationCase_ = 36; return this; } /** *
     * Output only. The raise target CPA bid too low recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRaiseTargetCpaBidTooLowRecommendation( com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.Builder builderForValue) { if (raiseTargetCpaBidTooLowRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { raiseTargetCpaBidTooLowRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 36; return this; } /** *
     * Output only. The raise target CPA bid too low recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRaiseTargetCpaBidTooLowRecommendation(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation value) { if (raiseTargetCpaBidTooLowRecommendationBuilder_ == null) { if (recommendationCase_ == 36 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 36) { raiseTargetCpaBidTooLowRecommendationBuilder_.mergeFrom(value); } else { raiseTargetCpaBidTooLowRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 36; return this; } /** *
     * Output only. The raise target CPA bid too low recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRaiseTargetCpaBidTooLowRecommendation() { if (raiseTargetCpaBidTooLowRecommendationBuilder_ == null) { if (recommendationCase_ == 36) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 36) { recommendationCase_ = 0; recommendation_ = null; } raiseTargetCpaBidTooLowRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The raise target CPA bid too low recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.Builder getRaiseTargetCpaBidTooLowRecommendationBuilder() { return getRaiseTargetCpaBidTooLowRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The raise target CPA bid too low recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendationOrBuilder getRaiseTargetCpaBidTooLowRecommendationOrBuilder() { if ((recommendationCase_ == 36) && (raiseTargetCpaBidTooLowRecommendationBuilder_ != null)) { return raiseTargetCpaBidTooLowRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 36) { return (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.getDefaultInstance(); } } /** *
     * Output only. The raise target CPA bid too low recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation raise_target_cpa_bid_too_low_recommendation = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendationOrBuilder> getRaiseTargetCpaBidTooLowRecommendationFieldBuilder() { if (raiseTargetCpaBidTooLowRecommendationBuilder_ == null) { if (!(recommendationCase_ == 36)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.getDefaultInstance(); } raiseTargetCpaBidTooLowRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 36; onChanged(); return raiseTargetCpaBidTooLowRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder> forecastingSetTargetRoasRecommendationBuilder_; /** *
     * Output only. The forecasting set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the forecastingSetTargetRoasRecommendation field is set. */ @java.lang.Override public boolean hasForecastingSetTargetRoasRecommendation() { return recommendationCase_ == 37; } /** *
     * Output only. The forecasting set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The forecastingSetTargetRoasRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation getForecastingSetTargetRoasRecommendation() { if (forecastingSetTargetRoasRecommendationBuilder_ == null) { if (recommendationCase_ == 37) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 37) { return forecastingSetTargetRoasRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } } /** *
     * Output only. The forecasting set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setForecastingSetTargetRoasRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation value) { if (forecastingSetTargetRoasRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { forecastingSetTargetRoasRecommendationBuilder_.setMessage(value); } recommendationCase_ = 37; return this; } /** *
     * Output only. The forecasting set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setForecastingSetTargetRoasRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder builderForValue) { if (forecastingSetTargetRoasRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { forecastingSetTargetRoasRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 37; return this; } /** *
     * Output only. The forecasting set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeForecastingSetTargetRoasRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation value) { if (forecastingSetTargetRoasRecommendationBuilder_ == null) { if (recommendationCase_ == 37 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 37) { forecastingSetTargetRoasRecommendationBuilder_.mergeFrom(value); } else { forecastingSetTargetRoasRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 37; return this; } /** *
     * Output only. The forecasting set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearForecastingSetTargetRoasRecommendation() { if (forecastingSetTargetRoasRecommendationBuilder_ == null) { if (recommendationCase_ == 37) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 37) { recommendationCase_ = 0; recommendation_ = null; } forecastingSetTargetRoasRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The forecasting set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder getForecastingSetTargetRoasRecommendationBuilder() { return getForecastingSetTargetRoasRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The forecasting set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder getForecastingSetTargetRoasRecommendationOrBuilder() { if ((recommendationCase_ == 37) && (forecastingSetTargetRoasRecommendationBuilder_ != null)) { return forecastingSetTargetRoasRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 37) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } } /** *
     * Output only. The forecasting set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation forecasting_set_target_roas_recommendation = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder> getForecastingSetTargetRoasRecommendationFieldBuilder() { if (forecastingSetTargetRoasRecommendationBuilder_ == null) { if (!(recommendationCase_ == 37)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } forecastingSetTargetRoasRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 37; onChanged(); return forecastingSetTargetRoasRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendationOrBuilder> calloutAssetRecommendationBuilder_; /** *
     * Output only. The callout asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the calloutAssetRecommendation field is set. */ @java.lang.Override public boolean hasCalloutAssetRecommendation() { return recommendationCase_ == 39; } /** *
     * Output only. The callout asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The calloutAssetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation getCalloutAssetRecommendation() { if (calloutAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 39) { return (com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 39) { return calloutAssetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The callout asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCalloutAssetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation value) { if (calloutAssetRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { calloutAssetRecommendationBuilder_.setMessage(value); } recommendationCase_ = 39; return this; } /** *
     * Output only. The callout asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCalloutAssetRecommendation( com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.Builder builderForValue) { if (calloutAssetRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { calloutAssetRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 39; return this; } /** *
     * Output only. The callout asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCalloutAssetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation value) { if (calloutAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 39 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 39) { calloutAssetRecommendationBuilder_.mergeFrom(value); } else { calloutAssetRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 39; return this; } /** *
     * Output only. The callout asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCalloutAssetRecommendation() { if (calloutAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 39) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 39) { recommendationCase_ = 0; recommendation_ = null; } calloutAssetRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The callout asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.Builder getCalloutAssetRecommendationBuilder() { return getCalloutAssetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The callout asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendationOrBuilder getCalloutAssetRecommendationOrBuilder() { if ((recommendationCase_ == 39) && (calloutAssetRecommendationBuilder_ != null)) { return calloutAssetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 39) { return (com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The callout asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation callout_asset_recommendation = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendationOrBuilder> getCalloutAssetRecommendationFieldBuilder() { if (calloutAssetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 39)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.getDefaultInstance(); } calloutAssetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 39; onChanged(); return calloutAssetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendationOrBuilder> sitelinkAssetRecommendationBuilder_; /** *
     * Output only. The sitelink asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sitelinkAssetRecommendation field is set. */ @java.lang.Override public boolean hasSitelinkAssetRecommendation() { return recommendationCase_ == 40; } /** *
     * Output only. The sitelink asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sitelinkAssetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation getSitelinkAssetRecommendation() { if (sitelinkAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 40) { return (com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 40) { return sitelinkAssetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The sitelink asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSitelinkAssetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation value) { if (sitelinkAssetRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { sitelinkAssetRecommendationBuilder_.setMessage(value); } recommendationCase_ = 40; return this; } /** *
     * Output only. The sitelink asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSitelinkAssetRecommendation( com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.Builder builderForValue) { if (sitelinkAssetRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { sitelinkAssetRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 40; return this; } /** *
     * Output only. The sitelink asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSitelinkAssetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation value) { if (sitelinkAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 40 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 40) { sitelinkAssetRecommendationBuilder_.mergeFrom(value); } else { sitelinkAssetRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 40; return this; } /** *
     * Output only. The sitelink asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSitelinkAssetRecommendation() { if (sitelinkAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 40) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 40) { recommendationCase_ = 0; recommendation_ = null; } sitelinkAssetRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The sitelink asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.Builder getSitelinkAssetRecommendationBuilder() { return getSitelinkAssetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The sitelink asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendationOrBuilder getSitelinkAssetRecommendationOrBuilder() { if ((recommendationCase_ == 40) && (sitelinkAssetRecommendationBuilder_ != null)) { return sitelinkAssetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 40) { return (com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The sitelink asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation sitelink_asset_recommendation = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendationOrBuilder> getSitelinkAssetRecommendationFieldBuilder() { if (sitelinkAssetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 40)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.getDefaultInstance(); } sitelinkAssetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 40; onChanged(); return sitelinkAssetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendationOrBuilder> callAssetRecommendationBuilder_; /** *
     * Output only. The call asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the callAssetRecommendation field is set. */ @java.lang.Override public boolean hasCallAssetRecommendation() { return recommendationCase_ == 41; } /** *
     * Output only. The call asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callAssetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation getCallAssetRecommendation() { if (callAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 41) { return (com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 41) { return callAssetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The call asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCallAssetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation value) { if (callAssetRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { callAssetRecommendationBuilder_.setMessage(value); } recommendationCase_ = 41; return this; } /** *
     * Output only. The call asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCallAssetRecommendation( com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.Builder builderForValue) { if (callAssetRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { callAssetRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 41; return this; } /** *
     * Output only. The call asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCallAssetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation value) { if (callAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 41 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 41) { callAssetRecommendationBuilder_.mergeFrom(value); } else { callAssetRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 41; return this; } /** *
     * Output only. The call asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCallAssetRecommendation() { if (callAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 41) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 41) { recommendationCase_ = 0; recommendation_ = null; } callAssetRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The call asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.Builder getCallAssetRecommendationBuilder() { return getCallAssetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The call asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendationOrBuilder getCallAssetRecommendationOrBuilder() { if ((recommendationCase_ == 41) && (callAssetRecommendationBuilder_ != null)) { return callAssetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 41) { return (com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The call asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation call_asset_recommendation = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendationOrBuilder> getCallAssetRecommendationFieldBuilder() { if (callAssetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 41)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.getDefaultInstance(); } callAssetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 41; onChanged(); return callAssetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> shoppingAddAgeGroupRecommendationBuilder_; /** *
     * Output only. The shopping add age group recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddAgeGroupRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddAgeGroupRecommendation() { return recommendationCase_ == 42; } /** *
     * Output only. The shopping add age group recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddAgeGroupRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddAgeGroupRecommendation() { if (shoppingAddAgeGroupRecommendationBuilder_ == null) { if (recommendationCase_ == 42) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 42) { return shoppingAddAgeGroupRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add age group recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddAgeGroupRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddAgeGroupRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingAddAgeGroupRecommendationBuilder_.setMessage(value); } recommendationCase_ = 42; return this; } /** *
     * Output only. The shopping add age group recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddAgeGroupRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder builderForValue) { if (shoppingAddAgeGroupRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingAddAgeGroupRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 42; return this; } /** *
     * Output only. The shopping add age group recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingAddAgeGroupRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddAgeGroupRecommendationBuilder_ == null) { if (recommendationCase_ == 42 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 42) { shoppingAddAgeGroupRecommendationBuilder_.mergeFrom(value); } else { shoppingAddAgeGroupRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 42; return this; } /** *
     * Output only. The shopping add age group recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingAddAgeGroupRecommendation() { if (shoppingAddAgeGroupRecommendationBuilder_ == null) { if (recommendationCase_ == 42) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 42) { recommendationCase_ = 0; recommendation_ = null; } shoppingAddAgeGroupRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping add age group recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder getShoppingAddAgeGroupRecommendationBuilder() { return getShoppingAddAgeGroupRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping add age group recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddAgeGroupRecommendationOrBuilder() { if ((recommendationCase_ == 42) && (shoppingAddAgeGroupRecommendationBuilder_ != null)) { return shoppingAddAgeGroupRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 42) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add age group recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_age_group_recommendation = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> getShoppingAddAgeGroupRecommendationFieldBuilder() { if (shoppingAddAgeGroupRecommendationBuilder_ == null) { if (!(recommendationCase_ == 42)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } shoppingAddAgeGroupRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 42; onChanged(); return shoppingAddAgeGroupRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> shoppingAddColorRecommendationBuilder_; /** *
     * Output only. The shopping add color recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddColorRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddColorRecommendation() { return recommendationCase_ == 43; } /** *
     * Output only. The shopping add color recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddColorRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddColorRecommendation() { if (shoppingAddColorRecommendationBuilder_ == null) { if (recommendationCase_ == 43) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 43) { return shoppingAddColorRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add color recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddColorRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddColorRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingAddColorRecommendationBuilder_.setMessage(value); } recommendationCase_ = 43; return this; } /** *
     * Output only. The shopping add color recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddColorRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder builderForValue) { if (shoppingAddColorRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingAddColorRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 43; return this; } /** *
     * Output only. The shopping add color recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingAddColorRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddColorRecommendationBuilder_ == null) { if (recommendationCase_ == 43 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 43) { shoppingAddColorRecommendationBuilder_.mergeFrom(value); } else { shoppingAddColorRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 43; return this; } /** *
     * Output only. The shopping add color recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingAddColorRecommendation() { if (shoppingAddColorRecommendationBuilder_ == null) { if (recommendationCase_ == 43) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 43) { recommendationCase_ = 0; recommendation_ = null; } shoppingAddColorRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping add color recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder getShoppingAddColorRecommendationBuilder() { return getShoppingAddColorRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping add color recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddColorRecommendationOrBuilder() { if ((recommendationCase_ == 43) && (shoppingAddColorRecommendationBuilder_ != null)) { return shoppingAddColorRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 43) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add color recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_color_recommendation = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> getShoppingAddColorRecommendationFieldBuilder() { if (shoppingAddColorRecommendationBuilder_ == null) { if (!(recommendationCase_ == 43)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } shoppingAddColorRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 43; onChanged(); return shoppingAddColorRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> shoppingAddGenderRecommendationBuilder_; /** *
     * Output only. The shopping add gender recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddGenderRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddGenderRecommendation() { return recommendationCase_ == 44; } /** *
     * Output only. The shopping add gender recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddGenderRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddGenderRecommendation() { if (shoppingAddGenderRecommendationBuilder_ == null) { if (recommendationCase_ == 44) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 44) { return shoppingAddGenderRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add gender recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddGenderRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddGenderRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingAddGenderRecommendationBuilder_.setMessage(value); } recommendationCase_ = 44; return this; } /** *
     * Output only. The shopping add gender recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddGenderRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder builderForValue) { if (shoppingAddGenderRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingAddGenderRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 44; return this; } /** *
     * Output only. The shopping add gender recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingAddGenderRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddGenderRecommendationBuilder_ == null) { if (recommendationCase_ == 44 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 44) { shoppingAddGenderRecommendationBuilder_.mergeFrom(value); } else { shoppingAddGenderRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 44; return this; } /** *
     * Output only. The shopping add gender recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingAddGenderRecommendation() { if (shoppingAddGenderRecommendationBuilder_ == null) { if (recommendationCase_ == 44) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 44) { recommendationCase_ = 0; recommendation_ = null; } shoppingAddGenderRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping add gender recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder getShoppingAddGenderRecommendationBuilder() { return getShoppingAddGenderRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping add gender recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddGenderRecommendationOrBuilder() { if ((recommendationCase_ == 44) && (shoppingAddGenderRecommendationBuilder_ != null)) { return shoppingAddGenderRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 44) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add gender recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> getShoppingAddGenderRecommendationFieldBuilder() { if (shoppingAddGenderRecommendationBuilder_ == null) { if (!(recommendationCase_ == 44)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } shoppingAddGenderRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 44; onChanged(); return shoppingAddGenderRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> shoppingAddGtinRecommendationBuilder_; /** *
     * Output only. The shopping add GTIN recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddGtinRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddGtinRecommendation() { return recommendationCase_ == 45; } /** *
     * Output only. The shopping add GTIN recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddGtinRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddGtinRecommendation() { if (shoppingAddGtinRecommendationBuilder_ == null) { if (recommendationCase_ == 45) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 45) { return shoppingAddGtinRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add GTIN recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddGtinRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddGtinRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingAddGtinRecommendationBuilder_.setMessage(value); } recommendationCase_ = 45; return this; } /** *
     * Output only. The shopping add GTIN recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddGtinRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder builderForValue) { if (shoppingAddGtinRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingAddGtinRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 45; return this; } /** *
     * Output only. The shopping add GTIN recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingAddGtinRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddGtinRecommendationBuilder_ == null) { if (recommendationCase_ == 45 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 45) { shoppingAddGtinRecommendationBuilder_.mergeFrom(value); } else { shoppingAddGtinRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 45; return this; } /** *
     * Output only. The shopping add GTIN recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingAddGtinRecommendation() { if (shoppingAddGtinRecommendationBuilder_ == null) { if (recommendationCase_ == 45) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 45) { recommendationCase_ = 0; recommendation_ = null; } shoppingAddGtinRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping add GTIN recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder getShoppingAddGtinRecommendationBuilder() { return getShoppingAddGtinRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping add GTIN recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddGtinRecommendationOrBuilder() { if ((recommendationCase_ == 45) && (shoppingAddGtinRecommendationBuilder_ != null)) { return shoppingAddGtinRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 45) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add GTIN recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gtin_recommendation = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> getShoppingAddGtinRecommendationFieldBuilder() { if (shoppingAddGtinRecommendationBuilder_ == null) { if (!(recommendationCase_ == 45)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } shoppingAddGtinRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 45; onChanged(); return shoppingAddGtinRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> shoppingAddMoreIdentifiersRecommendationBuilder_; /** *
     * Output only. The shopping add more identifiers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddMoreIdentifiersRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddMoreIdentifiersRecommendation() { return recommendationCase_ == 46; } /** *
     * Output only. The shopping add more identifiers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddMoreIdentifiersRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddMoreIdentifiersRecommendation() { if (shoppingAddMoreIdentifiersRecommendationBuilder_ == null) { if (recommendationCase_ == 46) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 46) { return shoppingAddMoreIdentifiersRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add more identifiers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddMoreIdentifiersRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddMoreIdentifiersRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingAddMoreIdentifiersRecommendationBuilder_.setMessage(value); } recommendationCase_ = 46; return this; } /** *
     * Output only. The shopping add more identifiers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddMoreIdentifiersRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder builderForValue) { if (shoppingAddMoreIdentifiersRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingAddMoreIdentifiersRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 46; return this; } /** *
     * Output only. The shopping add more identifiers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingAddMoreIdentifiersRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddMoreIdentifiersRecommendationBuilder_ == null) { if (recommendationCase_ == 46 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 46) { shoppingAddMoreIdentifiersRecommendationBuilder_.mergeFrom(value); } else { shoppingAddMoreIdentifiersRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 46; return this; } /** *
     * Output only. The shopping add more identifiers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingAddMoreIdentifiersRecommendation() { if (shoppingAddMoreIdentifiersRecommendationBuilder_ == null) { if (recommendationCase_ == 46) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 46) { recommendationCase_ = 0; recommendation_ = null; } shoppingAddMoreIdentifiersRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping add more identifiers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder getShoppingAddMoreIdentifiersRecommendationBuilder() { return getShoppingAddMoreIdentifiersRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping add more identifiers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddMoreIdentifiersRecommendationOrBuilder() { if ((recommendationCase_ == 46) && (shoppingAddMoreIdentifiersRecommendationBuilder_ != null)) { return shoppingAddMoreIdentifiersRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 46) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add more identifiers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_more_identifiers_recommendation = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> getShoppingAddMoreIdentifiersRecommendationFieldBuilder() { if (shoppingAddMoreIdentifiersRecommendationBuilder_ == null) { if (!(recommendationCase_ == 46)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } shoppingAddMoreIdentifiersRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 46; onChanged(); return shoppingAddMoreIdentifiersRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> shoppingAddSizeRecommendationBuilder_; /** *
     * Output only. The shopping add size recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddSizeRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddSizeRecommendation() { return recommendationCase_ == 47; } /** *
     * Output only. The shopping add size recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddSizeRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddSizeRecommendation() { if (shoppingAddSizeRecommendationBuilder_ == null) { if (recommendationCase_ == 47) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 47) { return shoppingAddSizeRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add size recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddSizeRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddSizeRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingAddSizeRecommendationBuilder_.setMessage(value); } recommendationCase_ = 47; return this; } /** *
     * Output only. The shopping add size recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddSizeRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder builderForValue) { if (shoppingAddSizeRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingAddSizeRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 47; return this; } /** *
     * Output only. The shopping add size recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingAddSizeRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation value) { if (shoppingAddSizeRecommendationBuilder_ == null) { if (recommendationCase_ == 47 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 47) { shoppingAddSizeRecommendationBuilder_.mergeFrom(value); } else { shoppingAddSizeRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 47; return this; } /** *
     * Output only. The shopping add size recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingAddSizeRecommendation() { if (shoppingAddSizeRecommendationBuilder_ == null) { if (recommendationCase_ == 47) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 47) { recommendationCase_ = 0; recommendation_ = null; } shoppingAddSizeRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping add size recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder getShoppingAddSizeRecommendationBuilder() { return getShoppingAddSizeRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping add size recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddSizeRecommendationOrBuilder() { if ((recommendationCase_ == 47) && (shoppingAddSizeRecommendationBuilder_ != null)) { return shoppingAddSizeRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 47) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add size recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_size_recommendation = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder> getShoppingAddSizeRecommendationFieldBuilder() { if (shoppingAddSizeRecommendationBuilder_ == null) { if (!(recommendationCase_ == 47)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance(); } shoppingAddSizeRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 47; onChanged(); return shoppingAddSizeRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendationOrBuilder> shoppingAddProductsToCampaignRecommendationBuilder_; /** *
     * Output only. The shopping add products to campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingAddProductsToCampaignRecommendation field is set. */ @java.lang.Override public boolean hasShoppingAddProductsToCampaignRecommendation() { return recommendationCase_ == 48; } /** *
     * Output only. The shopping add products to campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingAddProductsToCampaignRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation getShoppingAddProductsToCampaignRecommendation() { if (shoppingAddProductsToCampaignRecommendationBuilder_ == null) { if (recommendationCase_ == 48) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 48) { return shoppingAddProductsToCampaignRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add products to campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddProductsToCampaignRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation value) { if (shoppingAddProductsToCampaignRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingAddProductsToCampaignRecommendationBuilder_.setMessage(value); } recommendationCase_ = 48; return this; } /** *
     * Output only. The shopping add products to campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingAddProductsToCampaignRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.Builder builderForValue) { if (shoppingAddProductsToCampaignRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingAddProductsToCampaignRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 48; return this; } /** *
     * Output only. The shopping add products to campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingAddProductsToCampaignRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation value) { if (shoppingAddProductsToCampaignRecommendationBuilder_ == null) { if (recommendationCase_ == 48 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 48) { shoppingAddProductsToCampaignRecommendationBuilder_.mergeFrom(value); } else { shoppingAddProductsToCampaignRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 48; return this; } /** *
     * Output only. The shopping add products to campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingAddProductsToCampaignRecommendation() { if (shoppingAddProductsToCampaignRecommendationBuilder_ == null) { if (recommendationCase_ == 48) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 48) { recommendationCase_ = 0; recommendation_ = null; } shoppingAddProductsToCampaignRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping add products to campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.Builder getShoppingAddProductsToCampaignRecommendationBuilder() { return getShoppingAddProductsToCampaignRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping add products to campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendationOrBuilder getShoppingAddProductsToCampaignRecommendationOrBuilder() { if ((recommendationCase_ == 48) && (shoppingAddProductsToCampaignRecommendationBuilder_ != null)) { return shoppingAddProductsToCampaignRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 48) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping add products to campaign recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation shopping_add_products_to_campaign_recommendation = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendationOrBuilder> getShoppingAddProductsToCampaignRecommendationFieldBuilder() { if (shoppingAddProductsToCampaignRecommendationBuilder_ == null) { if (!(recommendationCase_ == 48)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.getDefaultInstance(); } shoppingAddProductsToCampaignRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 48; onChanged(); return shoppingAddProductsToCampaignRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendationOrBuilder> shoppingFixDisapprovedProductsRecommendationBuilder_; /** *
     * Output only. The shopping fix disapproved products recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingFixDisapprovedProductsRecommendation field is set. */ @java.lang.Override public boolean hasShoppingFixDisapprovedProductsRecommendation() { return recommendationCase_ == 49; } /** *
     * Output only. The shopping fix disapproved products recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingFixDisapprovedProductsRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation getShoppingFixDisapprovedProductsRecommendation() { if (shoppingFixDisapprovedProductsRecommendationBuilder_ == null) { if (recommendationCase_ == 49) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 49) { return shoppingFixDisapprovedProductsRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping fix disapproved products recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingFixDisapprovedProductsRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation value) { if (shoppingFixDisapprovedProductsRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingFixDisapprovedProductsRecommendationBuilder_.setMessage(value); } recommendationCase_ = 49; return this; } /** *
     * Output only. The shopping fix disapproved products recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingFixDisapprovedProductsRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.Builder builderForValue) { if (shoppingFixDisapprovedProductsRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingFixDisapprovedProductsRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 49; return this; } /** *
     * Output only. The shopping fix disapproved products recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingFixDisapprovedProductsRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation value) { if (shoppingFixDisapprovedProductsRecommendationBuilder_ == null) { if (recommendationCase_ == 49 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 49) { shoppingFixDisapprovedProductsRecommendationBuilder_.mergeFrom(value); } else { shoppingFixDisapprovedProductsRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 49; return this; } /** *
     * Output only. The shopping fix disapproved products recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingFixDisapprovedProductsRecommendation() { if (shoppingFixDisapprovedProductsRecommendationBuilder_ == null) { if (recommendationCase_ == 49) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 49) { recommendationCase_ = 0; recommendation_ = null; } shoppingFixDisapprovedProductsRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping fix disapproved products recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.Builder getShoppingFixDisapprovedProductsRecommendationBuilder() { return getShoppingFixDisapprovedProductsRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping fix disapproved products recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendationOrBuilder getShoppingFixDisapprovedProductsRecommendationOrBuilder() { if ((recommendationCase_ == 49) && (shoppingFixDisapprovedProductsRecommendationBuilder_ != null)) { return shoppingFixDisapprovedProductsRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 49) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping fix disapproved products recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation shopping_fix_disapproved_products_recommendation = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendationOrBuilder> getShoppingFixDisapprovedProductsRecommendationFieldBuilder() { if (shoppingFixDisapprovedProductsRecommendationBuilder_ == null) { if (!(recommendationCase_ == 49)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.getDefaultInstance(); } shoppingFixDisapprovedProductsRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 49; onChanged(); return shoppingFixDisapprovedProductsRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendationOrBuilder> shoppingTargetAllOffersRecommendationBuilder_; /** *
     * Output only. The shopping target all offers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingTargetAllOffersRecommendation field is set. */ @java.lang.Override public boolean hasShoppingTargetAllOffersRecommendation() { return recommendationCase_ == 50; } /** *
     * Output only. The shopping target all offers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingTargetAllOffersRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation getShoppingTargetAllOffersRecommendation() { if (shoppingTargetAllOffersRecommendationBuilder_ == null) { if (recommendationCase_ == 50) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 50) { return shoppingTargetAllOffersRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping target all offers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingTargetAllOffersRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation value) { if (shoppingTargetAllOffersRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingTargetAllOffersRecommendationBuilder_.setMessage(value); } recommendationCase_ = 50; return this; } /** *
     * Output only. The shopping target all offers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingTargetAllOffersRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.Builder builderForValue) { if (shoppingTargetAllOffersRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingTargetAllOffersRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 50; return this; } /** *
     * Output only. The shopping target all offers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingTargetAllOffersRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation value) { if (shoppingTargetAllOffersRecommendationBuilder_ == null) { if (recommendationCase_ == 50 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 50) { shoppingTargetAllOffersRecommendationBuilder_.mergeFrom(value); } else { shoppingTargetAllOffersRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 50; return this; } /** *
     * Output only. The shopping target all offers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingTargetAllOffersRecommendation() { if (shoppingTargetAllOffersRecommendationBuilder_ == null) { if (recommendationCase_ == 50) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 50) { recommendationCase_ = 0; recommendation_ = null; } shoppingTargetAllOffersRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping target all offers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.Builder getShoppingTargetAllOffersRecommendationBuilder() { return getShoppingTargetAllOffersRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping target all offers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendationOrBuilder getShoppingTargetAllOffersRecommendationOrBuilder() { if ((recommendationCase_ == 50) && (shoppingTargetAllOffersRecommendationBuilder_ != null)) { return shoppingTargetAllOffersRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 50) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping target all offers recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation shopping_target_all_offers_recommendation = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendationOrBuilder> getShoppingTargetAllOffersRecommendationFieldBuilder() { if (shoppingTargetAllOffersRecommendationBuilder_ == null) { if (!(recommendationCase_ == 50)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.getDefaultInstance(); } shoppingTargetAllOffersRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 50; onChanged(); return shoppingTargetAllOffersRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder> shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_; /** *
     * Output only. The shopping fix suspended Merchant Center account
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingFixSuspendedMerchantCenterAccountRecommendation field is set. */ @java.lang.Override public boolean hasShoppingFixSuspendedMerchantCenterAccountRecommendation() { return recommendationCase_ == 51; } /** *
     * Output only. The shopping fix suspended Merchant Center account
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingFixSuspendedMerchantCenterAccountRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation getShoppingFixSuspendedMerchantCenterAccountRecommendation() { if (shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_ == null) { if (recommendationCase_ == 51) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 51) { return shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping fix suspended Merchant Center account
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingFixSuspendedMerchantCenterAccountRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation value) { if (shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_.setMessage(value); } recommendationCase_ = 51; return this; } /** *
     * Output only. The shopping fix suspended Merchant Center account
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingFixSuspendedMerchantCenterAccountRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder builderForValue) { if (shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 51; return this; } /** *
     * Output only. The shopping fix suspended Merchant Center account
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingFixSuspendedMerchantCenterAccountRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation value) { if (shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_ == null) { if (recommendationCase_ == 51 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 51) { shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_.mergeFrom(value); } else { shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 51; return this; } /** *
     * Output only. The shopping fix suspended Merchant Center account
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingFixSuspendedMerchantCenterAccountRecommendation() { if (shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_ == null) { if (recommendationCase_ == 51) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 51) { recommendationCase_ = 0; recommendation_ = null; } shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping fix suspended Merchant Center account
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder getShoppingFixSuspendedMerchantCenterAccountRecommendationBuilder() { return getShoppingFixSuspendedMerchantCenterAccountRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping fix suspended Merchant Center account
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder getShoppingFixSuspendedMerchantCenterAccountRecommendationOrBuilder() { if ((recommendationCase_ == 51) && (shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_ != null)) { return shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 51) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping fix suspended Merchant Center account
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_suspended_merchant_center_account_recommendation = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder> getShoppingFixSuspendedMerchantCenterAccountRecommendationFieldBuilder() { if (shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_ == null) { if (!(recommendationCase_ == 51)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 51; onChanged(); return shoppingFixSuspendedMerchantCenterAccountRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder> shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_; /** *
     * Output only. The shopping fix Merchant Center account suspension warning
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingFixMerchantCenterAccountSuspensionWarningRecommendation field is set. */ @java.lang.Override public boolean hasShoppingFixMerchantCenterAccountSuspensionWarningRecommendation() { return recommendationCase_ == 52; } /** *
     * Output only. The shopping fix Merchant Center account suspension warning
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingFixMerchantCenterAccountSuspensionWarningRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation getShoppingFixMerchantCenterAccountSuspensionWarningRecommendation() { if (shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_ == null) { if (recommendationCase_ == 52) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 52) { return shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping fix Merchant Center account suspension warning
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingFixMerchantCenterAccountSuspensionWarningRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation value) { if (shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_.setMessage(value); } recommendationCase_ = 52; return this; } /** *
     * Output only. The shopping fix Merchant Center account suspension warning
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingFixMerchantCenterAccountSuspensionWarningRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder builderForValue) { if (shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 52; return this; } /** *
     * Output only. The shopping fix Merchant Center account suspension warning
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingFixMerchantCenterAccountSuspensionWarningRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation value) { if (shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_ == null) { if (recommendationCase_ == 52 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 52) { shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_.mergeFrom(value); } else { shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 52; return this; } /** *
     * Output only. The shopping fix Merchant Center account suspension warning
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingFixMerchantCenterAccountSuspensionWarningRecommendation() { if (shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_ == null) { if (recommendationCase_ == 52) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 52) { recommendationCase_ = 0; recommendation_ = null; } shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping fix Merchant Center account suspension warning
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder getShoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder() { return getShoppingFixMerchantCenterAccountSuspensionWarningRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping fix Merchant Center account suspension warning
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder getShoppingFixMerchantCenterAccountSuspensionWarningRecommendationOrBuilder() { if ((recommendationCase_ == 52) && (shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_ != null)) { return shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 52) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping fix Merchant Center account suspension warning
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation shopping_fix_merchant_center_account_suspension_warning_recommendation = 52 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder> getShoppingFixMerchantCenterAccountSuspensionWarningRecommendationFieldBuilder() { if (shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_ == null) { if (!(recommendationCase_ == 52)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance(); } shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 52; onChanged(); return shoppingFixMerchantCenterAccountSuspensionWarningRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder> shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_; /** *
     * Output only. The shopping migrate Regular Shopping Campaign offers to
     * Performance Max recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation field is set. */ @java.lang.Override public boolean hasShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation() { return recommendationCase_ == 53; } /** *
     * Output only. The shopping migrate Regular Shopping Campaign offers to
     * Performance Max recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation() { if (shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 53) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 53) { return shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping migrate Regular Shopping Campaign offers to
     * Performance Max recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation value) { if (shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_.setMessage(value); } recommendationCase_ = 53; return this; } /** *
     * Output only. The shopping migrate Regular Shopping Campaign offers to
     * Performance Max recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.Builder builderForValue) { if (shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 53; return this; } /** *
     * Output only. The shopping migrate Regular Shopping Campaign offers to
     * Performance Max recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation value) { if (shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 53 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 53) { shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_.mergeFrom(value); } else { shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 53; return this; } /** *
     * Output only. The shopping migrate Regular Shopping Campaign offers to
     * Performance Max recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation() { if (shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 53) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 53) { recommendationCase_ = 0; recommendation_ = null; } shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The shopping migrate Regular Shopping Campaign offers to
     * Performance Max recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.Builder getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder() { return getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The shopping migrate Regular Shopping Campaign offers to
     * Performance Max recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder() { if ((recommendationCase_ == 53) && (shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_ != null)) { return shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 53) { return (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.getDefaultInstance(); } } /** *
     * Output only. The shopping migrate Regular Shopping Campaign offers to
     * Performance Max recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation shopping_migrate_regular_shopping_campaign_offers_to_performance_max_recommendation = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder> getShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationFieldBuilder() { if (shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_ == null) { if (!(recommendationCase_ == 53)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.getDefaultInstance(); } shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 53; onChanged(); return shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendationOrBuilder> dynamicImageExtensionOptInRecommendationBuilder_; /** *
     * Output only. Recommendation to enable dynamic image extensions on the
     * account, allowing Google to find the best images from ad landing pages
     * and complement text ads.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dynamicImageExtensionOptInRecommendation field is set. */ @java.lang.Override public boolean hasDynamicImageExtensionOptInRecommendation() { return recommendationCase_ == 54; } /** *
     * Output only. Recommendation to enable dynamic image extensions on the
     * account, allowing Google to find the best images from ad landing pages
     * and complement text ads.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dynamicImageExtensionOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation getDynamicImageExtensionOptInRecommendation() { if (dynamicImageExtensionOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 54) { return (com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 54) { return dynamicImageExtensionOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. Recommendation to enable dynamic image extensions on the
     * account, allowing Google to find the best images from ad landing pages
     * and complement text ads.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDynamicImageExtensionOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation value) { if (dynamicImageExtensionOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { dynamicImageExtensionOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 54; return this; } /** *
     * Output only. Recommendation to enable dynamic image extensions on the
     * account, allowing Google to find the best images from ad landing pages
     * and complement text ads.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDynamicImageExtensionOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.Builder builderForValue) { if (dynamicImageExtensionOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { dynamicImageExtensionOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 54; return this; } /** *
     * Output only. Recommendation to enable dynamic image extensions on the
     * account, allowing Google to find the best images from ad landing pages
     * and complement text ads.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDynamicImageExtensionOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation value) { if (dynamicImageExtensionOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 54 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 54) { dynamicImageExtensionOptInRecommendationBuilder_.mergeFrom(value); } else { dynamicImageExtensionOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 54; return this; } /** *
     * Output only. Recommendation to enable dynamic image extensions on the
     * account, allowing Google to find the best images from ad landing pages
     * and complement text ads.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDynamicImageExtensionOptInRecommendation() { if (dynamicImageExtensionOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 54) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 54) { recommendationCase_ = 0; recommendation_ = null; } dynamicImageExtensionOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. Recommendation to enable dynamic image extensions on the
     * account, allowing Google to find the best images from ad landing pages
     * and complement text ads.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.Builder getDynamicImageExtensionOptInRecommendationBuilder() { return getDynamicImageExtensionOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. Recommendation to enable dynamic image extensions on the
     * account, allowing Google to find the best images from ad landing pages
     * and complement text ads.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendationOrBuilder getDynamicImageExtensionOptInRecommendationOrBuilder() { if ((recommendationCase_ == 54) && (dynamicImageExtensionOptInRecommendationBuilder_ != null)) { return dynamicImageExtensionOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 54) { return (com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. Recommendation to enable dynamic image extensions on the
     * account, allowing Google to find the best images from ad landing pages
     * and complement text ads.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation dynamic_image_extension_opt_in_recommendation = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendationOrBuilder> getDynamicImageExtensionOptInRecommendationFieldBuilder() { if (dynamicImageExtensionOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 54)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.getDefaultInstance(); } dynamicImageExtensionOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 54; onChanged(); return dynamicImageExtensionOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendationOrBuilder> raiseTargetCpaRecommendationBuilder_; /** *
     * Output only. Recommendation to raise Target CPA.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the raiseTargetCpaRecommendation field is set. */ @java.lang.Override public boolean hasRaiseTargetCpaRecommendation() { return recommendationCase_ == 55; } /** *
     * Output only. Recommendation to raise Target CPA.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The raiseTargetCpaRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation getRaiseTargetCpaRecommendation() { if (raiseTargetCpaRecommendationBuilder_ == null) { if (recommendationCase_ == 55) { return (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 55) { return raiseTargetCpaRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.getDefaultInstance(); } } /** *
     * Output only. Recommendation to raise Target CPA.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRaiseTargetCpaRecommendation(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation value) { if (raiseTargetCpaRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { raiseTargetCpaRecommendationBuilder_.setMessage(value); } recommendationCase_ = 55; return this; } /** *
     * Output only. Recommendation to raise Target CPA.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRaiseTargetCpaRecommendation( com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.Builder builderForValue) { if (raiseTargetCpaRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { raiseTargetCpaRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 55; return this; } /** *
     * Output only. Recommendation to raise Target CPA.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRaiseTargetCpaRecommendation(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation value) { if (raiseTargetCpaRecommendationBuilder_ == null) { if (recommendationCase_ == 55 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 55) { raiseTargetCpaRecommendationBuilder_.mergeFrom(value); } else { raiseTargetCpaRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 55; return this; } /** *
     * Output only. Recommendation to raise Target CPA.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRaiseTargetCpaRecommendation() { if (raiseTargetCpaRecommendationBuilder_ == null) { if (recommendationCase_ == 55) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 55) { recommendationCase_ = 0; recommendation_ = null; } raiseTargetCpaRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. Recommendation to raise Target CPA.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.Builder getRaiseTargetCpaRecommendationBuilder() { return getRaiseTargetCpaRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. Recommendation to raise Target CPA.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendationOrBuilder getRaiseTargetCpaRecommendationOrBuilder() { if ((recommendationCase_ == 55) && (raiseTargetCpaRecommendationBuilder_ != null)) { return raiseTargetCpaRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 55) { return (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.getDefaultInstance(); } } /** *
     * Output only. Recommendation to raise Target CPA.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation raise_target_cpa_recommendation = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendationOrBuilder> getRaiseTargetCpaRecommendationFieldBuilder() { if (raiseTargetCpaRecommendationBuilder_ == null) { if (!(recommendationCase_ == 55)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.getDefaultInstance(); } raiseTargetCpaRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 55; onChanged(); return raiseTargetCpaRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation, com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendationOrBuilder> lowerTargetRoasRecommendationBuilder_; /** *
     * Output only. Recommendation to lower Target ROAS.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lowerTargetRoasRecommendation field is set. */ @java.lang.Override public boolean hasLowerTargetRoasRecommendation() { return recommendationCase_ == 56; } /** *
     * Output only. Recommendation to lower Target ROAS.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lowerTargetRoasRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation getLowerTargetRoasRecommendation() { if (lowerTargetRoasRecommendationBuilder_ == null) { if (recommendationCase_ == 56) { return (com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 56) { return lowerTargetRoasRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.getDefaultInstance(); } } /** *
     * Output only. Recommendation to lower Target ROAS.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLowerTargetRoasRecommendation(com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation value) { if (lowerTargetRoasRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { lowerTargetRoasRecommendationBuilder_.setMessage(value); } recommendationCase_ = 56; return this; } /** *
     * Output only. Recommendation to lower Target ROAS.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLowerTargetRoasRecommendation( com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.Builder builderForValue) { if (lowerTargetRoasRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { lowerTargetRoasRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 56; return this; } /** *
     * Output only. Recommendation to lower Target ROAS.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeLowerTargetRoasRecommendation(com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation value) { if (lowerTargetRoasRecommendationBuilder_ == null) { if (recommendationCase_ == 56 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 56) { lowerTargetRoasRecommendationBuilder_.mergeFrom(value); } else { lowerTargetRoasRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 56; return this; } /** *
     * Output only. Recommendation to lower Target ROAS.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLowerTargetRoasRecommendation() { if (lowerTargetRoasRecommendationBuilder_ == null) { if (recommendationCase_ == 56) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 56) { recommendationCase_ = 0; recommendation_ = null; } lowerTargetRoasRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. Recommendation to lower Target ROAS.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.Builder getLowerTargetRoasRecommendationBuilder() { return getLowerTargetRoasRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. Recommendation to lower Target ROAS.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendationOrBuilder getLowerTargetRoasRecommendationOrBuilder() { if ((recommendationCase_ == 56) && (lowerTargetRoasRecommendationBuilder_ != null)) { return lowerTargetRoasRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 56) { return (com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.getDefaultInstance(); } } /** *
     * Output only. Recommendation to lower Target ROAS.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation lower_target_roas_recommendation = 56 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation, com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendationOrBuilder> getLowerTargetRoasRecommendationFieldBuilder() { if (lowerTargetRoasRecommendationBuilder_ == null) { if (!(recommendationCase_ == 56)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.getDefaultInstance(); } lowerTargetRoasRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation, com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 56; onChanged(); return lowerTargetRoasRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendationOrBuilder> performanceMaxOptInRecommendationBuilder_; /** *
     * Output only. The Performance Max Opt In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the performanceMaxOptInRecommendation field is set. */ @java.lang.Override public boolean hasPerformanceMaxOptInRecommendation() { return recommendationCase_ == 57; } /** *
     * Output only. The Performance Max Opt In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The performanceMaxOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation getPerformanceMaxOptInRecommendation() { if (performanceMaxOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 57) { return (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 57) { return performanceMaxOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Performance Max Opt In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPerformanceMaxOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation value) { if (performanceMaxOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { performanceMaxOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 57; return this; } /** *
     * Output only. The Performance Max Opt In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPerformanceMaxOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.Builder builderForValue) { if (performanceMaxOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { performanceMaxOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 57; return this; } /** *
     * Output only. The Performance Max Opt In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergePerformanceMaxOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation value) { if (performanceMaxOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 57 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 57) { performanceMaxOptInRecommendationBuilder_.mergeFrom(value); } else { performanceMaxOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 57; return this; } /** *
     * Output only. The Performance Max Opt In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPerformanceMaxOptInRecommendation() { if (performanceMaxOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 57) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 57) { recommendationCase_ = 0; recommendation_ = null; } performanceMaxOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The Performance Max Opt In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.Builder getPerformanceMaxOptInRecommendationBuilder() { return getPerformanceMaxOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Performance Max Opt In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendationOrBuilder getPerformanceMaxOptInRecommendationOrBuilder() { if ((recommendationCase_ == 57) && (performanceMaxOptInRecommendationBuilder_ != null)) { return performanceMaxOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 57) { return (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Performance Max Opt In recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation performance_max_opt_in_recommendation = 57 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendationOrBuilder> getPerformanceMaxOptInRecommendationFieldBuilder() { if (performanceMaxOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 57)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.getDefaultInstance(); } performanceMaxOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 57; onChanged(); return performanceMaxOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendationOrBuilder> improvePerformanceMaxAdStrengthRecommendationBuilder_; /** *
     * Output only. The improve Performance Max ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the improvePerformanceMaxAdStrengthRecommendation field is set. */ @java.lang.Override public boolean hasImprovePerformanceMaxAdStrengthRecommendation() { return recommendationCase_ == 58; } /** *
     * Output only. The improve Performance Max ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The improvePerformanceMaxAdStrengthRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation getImprovePerformanceMaxAdStrengthRecommendation() { if (improvePerformanceMaxAdStrengthRecommendationBuilder_ == null) { if (recommendationCase_ == 58) { return (com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 58) { return improvePerformanceMaxAdStrengthRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.getDefaultInstance(); } } /** *
     * Output only. The improve Performance Max ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImprovePerformanceMaxAdStrengthRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation value) { if (improvePerformanceMaxAdStrengthRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { improvePerformanceMaxAdStrengthRecommendationBuilder_.setMessage(value); } recommendationCase_ = 58; return this; } /** *
     * Output only. The improve Performance Max ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImprovePerformanceMaxAdStrengthRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.Builder builderForValue) { if (improvePerformanceMaxAdStrengthRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { improvePerformanceMaxAdStrengthRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 58; return this; } /** *
     * Output only. The improve Performance Max ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeImprovePerformanceMaxAdStrengthRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation value) { if (improvePerformanceMaxAdStrengthRecommendationBuilder_ == null) { if (recommendationCase_ == 58 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 58) { improvePerformanceMaxAdStrengthRecommendationBuilder_.mergeFrom(value); } else { improvePerformanceMaxAdStrengthRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 58; return this; } /** *
     * Output only. The improve Performance Max ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearImprovePerformanceMaxAdStrengthRecommendation() { if (improvePerformanceMaxAdStrengthRecommendationBuilder_ == null) { if (recommendationCase_ == 58) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 58) { recommendationCase_ = 0; recommendation_ = null; } improvePerformanceMaxAdStrengthRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The improve Performance Max ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.Builder getImprovePerformanceMaxAdStrengthRecommendationBuilder() { return getImprovePerformanceMaxAdStrengthRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The improve Performance Max ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendationOrBuilder getImprovePerformanceMaxAdStrengthRecommendationOrBuilder() { if ((recommendationCase_ == 58) && (improvePerformanceMaxAdStrengthRecommendationBuilder_ != null)) { return improvePerformanceMaxAdStrengthRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 58) { return (com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.getDefaultInstance(); } } /** *
     * Output only. The improve Performance Max ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation improve_performance_max_ad_strength_recommendation = 58 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendationOrBuilder> getImprovePerformanceMaxAdStrengthRecommendationFieldBuilder() { if (improvePerformanceMaxAdStrengthRecommendationBuilder_ == null) { if (!(recommendationCase_ == 58)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.getDefaultInstance(); } improvePerformanceMaxAdStrengthRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 58; onChanged(); return improvePerformanceMaxAdStrengthRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationOrBuilder> migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_; /** *
     * Output only. The Dynamic Search Ads to Performance Max migration
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation field is set. */ @java.lang.Override public boolean hasMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation() { return recommendationCase_ == 59; } /** *
     * Output only. The Dynamic Search Ads to Performance Max migration
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation() { if (migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 59) { return (com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 59) { return migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Dynamic Search Ads to Performance Max migration
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation value) { if (migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_.setMessage(value); } recommendationCase_ = 59; return this; } /** *
     * Output only. The Dynamic Search Ads to Performance Max migration
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation( com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.Builder builderForValue) { if (migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 59; return this; } /** *
     * Output only. The Dynamic Search Ads to Performance Max migration
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation value) { if (migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 59 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 59) { migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_.mergeFrom(value); } else { migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 59; return this; } /** *
     * Output only. The Dynamic Search Ads to Performance Max migration
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation() { if (migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (recommendationCase_ == 59) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 59) { recommendationCase_ = 0; recommendation_ = null; } migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The Dynamic Search Ads to Performance Max migration
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.Builder getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder() { return getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Dynamic Search Ads to Performance Max migration
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationOrBuilder getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationOrBuilder() { if ((recommendationCase_ == 59) && (migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_ != null)) { return migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 59) { return (com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Dynamic Search Ads to Performance Max migration
     * recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation migrate_dynamic_search_ads_campaign_to_performance_max_recommendation = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationOrBuilder> getMigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationFieldBuilder() { if (migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_ == null) { if (!(recommendationCase_ == 59)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.getDefaultInstance(); } migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 59; onChanged(); return migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendationOrBuilder> forecastingSetTargetCpaRecommendationBuilder_; /** *
     * Output only. The forecasting set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the forecastingSetTargetCpaRecommendation field is set. */ @java.lang.Override public boolean hasForecastingSetTargetCpaRecommendation() { return recommendationCase_ == 60; } /** *
     * Output only. The forecasting set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The forecastingSetTargetCpaRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation getForecastingSetTargetCpaRecommendation() { if (forecastingSetTargetCpaRecommendationBuilder_ == null) { if (recommendationCase_ == 60) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 60) { return forecastingSetTargetCpaRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } } /** *
     * Output only. The forecasting set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setForecastingSetTargetCpaRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation value) { if (forecastingSetTargetCpaRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { forecastingSetTargetCpaRecommendationBuilder_.setMessage(value); } recommendationCase_ = 60; return this; } /** *
     * Output only. The forecasting set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setForecastingSetTargetCpaRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder builderForValue) { if (forecastingSetTargetCpaRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { forecastingSetTargetCpaRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 60; return this; } /** *
     * Output only. The forecasting set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeForecastingSetTargetCpaRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation value) { if (forecastingSetTargetCpaRecommendationBuilder_ == null) { if (recommendationCase_ == 60 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 60) { forecastingSetTargetCpaRecommendationBuilder_.mergeFrom(value); } else { forecastingSetTargetCpaRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 60; return this; } /** *
     * Output only. The forecasting set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearForecastingSetTargetCpaRecommendation() { if (forecastingSetTargetCpaRecommendationBuilder_ == null) { if (recommendationCase_ == 60) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 60) { recommendationCase_ = 0; recommendation_ = null; } forecastingSetTargetCpaRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The forecasting set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder getForecastingSetTargetCpaRecommendationBuilder() { return getForecastingSetTargetCpaRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The forecasting set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendationOrBuilder getForecastingSetTargetCpaRecommendationOrBuilder() { if ((recommendationCase_ == 60) && (forecastingSetTargetCpaRecommendationBuilder_ != null)) { return forecastingSetTargetCpaRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 60) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } } /** *
     * Output only. The forecasting set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation forecasting_set_target_cpa_recommendation = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendationOrBuilder> getForecastingSetTargetCpaRecommendationFieldBuilder() { if (forecastingSetTargetCpaRecommendationBuilder_ == null) { if (!(recommendationCase_ == 60)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } forecastingSetTargetCpaRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 60; onChanged(); return forecastingSetTargetCpaRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendationOrBuilder> setTargetCpaRecommendationBuilder_; /** *
     * Output only. The set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the setTargetCpaRecommendation field is set. */ @java.lang.Override public boolean hasSetTargetCpaRecommendation() { return recommendationCase_ == 61; } /** *
     * Output only. The set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The setTargetCpaRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation getSetTargetCpaRecommendation() { if (setTargetCpaRecommendationBuilder_ == null) { if (recommendationCase_ == 61) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 61) { return setTargetCpaRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } } /** *
     * Output only. The set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSetTargetCpaRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation value) { if (setTargetCpaRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { setTargetCpaRecommendationBuilder_.setMessage(value); } recommendationCase_ = 61; return this; } /** *
     * Output only. The set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSetTargetCpaRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder builderForValue) { if (setTargetCpaRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { setTargetCpaRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 61; return this; } /** *
     * Output only. The set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSetTargetCpaRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation value) { if (setTargetCpaRecommendationBuilder_ == null) { if (recommendationCase_ == 61 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 61) { setTargetCpaRecommendationBuilder_.mergeFrom(value); } else { setTargetCpaRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 61; return this; } /** *
     * Output only. The set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSetTargetCpaRecommendation() { if (setTargetCpaRecommendationBuilder_ == null) { if (recommendationCase_ == 61) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 61) { recommendationCase_ = 0; recommendation_ = null; } setTargetCpaRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder getSetTargetCpaRecommendationBuilder() { return getSetTargetCpaRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendationOrBuilder getSetTargetCpaRecommendationOrBuilder() { if ((recommendationCase_ == 61) && (setTargetCpaRecommendationBuilder_ != null)) { return setTargetCpaRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 61) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } } /** *
     * Output only. The set target CPA recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation set_target_cpa_recommendation = 61 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendationOrBuilder> getSetTargetCpaRecommendationFieldBuilder() { if (setTargetCpaRecommendationBuilder_ == null) { if (!(recommendationCase_ == 61)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.getDefaultInstance(); } setTargetCpaRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetCpaRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 61; onChanged(); return setTargetCpaRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder> setTargetRoasRecommendationBuilder_; /** *
     * Output only. The set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the setTargetRoasRecommendation field is set. */ @java.lang.Override public boolean hasSetTargetRoasRecommendation() { return recommendationCase_ == 62; } /** *
     * Output only. The set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The setTargetRoasRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation getSetTargetRoasRecommendation() { if (setTargetRoasRecommendationBuilder_ == null) { if (recommendationCase_ == 62) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 62) { return setTargetRoasRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } } /** *
     * Output only. The set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSetTargetRoasRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation value) { if (setTargetRoasRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { setTargetRoasRecommendationBuilder_.setMessage(value); } recommendationCase_ = 62; return this; } /** *
     * Output only. The set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSetTargetRoasRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder builderForValue) { if (setTargetRoasRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { setTargetRoasRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 62; return this; } /** *
     * Output only. The set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSetTargetRoasRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation value) { if (setTargetRoasRecommendationBuilder_ == null) { if (recommendationCase_ == 62 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 62) { setTargetRoasRecommendationBuilder_.mergeFrom(value); } else { setTargetRoasRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 62; return this; } /** *
     * Output only. The set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSetTargetRoasRecommendation() { if (setTargetRoasRecommendationBuilder_ == null) { if (recommendationCase_ == 62) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 62) { recommendationCase_ = 0; recommendation_ = null; } setTargetRoasRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder getSetTargetRoasRecommendationBuilder() { return getSetTargetRoasRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder getSetTargetRoasRecommendationOrBuilder() { if ((recommendationCase_ == 62) && (setTargetRoasRecommendationBuilder_ != null)) { return setTargetRoasRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 62) { return (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } } /** *
     * Output only. The set target ROAS recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation set_target_roas_recommendation = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder> getSetTargetRoasRecommendationFieldBuilder() { if (setTargetRoasRecommendationBuilder_ == null) { if (!(recommendationCase_ == 62)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance(); } setTargetRoasRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 62; onChanged(); return setTargetRoasRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendationOrBuilder> maximizeConversionValueOptInRecommendationBuilder_; /** *
     * Output only. The Maximize Conversion Value opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the maximizeConversionValueOptInRecommendation field is set. */ @java.lang.Override public boolean hasMaximizeConversionValueOptInRecommendation() { return recommendationCase_ == 63; } /** *
     * Output only. The Maximize Conversion Value opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The maximizeConversionValueOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation getMaximizeConversionValueOptInRecommendation() { if (maximizeConversionValueOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 63) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 63) { return maximizeConversionValueOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Maximize Conversion Value opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaximizeConversionValueOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation value) { if (maximizeConversionValueOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { maximizeConversionValueOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 63; return this; } /** *
     * Output only. The Maximize Conversion Value opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaximizeConversionValueOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.Builder builderForValue) { if (maximizeConversionValueOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { maximizeConversionValueOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 63; return this; } /** *
     * Output only. The Maximize Conversion Value opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMaximizeConversionValueOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation value) { if (maximizeConversionValueOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 63 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 63) { maximizeConversionValueOptInRecommendationBuilder_.mergeFrom(value); } else { maximizeConversionValueOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 63; return this; } /** *
     * Output only. The Maximize Conversion Value opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMaximizeConversionValueOptInRecommendation() { if (maximizeConversionValueOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 63) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 63) { recommendationCase_ = 0; recommendation_ = null; } maximizeConversionValueOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The Maximize Conversion Value opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.Builder getMaximizeConversionValueOptInRecommendationBuilder() { return getMaximizeConversionValueOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Maximize Conversion Value opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendationOrBuilder getMaximizeConversionValueOptInRecommendationOrBuilder() { if ((recommendationCase_ == 63) && (maximizeConversionValueOptInRecommendationBuilder_ != null)) { return maximizeConversionValueOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 63) { return (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Maximize Conversion Value opt-in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation maximize_conversion_value_opt_in_recommendation = 63 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendationOrBuilder> getMaximizeConversionValueOptInRecommendationFieldBuilder() { if (maximizeConversionValueOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 63)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.getDefaultInstance(); } maximizeConversionValueOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionValueOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 63; onChanged(); return maximizeConversionValueOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendationOrBuilder> improveGoogleTagCoverageRecommendationBuilder_; /** *
     * Output only. Recommendation to deploy Google Tag on more pages.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the improveGoogleTagCoverageRecommendation field is set. */ @java.lang.Override public boolean hasImproveGoogleTagCoverageRecommendation() { return recommendationCase_ == 64; } /** *
     * Output only. Recommendation to deploy Google Tag on more pages.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The improveGoogleTagCoverageRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation getImproveGoogleTagCoverageRecommendation() { if (improveGoogleTagCoverageRecommendationBuilder_ == null) { if (recommendationCase_ == 64) { return (com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 64) { return improveGoogleTagCoverageRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.getDefaultInstance(); } } /** *
     * Output only. Recommendation to deploy Google Tag on more pages.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImproveGoogleTagCoverageRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation value) { if (improveGoogleTagCoverageRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { improveGoogleTagCoverageRecommendationBuilder_.setMessage(value); } recommendationCase_ = 64; return this; } /** *
     * Output only. Recommendation to deploy Google Tag on more pages.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImproveGoogleTagCoverageRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.Builder builderForValue) { if (improveGoogleTagCoverageRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { improveGoogleTagCoverageRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 64; return this; } /** *
     * Output only. Recommendation to deploy Google Tag on more pages.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeImproveGoogleTagCoverageRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation value) { if (improveGoogleTagCoverageRecommendationBuilder_ == null) { if (recommendationCase_ == 64 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 64) { improveGoogleTagCoverageRecommendationBuilder_.mergeFrom(value); } else { improveGoogleTagCoverageRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 64; return this; } /** *
     * Output only. Recommendation to deploy Google Tag on more pages.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearImproveGoogleTagCoverageRecommendation() { if (improveGoogleTagCoverageRecommendationBuilder_ == null) { if (recommendationCase_ == 64) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 64) { recommendationCase_ = 0; recommendation_ = null; } improveGoogleTagCoverageRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. Recommendation to deploy Google Tag on more pages.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.Builder getImproveGoogleTagCoverageRecommendationBuilder() { return getImproveGoogleTagCoverageRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. Recommendation to deploy Google Tag on more pages.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendationOrBuilder getImproveGoogleTagCoverageRecommendationOrBuilder() { if ((recommendationCase_ == 64) && (improveGoogleTagCoverageRecommendationBuilder_ != null)) { return improveGoogleTagCoverageRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 64) { return (com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.getDefaultInstance(); } } /** *
     * Output only. Recommendation to deploy Google Tag on more pages.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation improve_google_tag_coverage_recommendation = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendationOrBuilder> getImproveGoogleTagCoverageRecommendationFieldBuilder() { if (improveGoogleTagCoverageRecommendationBuilder_ == null) { if (!(recommendationCase_ == 64)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.getDefaultInstance(); } improveGoogleTagCoverageRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ImproveGoogleTagCoverageRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 64; onChanged(); return improveGoogleTagCoverageRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendationOrBuilder> performanceMaxFinalUrlOptInRecommendationBuilder_; /** *
     * Output only. Recommendation to turn on Final URL expansion for your
     * Performance Max campaigns.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the performanceMaxFinalUrlOptInRecommendation field is set. */ @java.lang.Override public boolean hasPerformanceMaxFinalUrlOptInRecommendation() { return recommendationCase_ == 65; } /** *
     * Output only. Recommendation to turn on Final URL expansion for your
     * Performance Max campaigns.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The performanceMaxFinalUrlOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation getPerformanceMaxFinalUrlOptInRecommendation() { if (performanceMaxFinalUrlOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 65) { return (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 65) { return performanceMaxFinalUrlOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. Recommendation to turn on Final URL expansion for your
     * Performance Max campaigns.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPerformanceMaxFinalUrlOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation value) { if (performanceMaxFinalUrlOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { performanceMaxFinalUrlOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 65; return this; } /** *
     * Output only. Recommendation to turn on Final URL expansion for your
     * Performance Max campaigns.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPerformanceMaxFinalUrlOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.Builder builderForValue) { if (performanceMaxFinalUrlOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { performanceMaxFinalUrlOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 65; return this; } /** *
     * Output only. Recommendation to turn on Final URL expansion for your
     * Performance Max campaigns.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergePerformanceMaxFinalUrlOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation value) { if (performanceMaxFinalUrlOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 65 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 65) { performanceMaxFinalUrlOptInRecommendationBuilder_.mergeFrom(value); } else { performanceMaxFinalUrlOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 65; return this; } /** *
     * Output only. Recommendation to turn on Final URL expansion for your
     * Performance Max campaigns.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPerformanceMaxFinalUrlOptInRecommendation() { if (performanceMaxFinalUrlOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 65) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 65) { recommendationCase_ = 0; recommendation_ = null; } performanceMaxFinalUrlOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. Recommendation to turn on Final URL expansion for your
     * Performance Max campaigns.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.Builder getPerformanceMaxFinalUrlOptInRecommendationBuilder() { return getPerformanceMaxFinalUrlOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. Recommendation to turn on Final URL expansion for your
     * Performance Max campaigns.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendationOrBuilder getPerformanceMaxFinalUrlOptInRecommendationOrBuilder() { if ((recommendationCase_ == 65) && (performanceMaxFinalUrlOptInRecommendationBuilder_ != null)) { return performanceMaxFinalUrlOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 65) { return (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. Recommendation to turn on Final URL expansion for your
     * Performance Max campaigns.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation performance_max_final_url_opt_in_recommendation = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendationOrBuilder> getPerformanceMaxFinalUrlOptInRecommendationFieldBuilder() { if (performanceMaxFinalUrlOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 65)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.getDefaultInstance(); } performanceMaxFinalUrlOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.PerformanceMaxFinalUrlOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 65; onChanged(); return performanceMaxFinalUrlOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation, com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendationOrBuilder> refreshCustomerMatchListRecommendationBuilder_; /** *
     * Output only. The refresh customer list recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the refreshCustomerMatchListRecommendation field is set. */ @java.lang.Override public boolean hasRefreshCustomerMatchListRecommendation() { return recommendationCase_ == 66; } /** *
     * Output only. The refresh customer list recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The refreshCustomerMatchListRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation getRefreshCustomerMatchListRecommendation() { if (refreshCustomerMatchListRecommendationBuilder_ == null) { if (recommendationCase_ == 66) { return (com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 66) { return refreshCustomerMatchListRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.getDefaultInstance(); } } /** *
     * Output only. The refresh customer list recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRefreshCustomerMatchListRecommendation(com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation value) { if (refreshCustomerMatchListRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { refreshCustomerMatchListRecommendationBuilder_.setMessage(value); } recommendationCase_ = 66; return this; } /** *
     * Output only. The refresh customer list recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRefreshCustomerMatchListRecommendation( com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.Builder builderForValue) { if (refreshCustomerMatchListRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { refreshCustomerMatchListRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 66; return this; } /** *
     * Output only. The refresh customer list recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRefreshCustomerMatchListRecommendation(com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation value) { if (refreshCustomerMatchListRecommendationBuilder_ == null) { if (recommendationCase_ == 66 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 66) { refreshCustomerMatchListRecommendationBuilder_.mergeFrom(value); } else { refreshCustomerMatchListRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 66; return this; } /** *
     * Output only. The refresh customer list recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRefreshCustomerMatchListRecommendation() { if (refreshCustomerMatchListRecommendationBuilder_ == null) { if (recommendationCase_ == 66) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 66) { recommendationCase_ = 0; recommendation_ = null; } refreshCustomerMatchListRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The refresh customer list recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.Builder getRefreshCustomerMatchListRecommendationBuilder() { return getRefreshCustomerMatchListRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The refresh customer list recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendationOrBuilder getRefreshCustomerMatchListRecommendationOrBuilder() { if ((recommendationCase_ == 66) && (refreshCustomerMatchListRecommendationBuilder_ != null)) { return refreshCustomerMatchListRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 66) { return (com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.getDefaultInstance(); } } /** *
     * Output only. The refresh customer list recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation refresh_customer_match_list_recommendation = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation, com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendationOrBuilder> getRefreshCustomerMatchListRecommendationFieldBuilder() { if (refreshCustomerMatchListRecommendationBuilder_ == null) { if (!(recommendationCase_ == 66)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.getDefaultInstance(); } refreshCustomerMatchListRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation, com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.RefreshCustomerMatchListRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 66; onChanged(); return refreshCustomerMatchListRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendationOrBuilder> customAudienceOptInRecommendationBuilder_; /** *
     * Output only. The custom audience opt in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customAudienceOptInRecommendation field is set. */ @java.lang.Override public boolean hasCustomAudienceOptInRecommendation() { return recommendationCase_ == 67; } /** *
     * Output only. The custom audience opt in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customAudienceOptInRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation getCustomAudienceOptInRecommendation() { if (customAudienceOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 67) { return (com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 67) { return customAudienceOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The custom audience opt in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCustomAudienceOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation value) { if (customAudienceOptInRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { customAudienceOptInRecommendationBuilder_.setMessage(value); } recommendationCase_ = 67; return this; } /** *
     * Output only. The custom audience opt in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCustomAudienceOptInRecommendation( com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.Builder builderForValue) { if (customAudienceOptInRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { customAudienceOptInRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 67; return this; } /** *
     * Output only. The custom audience opt in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCustomAudienceOptInRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation value) { if (customAudienceOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 67 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 67) { customAudienceOptInRecommendationBuilder_.mergeFrom(value); } else { customAudienceOptInRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 67; return this; } /** *
     * Output only. The custom audience opt in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCustomAudienceOptInRecommendation() { if (customAudienceOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 67) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 67) { recommendationCase_ = 0; recommendation_ = null; } customAudienceOptInRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The custom audience opt in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.Builder getCustomAudienceOptInRecommendationBuilder() { return getCustomAudienceOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The custom audience opt in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendationOrBuilder getCustomAudienceOptInRecommendationOrBuilder() { if ((recommendationCase_ == 67) && (customAudienceOptInRecommendationBuilder_ != null)) { return customAudienceOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 67) { return (com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The custom audience opt in recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation custom_audience_opt_in_recommendation = 67 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendationOrBuilder> getCustomAudienceOptInRecommendationFieldBuilder() { if (customAudienceOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 67)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.getDefaultInstance(); } customAudienceOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.CustomAudienceOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 67; onChanged(); return customAudienceOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendationOrBuilder> leadFormAssetRecommendationBuilder_; /** *
     * Output only. The lead form asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the leadFormAssetRecommendation field is set. */ @java.lang.Override public boolean hasLeadFormAssetRecommendation() { return recommendationCase_ == 68; } /** *
     * Output only. The lead form asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The leadFormAssetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation getLeadFormAssetRecommendation() { if (leadFormAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 68) { return (com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 68) { return leadFormAssetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The lead form asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLeadFormAssetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation value) { if (leadFormAssetRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { leadFormAssetRecommendationBuilder_.setMessage(value); } recommendationCase_ = 68; return this; } /** *
     * Output only. The lead form asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLeadFormAssetRecommendation( com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.Builder builderForValue) { if (leadFormAssetRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { leadFormAssetRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 68; return this; } /** *
     * Output only. The lead form asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeLeadFormAssetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation value) { if (leadFormAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 68 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 68) { leadFormAssetRecommendationBuilder_.mergeFrom(value); } else { leadFormAssetRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 68; return this; } /** *
     * Output only. The lead form asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLeadFormAssetRecommendation() { if (leadFormAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 68) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 68) { recommendationCase_ = 0; recommendation_ = null; } leadFormAssetRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The lead form asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.Builder getLeadFormAssetRecommendationBuilder() { return getLeadFormAssetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The lead form asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendationOrBuilder getLeadFormAssetRecommendationOrBuilder() { if ((recommendationCase_ == 68) && (leadFormAssetRecommendationBuilder_ != null)) { return leadFormAssetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 68) { return (com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The lead form asset recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation lead_form_asset_recommendation = 68 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendationOrBuilder> getLeadFormAssetRecommendationFieldBuilder() { if (leadFormAssetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 68)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.getDefaultInstance(); } leadFormAssetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.LeadFormAssetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 68; onChanged(); return leadFormAssetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendationOrBuilder> improveDemandGenAdStrengthRecommendationBuilder_; /** *
     * Output only. The improve Demand Gen ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the improveDemandGenAdStrengthRecommendation field is set. */ @java.lang.Override public boolean hasImproveDemandGenAdStrengthRecommendation() { return recommendationCase_ == 69; } /** *
     * Output only. The improve Demand Gen ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The improveDemandGenAdStrengthRecommendation. */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation getImproveDemandGenAdStrengthRecommendation() { if (improveDemandGenAdStrengthRecommendationBuilder_ == null) { if (recommendationCase_ == 69) { return (com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 69) { return improveDemandGenAdStrengthRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.getDefaultInstance(); } } /** *
     * Output only. The improve Demand Gen ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImproveDemandGenAdStrengthRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation value) { if (improveDemandGenAdStrengthRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { improveDemandGenAdStrengthRecommendationBuilder_.setMessage(value); } recommendationCase_ = 69; return this; } /** *
     * Output only. The improve Demand Gen ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImproveDemandGenAdStrengthRecommendation( com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.Builder builderForValue) { if (improveDemandGenAdStrengthRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { improveDemandGenAdStrengthRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 69; return this; } /** *
     * Output only. The improve Demand Gen ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeImproveDemandGenAdStrengthRecommendation(com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation value) { if (improveDemandGenAdStrengthRecommendationBuilder_ == null) { if (recommendationCase_ == 69 && recommendation_ != com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.newBuilder((com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 69) { improveDemandGenAdStrengthRecommendationBuilder_.mergeFrom(value); } else { improveDemandGenAdStrengthRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 69; return this; } /** *
     * Output only. The improve Demand Gen ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearImproveDemandGenAdStrengthRecommendation() { if (improveDemandGenAdStrengthRecommendationBuilder_ == null) { if (recommendationCase_ == 69) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 69) { recommendationCase_ = 0; recommendation_ = null; } improveDemandGenAdStrengthRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The improve Demand Gen ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.Builder getImproveDemandGenAdStrengthRecommendationBuilder() { return getImproveDemandGenAdStrengthRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The improve Demand Gen ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendationOrBuilder getImproveDemandGenAdStrengthRecommendationOrBuilder() { if ((recommendationCase_ == 69) && (improveDemandGenAdStrengthRecommendationBuilder_ != null)) { return improveDemandGenAdStrengthRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 69) { return (com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) recommendation_; } return com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.getDefaultInstance(); } } /** *
     * Output only. The improve Demand Gen ad strength recommendation.
     * 
* * .google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation improve_demand_gen_ad_strength_recommendation = 69 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendationOrBuilder> getImproveDemandGenAdStrengthRecommendationFieldBuilder() { if (improveDemandGenAdStrengthRecommendationBuilder_ == null) { if (!(recommendationCase_ == 69)) { recommendation_ = com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.getDefaultInstance(); } improveDemandGenAdStrengthRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation, com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendationOrBuilder>( (com.google.ads.googleads.v16.resources.Recommendation.ImproveDemandGenAdStrengthRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 69; onChanged(); return improveDemandGenAdStrengthRecommendationBuilder_; } @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.v16.resources.Recommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation) private static final com.google.ads.googleads.v16.resources.Recommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation(); } public static com.google.ads.googleads.v16.resources.Recommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Recommendation 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.v16.resources.Recommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy