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

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

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

package com.google.ads.googleads.v10.resources;

/**
 * 
 * A recommendation.
 * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation} */ public final class Recommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Recommendation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.class, com.google.ads.googleads.v10.resources.Recommendation.Builder.class); } public interface RecommendationImpactOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.RecommendationImpact) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Base metrics at the time the recommendation was generated.
     * 
* * .google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The baseMetrics. */ com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics getBaseMetrics(); /** *
     * Output only. Base metrics at the time the recommendation was generated.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetricsOrBuilder getBaseMetricsOrBuilder(); /** *
     * Output only. Estimated metrics if the recommendation is applied.
     * 
* * .google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The potentialMetrics. */ com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics getPotentialMetrics(); /** *
     * Output only. Estimated metrics if the recommendation is applied.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationImpact} */ public static final class RecommendationImpact extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_RecommendationImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_RecommendationImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.class, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder.class); } public static final int BASE_METRICS_FIELD_NUMBER = 1; private com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics baseMetrics_; /** *
     * Output only. Base metrics at the time the recommendation was generated.
     * 
* * .google.ads.googleads.v10.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 baseMetrics_ != null; } /** *
     * Output only. Base metrics at the time the recommendation was generated.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The baseMetrics. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics getBaseMetrics() { return baseMetrics_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : baseMetrics_; } /** *
     * Output only. Base metrics at the time the recommendation was generated.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetricsOrBuilder getBaseMetricsOrBuilder() { return getBaseMetrics(); } public static final int POTENTIAL_METRICS_FIELD_NUMBER = 2; private com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potentialMetrics_; /** *
     * Output only. Estimated metrics if the recommendation is applied.
     * 
* * .google.ads.googleads.v10.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 potentialMetrics_ != null; } /** *
     * Output only. Estimated metrics if the recommendation is applied.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The potentialMetrics. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics getPotentialMetrics() { return potentialMetrics_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : potentialMetrics_; } /** *
     * Output only. Estimated metrics if the recommendation is applied.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetricsOrBuilder getPotentialMetricsOrBuilder() { return getPotentialMetrics(); } 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 (baseMetrics_ != null) { output.writeMessage(1, getBaseMetrics()); } if (potentialMetrics_ != null) { output.writeMessage(2, getPotentialMetrics()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (baseMetrics_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBaseMetrics()); } if (potentialMetrics_ != null) { 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.v10.resources.Recommendation.RecommendationImpact)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationImpact parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationImpact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationImpact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.RecommendationImpact} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.RecommendationImpact) com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_RecommendationImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_RecommendationImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.class, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (baseMetricsBuilder_ == null) { baseMetrics_ = null; } else { baseMetrics_ = null; baseMetricsBuilder_ = null; } if (potentialMetricsBuilder_ == null) { potentialMetrics_ = null; } else { potentialMetrics_ = null; potentialMetricsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_RecommendationImpact_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact build() { com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact result = new com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact(this); if (baseMetricsBuilder_ == null) { result.baseMetrics_ = baseMetrics_; } else { result.baseMetrics_ = baseMetricsBuilder_.build(); } if (potentialMetricsBuilder_ == null) { result.potentialMetrics_ = potentialMetrics_; } else { result.potentialMetrics_ = potentialMetricsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact other) { if (other == com.google.ads.googleads.v10.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); break; } // case 10 case 18: { input.readMessage( getPotentialMetricsFieldBuilder().getBuilder(), extensionRegistry); 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 com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics baseMetrics_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetricsOrBuilder> baseMetricsBuilder_; /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the baseMetrics field is set. */ public boolean hasBaseMetrics() { return baseMetricsBuilder_ != null || baseMetrics_ != null; } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The baseMetrics. */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics getBaseMetrics() { if (baseMetricsBuilder_ == null) { return baseMetrics_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : baseMetrics_; } else { return baseMetricsBuilder_.getMessage(); } } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBaseMetrics(com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics value) { if (baseMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } baseMetrics_ = value; onChanged(); } else { baseMetricsBuilder_.setMessage(value); } return this; } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBaseMetrics( com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder builderForValue) { if (baseMetricsBuilder_ == null) { baseMetrics_ = builderForValue.build(); onChanged(); } else { baseMetricsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeBaseMetrics(com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics value) { if (baseMetricsBuilder_ == null) { if (baseMetrics_ != null) { baseMetrics_ = com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.newBuilder(baseMetrics_).mergeFrom(value).buildPartial(); } else { baseMetrics_ = value; } onChanged(); } else { baseMetricsBuilder_.mergeFrom(value); } return this; } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearBaseMetrics() { if (baseMetricsBuilder_ == null) { baseMetrics_ = null; onChanged(); } else { baseMetrics_ = null; baseMetricsBuilder_ = null; } return this; } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder getBaseMetricsBuilder() { onChanged(); return getBaseMetricsFieldBuilder().getBuilder(); } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetricsOrBuilder getBaseMetricsOrBuilder() { if (baseMetricsBuilder_ != null) { return baseMetricsBuilder_.getMessageOrBuilder(); } else { return baseMetrics_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : baseMetrics_; } } /** *
       * Output only. Base metrics at the time the recommendation was generated.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetricsOrBuilder> getBaseMetricsFieldBuilder() { if (baseMetricsBuilder_ == null) { baseMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetricsOrBuilder>( getBaseMetrics(), getParentForChildren(), isClean()); baseMetrics_ = null; } return baseMetricsBuilder_; } private com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potentialMetrics_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetricsOrBuilder> potentialMetricsBuilder_; /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the potentialMetrics field is set. */ public boolean hasPotentialMetrics() { return potentialMetricsBuilder_ != null || potentialMetrics_ != null; } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The potentialMetrics. */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics getPotentialMetrics() { if (potentialMetricsBuilder_ == null) { return potentialMetrics_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : potentialMetrics_; } else { return potentialMetricsBuilder_.getMessage(); } } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPotentialMetrics(com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics value) { if (potentialMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } potentialMetrics_ = value; onChanged(); } else { potentialMetricsBuilder_.setMessage(value); } return this; } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPotentialMetrics( com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder builderForValue) { if (potentialMetricsBuilder_ == null) { potentialMetrics_ = builderForValue.build(); onChanged(); } else { potentialMetricsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergePotentialMetrics(com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics value) { if (potentialMetricsBuilder_ == null) { if (potentialMetrics_ != null) { potentialMetrics_ = com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.newBuilder(potentialMetrics_).mergeFrom(value).buildPartial(); } else { potentialMetrics_ = value; } onChanged(); } else { potentialMetricsBuilder_.mergeFrom(value); } return this; } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPotentialMetrics() { if (potentialMetricsBuilder_ == null) { potentialMetrics_ = null; onChanged(); } else { potentialMetrics_ = null; potentialMetricsBuilder_ = null; } return this; } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder getPotentialMetricsBuilder() { onChanged(); return getPotentialMetricsFieldBuilder().getBuilder(); } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetricsOrBuilder getPotentialMetricsOrBuilder() { if (potentialMetricsBuilder_ != null) { return potentialMetricsBuilder_.getMessageOrBuilder(); } else { return potentialMetrics_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : potentialMetrics_; } } /** *
       * Output only. Estimated metrics if the recommendation is applied.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetricsOrBuilder> getPotentialMetricsFieldBuilder() { if (potentialMetricsBuilder_ == null) { potentialMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationImpact) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.RecommendationImpact) private static final com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationImpact getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecommendationMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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. 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.v10.resources.Recommendation.RecommendationMetrics} */ public static final class RecommendationMetrics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_RecommendationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_RecommendationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.class, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder.class); } private int bitField0_; public static final int IMPRESSIONS_FIELD_NUMBER = 6; 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_; } public static final int CLICKS_FIELD_NUMBER = 7; 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_; } public static final int COST_MICROS_FIELD_NUMBER = 8; 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_; } public static final int CONVERSIONS_FIELD_NUMBER = 9; 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_; } public static final int VIDEO_VIEWS_FIELD_NUMBER = 10; 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_ & 0x00000010) != 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_ & 0x00000010) != 0)) { output.writeDouble(10, videoViews_); } 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_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(10, videoViews_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics other = (com.google.ads.googleads.v10.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 (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 (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.v10.resources.Recommendation.RecommendationMetrics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.RecommendationMetrics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics) com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetricsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_RecommendationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_RecommendationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.class, com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); impressions_ = 0D; bitField0_ = (bitField0_ & ~0x00000001); clicks_ = 0D; bitField0_ = (bitField0_ & ~0x00000002); costMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); conversions_ = 0D; bitField0_ = (bitField0_ & ~0x00000008); videoViews_ = 0D; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_RecommendationMetrics_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics build() { com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics result = new com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics(this); 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.videoViews_ = videoViews_; to_bitField0_ |= 0x00000010; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics other) { if (other == com.google.ads.googleads.v10.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.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_ |= 0x00000010; break; } // case 81 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) { bitField0_ |= 0x00000001; impressions_ = value; 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) { bitField0_ |= 0x00000002; clicks_ = value; 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) { bitField0_ |= 0x00000004; costMicros_ = value; 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) { bitField0_ |= 0x00000008; conversions_ = value; 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 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_ & 0x00000010) != 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) { bitField0_ |= 0x00000010; videoViews_ = value; 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_ & ~0x00000010); 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.v10.resources.Recommendation.RecommendationMetrics) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics) private static final com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.RecommendationMetrics(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CampaignBudgetRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder getBudgetOptionsOrBuilder( int index); } /** *
   * The budget recommendation for budget constrained campaigns.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation} */ public static final class CampaignBudgetRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CampaignBudgetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CampaignBudgetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder.class); } public interface CampaignBudgetRecommendationOptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact getImpact(); /** *
       * Output only. The impact estimate if budget is changed to amount specified in this
       * option.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder(); } /** *
     * The impact estimates for a given budget amount.
     * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption} */ public static final class CampaignBudgetRecommendationOption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.class, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder.class); } private int bitField0_; public static final int BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 3; 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_; } public static final int IMPACT_FIELD_NUMBER = 2; private com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact_; /** *
       * Output only. The impact estimate if budget is changed to amount specified in this
       * option.
       * 
* * .google.ads.googleads.v10.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 impact_ != null; } /** *
       * Output only. The impact estimate if budget is changed to amount specified in this
       * option.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact getImpact() { return impact_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } /** *
       * Output only. The impact estimate if budget is changed to amount specified in this
       * option.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { return getImpact(); } 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 (impact_ != null) { 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 (impact_ != null) { 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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.class, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); budgetAmountMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); if (impactBuilder_ == null) { impact_ = null; } else { impact_ = null; impactBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption build() { com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption result = new com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.budgetAmountMicros_ = budgetAmountMicros_; to_bitField0_ |= 0x00000001; } if (impactBuilder_ == null) { result.impact_ = impact_; } else { result.impact_ = impactBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption other) { if (other == com.google.ads.googleads.v10.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); 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) { bitField0_ |= 0x00000001; budgetAmountMicros_ = value; 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.v10.resources.Recommendation.RecommendationImpact impact_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder> impactBuilder_; /** *
         * Output only. The impact estimate if budget is changed to amount specified in this
         * option.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impact field is set. */ public boolean hasImpact() { return impactBuilder_ != null || impact_ != null; } /** *
         * Output only. The impact estimate if budget is changed to amount specified in this
         * option.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact getImpact() { if (impactBuilder_ == null) { return impact_ == null ? com.google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact(com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (value == null) { throw new NullPointerException(); } impact_ = value; onChanged(); } else { impactBuilder_.setMessage(value); } return this; } /** *
         * Output only. The impact estimate if budget is changed to amount specified in this
         * option.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact( com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder builderForValue) { if (impactBuilder_ == null) { impact_ = builderForValue.build(); onChanged(); } else { impactBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Output only. The impact estimate if budget is changed to amount specified in this
         * option.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeImpact(com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (impact_ != null) { impact_ = com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.newBuilder(impact_).mergeFrom(value).buildPartial(); } else { impact_ = value; } onChanged(); } else { impactBuilder_.mergeFrom(value); } return this; } /** *
         * Output only. The impact estimate if budget is changed to amount specified in this
         * option.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearImpact() { if (impactBuilder_ == null) { impact_ = null; onChanged(); } else { impact_ = null; impactBuilder_ = null; } return this; } /** *
         * Output only. The impact estimate if budget is changed to amount specified in this
         * option.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder getImpactBuilder() { onChanged(); return getImpactFieldBuilder().getBuilder(); } /** *
         * Output only. The impact estimate if budget is changed to amount specified in this
         * option.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { if (impactBuilder_ != null) { return impactBuilder_.getMessageOrBuilder(); } else { return impact_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } } /** *
         * Output only. The impact estimate if budget is changed to amount specified in this
         * option.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder> getImpactFieldBuilder() { if (impactBuilder_ == null) { impactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) private static final com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption(); } public static com.google.ads.googleads.v10.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.v10.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_; /** *
     * 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_; /** *
     * 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; 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.v10.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.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CampaignBudgetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CampaignBudgetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); currentBudgetAmountMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); recommendedBudgetAmountMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); 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.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CampaignBudgetRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation(this); 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; } if (budgetOptionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { budgetOptions_ = java.util.Collections.unmodifiableList(budgetOptions_); bitField0_ = (bitField0_ & ~0x00000004); } result.budgetOptions_ = budgetOptions_; } else { result.budgetOptions_ = budgetOptionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation other) { if (other == com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption m = input.readMessage( com.google.ads.googleads.v10.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) { bitField0_ |= 0x00000001; currentBudgetAmountMicros_ = value; 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) { bitField0_ |= 0x00000002; recommendedBudgetAmountMicros_ = value; 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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder, com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBudgetOptions( int index, com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBudgetOptions( int index, com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addBudgetOptions(com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addBudgetOptions( int index, com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addBudgetOptions( com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addBudgetOptions( int index, com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder addBudgetOptionsBuilder() { return getBudgetOptionsFieldBuilder().addBuilder( com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder addBudgetOptionsBuilder( int index) { return getBudgetOptionsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder> getBudgetOptionsFieldBuilder() { if (budgetOptionsBuilder_ == null) { budgetOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder, com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeywordRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The recommended keyword.
     * 
* * .google.ads.googleads.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ com.google.ads.googleads.v10.common.KeywordInfo getKeyword(); /** *
     * Output only. The recommended keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getKeywordOrBuilder(); /** *
     * 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.v10.resources.Recommendation.KeywordRecommendation} */ public static final class KeywordRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new KeywordRecommendation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_KeywordRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_KeywordRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.Builder.class); } private int bitField0_; public static final int KEYWORD_FIELD_NUMBER = 1; private com.google.ads.googleads.v10.common.KeywordInfo keyword_; /** *
     * Output only. The recommended keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keyword field is set. */ @java.lang.Override public boolean hasKeyword() { return keyword_ != null; } /** *
     * Output only. The recommended keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ @java.lang.Override public com.google.ads.googleads.v10.common.KeywordInfo getKeyword() { return keyword_ == null ? com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance() : keyword_; } /** *
     * Output only. The recommended keyword.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getKeywordOrBuilder() { return getKeyword(); } public static final int RECOMMENDED_CPC_BID_MICROS_FIELD_NUMBER = 3; 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_ & 0x00000001) != 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 (keyword_ != null) { output.writeMessage(1, getKeyword()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(3, recommendedCpcBidMicros_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (keyword_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getKeyword()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, recommendedCpcBidMicros_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation other = (com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) obj; if (hasKeyword() != other.hasKeyword()) return false; if (hasKeyword()) { if (!getKeyword() .equals(other.getKeyword())) 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 (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.v10.resources.Recommendation.KeywordRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.KeywordRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_KeywordRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_KeywordRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (keywordBuilder_ == null) { keyword_ = null; } else { keyword_ = null; keywordBuilder_ = null; } recommendedCpcBidMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_KeywordRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (keywordBuilder_ == null) { result.keyword_ = keyword_; } else { result.keyword_ = keywordBuilder_.build(); } if (((from_bitField0_ & 0x00000001) != 0)) { result.recommendedCpcBidMicros_ = recommendedCpcBidMicros_; to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation other) { if (other == com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.getDefaultInstance()) return this; if (other.hasKeyword()) { mergeKeyword(other.getKeyword()); } 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); break; } // case 10 case 24: { recommendedCpcBidMicros_ = 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 com.google.ads.googleads.v10.common.KeywordInfo keyword_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder> keywordBuilder_; /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keyword field is set. */ public boolean hasKeyword() { return keywordBuilder_ != null || keyword_ != null; } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ public com.google.ads.googleads.v10.common.KeywordInfo getKeyword() { if (keywordBuilder_ == null) { return keyword_ == null ? com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance() : keyword_; } else { return keywordBuilder_.getMessage(); } } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword(com.google.ads.googleads.v10.common.KeywordInfo value) { if (keywordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyword_ = value; onChanged(); } else { keywordBuilder_.setMessage(value); } return this; } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword( com.google.ads.googleads.v10.common.KeywordInfo.Builder builderForValue) { if (keywordBuilder_ == null) { keyword_ = builderForValue.build(); onChanged(); } else { keywordBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeKeyword(com.google.ads.googleads.v10.common.KeywordInfo value) { if (keywordBuilder_ == null) { if (keyword_ != null) { keyword_ = com.google.ads.googleads.v10.common.KeywordInfo.newBuilder(keyword_).mergeFrom(value).buildPartial(); } else { keyword_ = value; } onChanged(); } else { keywordBuilder_.mergeFrom(value); } return this; } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearKeyword() { if (keywordBuilder_ == null) { keyword_ = null; onChanged(); } else { keyword_ = null; keywordBuilder_ = null; } return this; } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.KeywordInfo.Builder getKeywordBuilder() { onChanged(); return getKeywordFieldBuilder().getBuilder(); } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getKeywordOrBuilder() { if (keywordBuilder_ != null) { return keywordBuilder_.getMessageOrBuilder(); } else { return keyword_ == null ? com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance() : keyword_; } } /** *
       * Output only. The recommended keyword.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder> getKeywordFieldBuilder() { if (keywordBuilder_ == null) { keywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder>( getKeyword(), getParentForChildren(), isClean()); keyword_ = null; } return keywordBuilder_; } 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_ & 0x00000001) != 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) { bitField0_ |= 0x00000001; recommendedCpcBidMicros_ = value; 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_ & ~0x00000001); 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.v10.resources.Recommendation.KeywordRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TextAdRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v10.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.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ com.google.ads.googleads.v10.resources.Ad getAd(); /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.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.v10.resources.Recommendation.TextAdRecommendation} */ public static final class TextAdRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TextAdRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TextAdRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.Builder.class); } private int bitField0_; public static final int AD_FIELD_NUMBER = 1; private com.google.ads.googleads.v10.resources.Ad ad_; /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ad field is set. */ @java.lang.Override public boolean hasAd() { return ad_ != null; } /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Ad getAd() { return ad_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_; } /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.AdOrBuilder getAdOrBuilder() { return getAd(); } public static final int CREATION_DATE_FIELD_NUMBER = 4; 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_ & 0x00000001) != 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; 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_ & 0x00000002) != 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 (ad_ != null) { output.writeMessage(1, getAd()); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, creationDate_); } if (((bitField0_ & 0x00000002) != 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 (ad_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAd()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, creationDate_); } if (((bitField0_ & 0x00000002) != 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.v10.resources.Recommendation.TextAdRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.TextAdRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.TextAdRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.TextAdRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.TextAdRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TextAdRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TextAdRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (adBuilder_ == null) { ad_ = null; } else { ad_ = null; adBuilder_ = null; } creationDate_ = ""; bitField0_ = (bitField0_ & ~0x00000001); autoApplyDate_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TextAdRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (adBuilder_ == null) { result.ad_ = ad_; } else { result.ad_ = adBuilder_.build(); } if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.creationDate_ = creationDate_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.autoApplyDate_ = autoApplyDate_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation other) { if (other == com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.getDefaultInstance()) return this; if (other.hasAd()) { mergeAd(other.getAd()); } if (other.hasCreationDate()) { bitField0_ |= 0x00000001; creationDate_ = other.creationDate_; onChanged(); } if (other.hasAutoApplyDate()) { bitField0_ |= 0x00000002; autoApplyDate_ = other.autoApplyDate_; 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); break; } // case 10 case 34: { creationDate_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 34 case 42: { autoApplyDate_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; 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.v10.resources.Ad ad_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder> adBuilder_; /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ad field is set. */ public boolean hasAd() { return adBuilder_ != null || ad_ != null; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ public com.google.ads.googleads.v10.resources.Ad getAd() { if (adBuilder_ == null) { return ad_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_; } else { return adBuilder_.getMessage(); } } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAd(com.google.ads.googleads.v10.resources.Ad value) { if (adBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ad_ = value; onChanged(); } else { adBuilder_.setMessage(value); } return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAd( com.google.ads.googleads.v10.resources.Ad.Builder builderForValue) { if (adBuilder_ == null) { ad_ = builderForValue.build(); onChanged(); } else { adBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAd(com.google.ads.googleads.v10.resources.Ad value) { if (adBuilder_ == null) { if (ad_ != null) { ad_ = com.google.ads.googleads.v10.resources.Ad.newBuilder(ad_).mergeFrom(value).buildPartial(); } else { ad_ = value; } onChanged(); } else { adBuilder_.mergeFrom(value); } return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAd() { if (adBuilder_ == null) { ad_ = null; onChanged(); } else { ad_ = null; adBuilder_ = null; } return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Ad.Builder getAdBuilder() { onChanged(); return getAdFieldBuilder().getBuilder(); } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.AdOrBuilder getAdOrBuilder() { if (adBuilder_ != null) { return adBuilder_.getMessageOrBuilder(); } else { return ad_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_; } } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder> getAdFieldBuilder() { if (adBuilder_ == null) { adBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.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_ & 0x00000001) != 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(); } bitField0_ |= 0x00000001; creationDate_ = value; 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() { bitField0_ = (bitField0_ & ~0x00000001); creationDate_ = getDefaultInstance().getCreationDate(); 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); bitField0_ |= 0x00000001; creationDate_ = value; 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_ & 0x00000002) != 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(); } bitField0_ |= 0x00000002; autoApplyDate_ = value; 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() { bitField0_ = (bitField0_ & ~0x00000002); autoApplyDate_ = getDefaultInstance().getAutoApplyDate(); 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); bitField0_ |= 0x00000002; autoApplyDate_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.TextAdRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TargetCpaOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The available goals and corresponding options for Target CPA strategy.
     * 
* * repeated .google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getOptions(int index); /** *
     * Output only. The available goals and corresponding options for Target CPA strategy.
     * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation} */ public static final class TargetCpaOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetCpaOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetCpaOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.Builder.class); } public interface TargetCpaOptInRecommendationOptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) com.google.protobuf.MessageOrBuilder { /** *
       * Output only. The goal achieved by this option.
       * 
* * .google.ads.googleads.v10.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.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The goal. */ com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact getImpact(); /** *
       * Output only. The impact estimate if this option is selected.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder(); } /** *
     * The Target CPA opt-in option with impact estimate.
     * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption} */ public static final class TargetCpaOptInRecommendationOption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.class, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder.class); } private int bitField0_; public static final int GOAL_FIELD_NUMBER = 1; private int goal_; /** *
       * Output only. The goal achieved by this option.
       * 
* * .google.ads.googleads.v10.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.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The goal. */ @java.lang.Override public com.google.ads.googleads.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal getGoal() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal result = com.google.ads.googleads.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.valueOf(goal_); return result == null ? com.google.ads.googleads.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNRECOGNIZED : result; } public static final int TARGET_CPA_MICROS_FIELD_NUMBER = 5; 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_ & 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_; /** *
       * 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.v10.resources.Recommendation.RecommendationImpact impact_; /** *
       * Output only. The impact estimate if this option is selected.
       * 
* * .google.ads.googleads.v10.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 impact_ != null; } /** *
       * Output only. The impact estimate if this option is selected.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact getImpact() { return impact_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } /** *
       * Output only. The impact estimate if this option is selected.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { return getImpact(); } 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.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNSPECIFIED.getNumber()) { output.writeEnum(1, goal_); } if (impact_ != null) { 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.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, goal_); } if (impact_ != null) { 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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.class, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); goal_ = 0; targetCpaMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); requiredCampaignBudgetAmountMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); if (impactBuilder_ == null) { impact_ = null; } else { impact_ = null; impactBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption build() { com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption result = new com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.goal_ = goal_; if (((from_bitField0_ & 0x00000001) != 0)) { result.targetCpaMicros_ = targetCpaMicros_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.requiredCampaignBudgetAmountMicros_ = requiredCampaignBudgetAmountMicros_; to_bitField0_ |= 0x00000002; } if (impactBuilder_ == null) { result.impact_ = impact_; } else { result.impact_ = impactBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption other) { if (other == com.google.ads.googleads.v10.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(); break; } // case 8 case 34: { input.readMessage( getImpactFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 case 40: { targetCpaMicros_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 40 case 48: { requiredCampaignBudgetAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000002; 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.v10.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.v10.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; onChanged(); return this; } /** *
         * Output only. The goal achieved by this option.
         * 
* * .google.ads.googleads.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The goal. */ @java.lang.Override public com.google.ads.googleads.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal getGoal() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal result = com.google.ads.googleads.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.valueOf(goal_); return result == null ? com.google.ads.googleads.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNRECOGNIZED : result; } /** *
         * Output only. The goal achieved by this option.
         * 
* * .google.ads.googleads.v10.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.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal value) { if (value == null) { throw new NullPointerException(); } goal_ = value.getNumber(); onChanged(); return this; } /** *
         * Output only. The goal achieved by this option.
         * 
* * .google.ads.googleads.v10.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearGoal() { 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_ & 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_; } /** *
         * 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) { bitField0_ |= 0x00000001; targetCpaMicros_ = value; 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_ & ~0x00000001); 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_ & 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_; } /** *
         * 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) { bitField0_ |= 0x00000002; requiredCampaignBudgetAmountMicros_ = value; 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_ & ~0x00000002); requiredCampaignBudgetAmountMicros_ = 0L; onChanged(); return this; } private com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder> impactBuilder_; /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impact field is set. */ public boolean hasImpact() { return impactBuilder_ != null || impact_ != null; } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact getImpact() { if (impactBuilder_ == null) { return impact_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } else { return impactBuilder_.getMessage(); } } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact(com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (value == null) { throw new NullPointerException(); } impact_ = value; onChanged(); } else { impactBuilder_.setMessage(value); } return this; } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact( com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder builderForValue) { if (impactBuilder_ == null) { impact_ = builderForValue.build(); onChanged(); } else { impactBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeImpact(com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (impact_ != null) { impact_ = com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.newBuilder(impact_).mergeFrom(value).buildPartial(); } else { impact_ = value; } onChanged(); } else { impactBuilder_.mergeFrom(value); } return this; } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearImpact() { if (impactBuilder_ == null) { impact_ = null; onChanged(); } else { impact_ = null; impactBuilder_ = null; } return this; } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder getImpactBuilder() { onChanged(); return getImpactFieldBuilder().getBuilder(); } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { if (impactBuilder_ != null) { return impactBuilder_.getMessageOrBuilder(); } else { return impact_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } } /** *
         * Output only. The impact estimate if this option is selected.
         * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder> getImpactFieldBuilder() { if (impactBuilder_ == null) { impactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) private static final com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int OPTIONS_FIELD_NUMBER = 1; private java.util.List options_; /** *
     * Output only. The available goals and corresponding options for Target CPA strategy.
     * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.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_; /** *
     * 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.v10.resources.Recommendation.TargetCpaOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation) com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetCpaOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetCpaOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); } else { options_ = null; optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); recommendedTargetCpaMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetCpaOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { options_ = java.util.Collections.unmodifiableList(options_); bitField0_ = (bitField0_ & ~0x00000001); } result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.recommendedTargetCpaMicros_ = recommendedTargetCpaMicros_; to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation other) { if (other == com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption m = input.readMessage( com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder> optionsBuilder_; /** *
       * Output only. The available goals and corresponding options for Target CPA strategy.
       * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOptions( int index, com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOptions( int index, com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOptions(com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOptions( int index, com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOptions( com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addOptions( int index, com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder addOptionsBuilder() { return getOptionsFieldBuilder().addBuilder( com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.getDefaultInstance()); } /** *
       * Output only. The available goals and corresponding options for Target CPA strategy.
       * 
* * repeated .google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder addOptionsBuilder( int index) { return getOptionsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.getDefaultInstance()); } /** *
       * Output only. The available goals and corresponding options for Target CPA strategy.
       * 
* * repeated .google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder, com.google.ads.googleads.v10.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) { bitField0_ |= 0x00000002; recommendedTargetCpaMicros_ = value; 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.v10.resources.Recommendation.TargetCpaOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MaximizeConversionsOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation} */ public static final class MaximizeConversionsOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MaximizeConversionsOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MaximizeConversionsOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder.class); } private int bitField0_; public static final int RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 2; 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_; } 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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation) com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MaximizeConversionsOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MaximizeConversionsOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); recommendedBudgetAmountMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MaximizeConversionsOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.recommendedBudgetAmountMicros_ = recommendedBudgetAmountMicros_; to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation other) { if (other == com.google.ads.googleads.v10.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) { bitField0_ |= 0x00000001; recommendedBudgetAmountMicros_ = value; 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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnhancedCpcOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * The Enhanced Cost-Per-Click Opt-In recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation} */ public static final class EnhancedCpcOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_EnhancedCpcOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_EnhancedCpcOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.class, com.google.ads.googleads.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_EnhancedCpcOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_EnhancedCpcOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.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.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_EnhancedCpcOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation result = new com.google.ads.googleads.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation other) { if (other == com.google.ads.googleads.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SearchPartnersOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * The Search Partners Opt-In recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation} */ public static final class SearchPartnersOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_SearchPartnersOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_SearchPartnersOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.class, com.google.ads.googleads.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation) com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_SearchPartnersOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_SearchPartnersOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.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.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_SearchPartnersOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation result = new com.google.ads.googleads.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation other) { if (other == com.google.ads.googleads.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MaximizeClicksOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation} */ public static final class MaximizeClicksOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MaximizeClicksOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MaximizeClicksOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder.class); } private int bitField0_; public static final int RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 2; 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_; } 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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation) com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MaximizeClicksOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MaximizeClicksOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); recommendedBudgetAmountMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MaximizeClicksOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.recommendedBudgetAmountMicros_ = recommendedBudgetAmountMicros_; to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation other) { if (other == com.google.ads.googleads.v10.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) { bitField0_ |= 0x00000001; recommendedBudgetAmountMicros_ = value; 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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptimizeAdRotationRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation) com.google.protobuf.MessageOrBuilder { } /** *
   * The Optimize Ad Rotation recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation} */ public static final class OptimizeAdRotationRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_OptimizeAdRotationRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_OptimizeAdRotationRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.class, com.google.ads.googleads.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation) com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_OptimizeAdRotationRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_OptimizeAdRotationRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.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.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_OptimizeAdRotationRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation result = new com.google.ads.googleads.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation other) { if (other == com.google.ads.googleads.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CalloutExtensionRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Callout extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedExtensionsList(); /** *
     * Output only. Callout extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.common.CalloutFeedItem getRecommendedExtensions(int index); /** *
     * Output only. Callout extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getRecommendedExtensionsCount(); /** *
     * Output only. Callout extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedExtensionsOrBuilderList(); /** *
     * Output only. Callout extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder getRecommendedExtensionsOrBuilder( int index); } /** *
   * The Callout extension recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation} */ public static final class CalloutExtensionRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) CalloutExtensionRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use CalloutExtensionRecommendation.newBuilder() to construct. private CalloutExtensionRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CalloutExtensionRecommendation() { recommendedExtensions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CalloutExtensionRecommendation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CalloutExtensionRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CalloutExtensionRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.Builder.class); } public static final int RECOMMENDED_EXTENSIONS_FIELD_NUMBER = 1; private java.util.List recommendedExtensions_; /** *
     * Output only. Callout extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedExtensionsList() { return recommendedExtensions_; } /** *
     * Output only. Callout extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedExtensionsOrBuilderList() { return recommendedExtensions_; } /** *
     * Output only. Callout extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getRecommendedExtensionsCount() { return recommendedExtensions_.size(); } /** *
     * Output only. Callout extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.CalloutFeedItem getRecommendedExtensions(int index) { return recommendedExtensions_.get(index); } /** *
     * Output only. Callout extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder getRecommendedExtensionsOrBuilder( int index) { return recommendedExtensions_.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 < recommendedExtensions_.size(); i++) { output.writeMessage(1, recommendedExtensions_.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 < recommendedExtensions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, recommendedExtensions_.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.v10.resources.Recommendation.CalloutExtensionRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation other = (com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) obj; if (!getRecommendedExtensionsList() .equals(other.getRecommendedExtensionsList())) 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 (getRecommendedExtensionsCount() > 0) { hash = (37 * hash) + RECOMMENDED_EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + getRecommendedExtensionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation 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 extension recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CalloutExtensionRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CalloutExtensionRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (recommendedExtensionsBuilder_ == null) { recommendedExtensions_ = java.util.Collections.emptyList(); } else { recommendedExtensions_ = null; recommendedExtensionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CalloutExtensionRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation(this); int from_bitField0_ = bitField0_; if (recommendedExtensionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { recommendedExtensions_ = java.util.Collections.unmodifiableList(recommendedExtensions_); bitField0_ = (bitField0_ & ~0x00000001); } result.recommendedExtensions_ = recommendedExtensions_; } else { result.recommendedExtensions_ = recommendedExtensionsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation other) { if (other == com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.getDefaultInstance()) return this; if (recommendedExtensionsBuilder_ == null) { if (!other.recommendedExtensions_.isEmpty()) { if (recommendedExtensions_.isEmpty()) { recommendedExtensions_ = other.recommendedExtensions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.addAll(other.recommendedExtensions_); } onChanged(); } } else { if (!other.recommendedExtensions_.isEmpty()) { if (recommendedExtensionsBuilder_.isEmpty()) { recommendedExtensionsBuilder_.dispose(); recommendedExtensionsBuilder_ = null; recommendedExtensions_ = other.recommendedExtensions_; bitField0_ = (bitField0_ & ~0x00000001); recommendedExtensionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecommendedExtensionsFieldBuilder() : null; } else { recommendedExtensionsBuilder_.addAllMessages(other.recommendedExtensions_); } } } 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.v10.common.CalloutFeedItem m = input.readMessage( com.google.ads.googleads.v10.common.CalloutFeedItem.parser(), extensionRegistry); if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(m); } else { recommendedExtensionsBuilder_.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 recommendedExtensions_ = java.util.Collections.emptyList(); private void ensureRecommendedExtensionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { recommendedExtensions_ = new java.util.ArrayList(recommendedExtensions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.CalloutFeedItem, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder, com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder> recommendedExtensionsBuilder_; /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedExtensionsList() { if (recommendedExtensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(recommendedExtensions_); } else { return recommendedExtensionsBuilder_.getMessageList(); } } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getRecommendedExtensionsCount() { if (recommendedExtensionsBuilder_ == null) { return recommendedExtensions_.size(); } else { return recommendedExtensionsBuilder_.getCount(); } } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.CalloutFeedItem getRecommendedExtensions(int index) { if (recommendedExtensionsBuilder_ == null) { return recommendedExtensions_.get(index); } else { return recommendedExtensionsBuilder_.getMessage(index); } } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedExtensions( int index, com.google.ads.googleads.v10.common.CalloutFeedItem value) { if (recommendedExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.set(index, value); onChanged(); } else { recommendedExtensionsBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedExtensions( int index, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder builderForValue) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.set(index, builderForValue.build()); onChanged(); } else { recommendedExtensionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions(com.google.ads.googleads.v10.common.CalloutFeedItem value) { if (recommendedExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(value); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(value); } return this; } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions( int index, com.google.ads.googleads.v10.common.CalloutFeedItem value) { if (recommendedExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(index, value); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions( com.google.ads.googleads.v10.common.CalloutFeedItem.Builder builderForValue) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(builderForValue.build()); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions( int index, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder builderForValue) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(index, builderForValue.build()); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllRecommendedExtensions( java.lang.Iterable values) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recommendedExtensions_); onChanged(); } else { recommendedExtensionsBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRecommendedExtensions() { if (recommendedExtensionsBuilder_ == null) { recommendedExtensions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { recommendedExtensionsBuilder_.clear(); } return this; } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeRecommendedExtensions(int index) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.remove(index); onChanged(); } else { recommendedExtensionsBuilder_.remove(index); } return this; } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.CalloutFeedItem.Builder getRecommendedExtensionsBuilder( int index) { return getRecommendedExtensionsFieldBuilder().getBuilder(index); } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder getRecommendedExtensionsOrBuilder( int index) { if (recommendedExtensionsBuilder_ == null) { return recommendedExtensions_.get(index); } else { return recommendedExtensionsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedExtensionsOrBuilderList() { if (recommendedExtensionsBuilder_ != null) { return recommendedExtensionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recommendedExtensions_); } } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.CalloutFeedItem.Builder addRecommendedExtensionsBuilder() { return getRecommendedExtensionsFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.CalloutFeedItem.getDefaultInstance()); } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.CalloutFeedItem.Builder addRecommendedExtensionsBuilder( int index) { return getRecommendedExtensionsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.CalloutFeedItem.getDefaultInstance()); } /** *
       * Output only. Callout extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CalloutFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedExtensionsBuilderList() { return getRecommendedExtensionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.CalloutFeedItem, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder, com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder> getRecommendedExtensionsFieldBuilder() { if (recommendedExtensionsBuilder_ == null) { recommendedExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.CalloutFeedItem, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder, com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder>( recommendedExtensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); recommendedExtensions_ = null; } return recommendedExtensionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation(); } public static com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CalloutExtensionRecommendation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SitelinkExtensionRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Sitelink extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedExtensionsList(); /** *
     * Output only. Sitelink extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.common.SitelinkFeedItem getRecommendedExtensions(int index); /** *
     * Output only. Sitelink extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getRecommendedExtensionsCount(); /** *
     * Output only. Sitelink extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedExtensionsOrBuilderList(); /** *
     * Output only. Sitelink extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder getRecommendedExtensionsOrBuilder( int index); } /** *
   * The Sitelink extension recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation} */ public static final class SitelinkExtensionRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) SitelinkExtensionRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use SitelinkExtensionRecommendation.newBuilder() to construct. private SitelinkExtensionRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SitelinkExtensionRecommendation() { recommendedExtensions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SitelinkExtensionRecommendation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_SitelinkExtensionRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_SitelinkExtensionRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.Builder.class); } public static final int RECOMMENDED_EXTENSIONS_FIELD_NUMBER = 1; private java.util.List recommendedExtensions_; /** *
     * Output only. Sitelink extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedExtensionsList() { return recommendedExtensions_; } /** *
     * Output only. Sitelink extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedExtensionsOrBuilderList() { return recommendedExtensions_; } /** *
     * Output only. Sitelink extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getRecommendedExtensionsCount() { return recommendedExtensions_.size(); } /** *
     * Output only. Sitelink extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.SitelinkFeedItem getRecommendedExtensions(int index) { return recommendedExtensions_.get(index); } /** *
     * Output only. Sitelink extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder getRecommendedExtensionsOrBuilder( int index) { return recommendedExtensions_.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 < recommendedExtensions_.size(); i++) { output.writeMessage(1, recommendedExtensions_.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 < recommendedExtensions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, recommendedExtensions_.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.v10.resources.Recommendation.SitelinkExtensionRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation other = (com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) obj; if (!getRecommendedExtensionsList() .equals(other.getRecommendedExtensionsList())) 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 (getRecommendedExtensionsCount() > 0) { hash = (37 * hash) + RECOMMENDED_EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + getRecommendedExtensionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation 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 extension recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_SitelinkExtensionRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_SitelinkExtensionRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (recommendedExtensionsBuilder_ == null) { recommendedExtensions_ = java.util.Collections.emptyList(); } else { recommendedExtensions_ = null; recommendedExtensionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_SitelinkExtensionRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation(this); int from_bitField0_ = bitField0_; if (recommendedExtensionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { recommendedExtensions_ = java.util.Collections.unmodifiableList(recommendedExtensions_); bitField0_ = (bitField0_ & ~0x00000001); } result.recommendedExtensions_ = recommendedExtensions_; } else { result.recommendedExtensions_ = recommendedExtensionsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation other) { if (other == com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.getDefaultInstance()) return this; if (recommendedExtensionsBuilder_ == null) { if (!other.recommendedExtensions_.isEmpty()) { if (recommendedExtensions_.isEmpty()) { recommendedExtensions_ = other.recommendedExtensions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.addAll(other.recommendedExtensions_); } onChanged(); } } else { if (!other.recommendedExtensions_.isEmpty()) { if (recommendedExtensionsBuilder_.isEmpty()) { recommendedExtensionsBuilder_.dispose(); recommendedExtensionsBuilder_ = null; recommendedExtensions_ = other.recommendedExtensions_; bitField0_ = (bitField0_ & ~0x00000001); recommendedExtensionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecommendedExtensionsFieldBuilder() : null; } else { recommendedExtensionsBuilder_.addAllMessages(other.recommendedExtensions_); } } } 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.v10.common.SitelinkFeedItem m = input.readMessage( com.google.ads.googleads.v10.common.SitelinkFeedItem.parser(), extensionRegistry); if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(m); } else { recommendedExtensionsBuilder_.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 recommendedExtensions_ = java.util.Collections.emptyList(); private void ensureRecommendedExtensionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { recommendedExtensions_ = new java.util.ArrayList(recommendedExtensions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.SitelinkFeedItem, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder, com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder> recommendedExtensionsBuilder_; /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedExtensionsList() { if (recommendedExtensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(recommendedExtensions_); } else { return recommendedExtensionsBuilder_.getMessageList(); } } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getRecommendedExtensionsCount() { if (recommendedExtensionsBuilder_ == null) { return recommendedExtensions_.size(); } else { return recommendedExtensionsBuilder_.getCount(); } } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.SitelinkFeedItem getRecommendedExtensions(int index) { if (recommendedExtensionsBuilder_ == null) { return recommendedExtensions_.get(index); } else { return recommendedExtensionsBuilder_.getMessage(index); } } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedExtensions( int index, com.google.ads.googleads.v10.common.SitelinkFeedItem value) { if (recommendedExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.set(index, value); onChanged(); } else { recommendedExtensionsBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedExtensions( int index, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder builderForValue) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.set(index, builderForValue.build()); onChanged(); } else { recommendedExtensionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions(com.google.ads.googleads.v10.common.SitelinkFeedItem value) { if (recommendedExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(value); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(value); } return this; } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions( int index, com.google.ads.googleads.v10.common.SitelinkFeedItem value) { if (recommendedExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(index, value); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions( com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder builderForValue) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(builderForValue.build()); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions( int index, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder builderForValue) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(index, builderForValue.build()); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllRecommendedExtensions( java.lang.Iterable values) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recommendedExtensions_); onChanged(); } else { recommendedExtensionsBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRecommendedExtensions() { if (recommendedExtensionsBuilder_ == null) { recommendedExtensions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { recommendedExtensionsBuilder_.clear(); } return this; } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeRecommendedExtensions(int index) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.remove(index); onChanged(); } else { recommendedExtensionsBuilder_.remove(index); } return this; } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder getRecommendedExtensionsBuilder( int index) { return getRecommendedExtensionsFieldBuilder().getBuilder(index); } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder getRecommendedExtensionsOrBuilder( int index) { if (recommendedExtensionsBuilder_ == null) { return recommendedExtensions_.get(index); } else { return recommendedExtensionsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedExtensionsOrBuilderList() { if (recommendedExtensionsBuilder_ != null) { return recommendedExtensionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recommendedExtensions_); } } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder addRecommendedExtensionsBuilder() { return getRecommendedExtensionsFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.SitelinkFeedItem.getDefaultInstance()); } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder addRecommendedExtensionsBuilder( int index) { return getRecommendedExtensionsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.SitelinkFeedItem.getDefaultInstance()); } /** *
       * Output only. Sitelink extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.SitelinkFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedExtensionsBuilderList() { return getRecommendedExtensionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.SitelinkFeedItem, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder, com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder> getRecommendedExtensionsFieldBuilder() { if (recommendedExtensionsBuilder_ == null) { recommendedExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.SitelinkFeedItem, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder, com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder>( recommendedExtensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); recommendedExtensions_ = null; } return recommendedExtensionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation(); } public static com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SitelinkExtensionRecommendation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CallExtensionRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Call extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedExtensionsList(); /** *
     * Output only. Call extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.common.CallFeedItem getRecommendedExtensions(int index); /** *
     * Output only. Call extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getRecommendedExtensionsCount(); /** *
     * Output only. Call extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.List getRecommendedExtensionsOrBuilderList(); /** *
     * Output only. Call extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.common.CallFeedItemOrBuilder getRecommendedExtensionsOrBuilder( int index); } /** *
   * The Call extension recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation} */ public static final class CallExtensionRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) CallExtensionRecommendationOrBuilder { private static final long serialVersionUID = 0L; // Use CallExtensionRecommendation.newBuilder() to construct. private CallExtensionRecommendation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CallExtensionRecommendation() { recommendedExtensions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CallExtensionRecommendation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CallExtensionRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CallExtensionRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.Builder.class); } public static final int RECOMMENDED_EXTENSIONS_FIELD_NUMBER = 1; private java.util.List recommendedExtensions_; /** *
     * Output only. Call extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedExtensionsList() { return recommendedExtensions_; } /** *
     * Output only. Call extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getRecommendedExtensionsOrBuilderList() { return recommendedExtensions_; } /** *
     * Output only. Call extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getRecommendedExtensionsCount() { return recommendedExtensions_.size(); } /** *
     * Output only. Call extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.CallFeedItem getRecommendedExtensions(int index) { return recommendedExtensions_.get(index); } /** *
     * Output only. Call extensions recommended to be added.
     * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.CallFeedItemOrBuilder getRecommendedExtensionsOrBuilder( int index) { return recommendedExtensions_.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 < recommendedExtensions_.size(); i++) { output.writeMessage(1, recommendedExtensions_.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 < recommendedExtensions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, recommendedExtensions_.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.v10.resources.Recommendation.CallExtensionRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation other = (com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) obj; if (!getRecommendedExtensionsList() .equals(other.getRecommendedExtensionsList())) 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 (getRecommendedExtensionsCount() > 0) { hash = (37 * hash) + RECOMMENDED_EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + getRecommendedExtensionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation 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 extension recommendation.
     * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CallExtensionRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CallExtensionRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (recommendedExtensionsBuilder_ == null) { recommendedExtensions_ = java.util.Collections.emptyList(); } else { recommendedExtensions_ = null; recommendedExtensionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_CallExtensionRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation(this); int from_bitField0_ = bitField0_; if (recommendedExtensionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { recommendedExtensions_ = java.util.Collections.unmodifiableList(recommendedExtensions_); bitField0_ = (bitField0_ & ~0x00000001); } result.recommendedExtensions_ = recommendedExtensions_; } else { result.recommendedExtensions_ = recommendedExtensionsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation other) { if (other == com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.getDefaultInstance()) return this; if (recommendedExtensionsBuilder_ == null) { if (!other.recommendedExtensions_.isEmpty()) { if (recommendedExtensions_.isEmpty()) { recommendedExtensions_ = other.recommendedExtensions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.addAll(other.recommendedExtensions_); } onChanged(); } } else { if (!other.recommendedExtensions_.isEmpty()) { if (recommendedExtensionsBuilder_.isEmpty()) { recommendedExtensionsBuilder_.dispose(); recommendedExtensionsBuilder_ = null; recommendedExtensions_ = other.recommendedExtensions_; bitField0_ = (bitField0_ & ~0x00000001); recommendedExtensionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecommendedExtensionsFieldBuilder() : null; } else { recommendedExtensionsBuilder_.addAllMessages(other.recommendedExtensions_); } } } 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.v10.common.CallFeedItem m = input.readMessage( com.google.ads.googleads.v10.common.CallFeedItem.parser(), extensionRegistry); if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(m); } else { recommendedExtensionsBuilder_.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 recommendedExtensions_ = java.util.Collections.emptyList(); private void ensureRecommendedExtensionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { recommendedExtensions_ = new java.util.ArrayList(recommendedExtensions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.CallFeedItem, com.google.ads.googleads.v10.common.CallFeedItem.Builder, com.google.ads.googleads.v10.common.CallFeedItemOrBuilder> recommendedExtensionsBuilder_; /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedExtensionsList() { if (recommendedExtensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(recommendedExtensions_); } else { return recommendedExtensionsBuilder_.getMessageList(); } } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getRecommendedExtensionsCount() { if (recommendedExtensionsBuilder_ == null) { return recommendedExtensions_.size(); } else { return recommendedExtensionsBuilder_.getCount(); } } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.CallFeedItem getRecommendedExtensions(int index) { if (recommendedExtensionsBuilder_ == null) { return recommendedExtensions_.get(index); } else { return recommendedExtensionsBuilder_.getMessage(index); } } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedExtensions( int index, com.google.ads.googleads.v10.common.CallFeedItem value) { if (recommendedExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.set(index, value); onChanged(); } else { recommendedExtensionsBuilder_.setMessage(index, value); } return this; } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedExtensions( int index, com.google.ads.googleads.v10.common.CallFeedItem.Builder builderForValue) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.set(index, builderForValue.build()); onChanged(); } else { recommendedExtensionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions(com.google.ads.googleads.v10.common.CallFeedItem value) { if (recommendedExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(value); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(value); } return this; } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions( int index, com.google.ads.googleads.v10.common.CallFeedItem value) { if (recommendedExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(index, value); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(index, value); } return this; } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions( com.google.ads.googleads.v10.common.CallFeedItem.Builder builderForValue) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(builderForValue.build()); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRecommendedExtensions( int index, com.google.ads.googleads.v10.common.CallFeedItem.Builder builderForValue) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.add(index, builderForValue.build()); onChanged(); } else { recommendedExtensionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllRecommendedExtensions( java.lang.Iterable values) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recommendedExtensions_); onChanged(); } else { recommendedExtensionsBuilder_.addAllMessages(values); } return this; } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRecommendedExtensions() { if (recommendedExtensionsBuilder_ == null) { recommendedExtensions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { recommendedExtensionsBuilder_.clear(); } return this; } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeRecommendedExtensions(int index) { if (recommendedExtensionsBuilder_ == null) { ensureRecommendedExtensionsIsMutable(); recommendedExtensions_.remove(index); onChanged(); } else { recommendedExtensionsBuilder_.remove(index); } return this; } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.CallFeedItem.Builder getRecommendedExtensionsBuilder( int index) { return getRecommendedExtensionsFieldBuilder().getBuilder(index); } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.CallFeedItemOrBuilder getRecommendedExtensionsOrBuilder( int index) { if (recommendedExtensionsBuilder_ == null) { return recommendedExtensions_.get(index); } else { return recommendedExtensionsBuilder_.getMessageOrBuilder(index); } } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedExtensionsOrBuilderList() { if (recommendedExtensionsBuilder_ != null) { return recommendedExtensionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recommendedExtensions_); } } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.CallFeedItem.Builder addRecommendedExtensionsBuilder() { return getRecommendedExtensionsFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance()); } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.CallFeedItem.Builder addRecommendedExtensionsBuilder( int index) { return getRecommendedExtensionsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance()); } /** *
       * Output only. Call extensions recommended to be added.
       * 
* * repeated .google.ads.googleads.v10.common.CallFeedItem recommended_extensions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getRecommendedExtensionsBuilderList() { return getRecommendedExtensionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.CallFeedItem, com.google.ads.googleads.v10.common.CallFeedItem.Builder, com.google.ads.googleads.v10.common.CallFeedItemOrBuilder> getRecommendedExtensionsFieldBuilder() { if (recommendedExtensionsBuilder_ == null) { recommendedExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.CallFeedItem, com.google.ads.googleads.v10.common.CallFeedItem.Builder, com.google.ads.googleads.v10.common.CallFeedItemOrBuilder>( recommendedExtensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); recommendedExtensions_ = null; } return recommendedExtensionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation(); } public static com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CallExtensionRecommendation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeywordMatchTypeRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The existing keyword where the match type should be more broad.
     * 
* * .google.ads.googleads.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ com.google.ads.googleads.v10.common.KeywordInfo getKeyword(); /** *
     * Output only. The existing keyword where the match type should be more broad.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getKeywordOrBuilder(); /** *
     * Output only. The recommended new match type.
     * 
* * .google.ads.googleads.v10.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.v10.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedMatchType. */ com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType getRecommendedMatchType(); } /** *
   * The keyword match type recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation} */ public static final class KeywordMatchTypeRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_KeywordMatchTypeRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_KeywordMatchTypeRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.Builder.class); } public static final int KEYWORD_FIELD_NUMBER = 1; private com.google.ads.googleads.v10.common.KeywordInfo keyword_; /** *
     * Output only. The existing keyword where the match type should be more broad.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keyword field is set. */ @java.lang.Override public boolean hasKeyword() { return keyword_ != null; } /** *
     * Output only. The existing keyword where the match type should be more broad.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ @java.lang.Override public com.google.ads.googleads.v10.common.KeywordInfo getKeyword() { return keyword_ == null ? com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance() : keyword_; } /** *
     * Output only. The existing keyword where the match type should be more broad.
     * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getKeywordOrBuilder() { return getKeyword(); } public static final int RECOMMENDED_MATCH_TYPE_FIELD_NUMBER = 2; private int recommendedMatchType_; /** *
     * Output only. The recommended new match type.
     * 
* * .google.ads.googleads.v10.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.v10.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedMatchType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType getRecommendedMatchType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType result = com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType.valueOf(recommendedMatchType_); return result == null ? com.google.ads.googleads.v10.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 (keyword_ != null) { output.writeMessage(1, getKeyword()); } if (recommendedMatchType_ != com.google.ads.googleads.v10.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 (keyword_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getKeyword()); } if (recommendedMatchType_ != com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordMatchTypeRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.KeywordMatchTypeRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation) com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_KeywordMatchTypeRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_KeywordMatchTypeRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (keywordBuilder_ == null) { keyword_ = null; } else { keyword_ = null; keywordBuilder_ = null; } recommendedMatchType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_KeywordMatchTypeRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation(this); if (keywordBuilder_ == null) { result.keyword_ = keyword_; } else { result.keyword_ = keywordBuilder_.build(); } result.recommendedMatchType_ = recommendedMatchType_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation other) { if (other == com.google.ads.googleads.v10.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); break; } // case 10 case 16: { recommendedMatchType_ = input.readEnum(); 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 com.google.ads.googleads.v10.common.KeywordInfo keyword_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder> keywordBuilder_; /** *
       * Output only. The existing keyword where the match type should be more broad.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the keyword field is set. */ public boolean hasKeyword() { return keywordBuilder_ != null || keyword_ != null; } /** *
       * Output only. The existing keyword where the match type should be more broad.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keyword. */ public com.google.ads.googleads.v10.common.KeywordInfo getKeyword() { if (keywordBuilder_ == null) { return keyword_ == null ? com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance() : keyword_; } else { return keywordBuilder_.getMessage(); } } /** *
       * Output only. The existing keyword where the match type should be more broad.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword(com.google.ads.googleads.v10.common.KeywordInfo value) { if (keywordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyword_ = value; onChanged(); } else { keywordBuilder_.setMessage(value); } return this; } /** *
       * Output only. The existing keyword where the match type should be more broad.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword( com.google.ads.googleads.v10.common.KeywordInfo.Builder builderForValue) { if (keywordBuilder_ == null) { keyword_ = builderForValue.build(); onChanged(); } else { keywordBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Output only. The existing keyword where the match type should be more broad.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeKeyword(com.google.ads.googleads.v10.common.KeywordInfo value) { if (keywordBuilder_ == null) { if (keyword_ != null) { keyword_ = com.google.ads.googleads.v10.common.KeywordInfo.newBuilder(keyword_).mergeFrom(value).buildPartial(); } else { keyword_ = value; } onChanged(); } else { keywordBuilder_.mergeFrom(value); } return this; } /** *
       * Output only. The existing keyword where the match type should be more broad.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearKeyword() { if (keywordBuilder_ == null) { keyword_ = null; onChanged(); } else { keyword_ = null; keywordBuilder_ = null; } return this; } /** *
       * Output only. The existing keyword where the match type should be more broad.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.KeywordInfo.Builder getKeywordBuilder() { onChanged(); return getKeywordFieldBuilder().getBuilder(); } /** *
       * Output only. The existing keyword where the match type should be more broad.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getKeywordOrBuilder() { if (keywordBuilder_ != null) { return keywordBuilder_.getMessageOrBuilder(); } else { return keyword_ == null ? com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance() : keyword_; } } /** *
       * Output only. The existing keyword where the match type should be more broad.
       * 
* * .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder> getKeywordFieldBuilder() { if (keywordBuilder_ == null) { keywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder>( getKeyword(), getParentForChildren(), isClean()); keyword_ = null; } return keywordBuilder_; } private int recommendedMatchType_ = 0; /** *
       * Output only. The recommended new match type.
       * 
* * .google.ads.googleads.v10.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.v10.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; onChanged(); return this; } /** *
       * Output only. The recommended new match type.
       * 
* * .google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedMatchType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType getRecommendedMatchType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType result = com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType.valueOf(recommendedMatchType_); return result == null ? com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType.UNRECOGNIZED : result; } /** *
       * Output only. The recommended new match type.
       * 
* * .google.ads.googleads.v10.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.v10.enums.KeywordMatchTypeEnum.KeywordMatchType value) { if (value == null) { throw new NullPointerException(); } recommendedMatchType_ = value.getNumber(); onChanged(); return this; } /** *
       * Output only. The recommended new match type.
       * 
* * .google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRecommendedMatchType() { 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.v10.resources.Recommendation.KeywordMatchTypeRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordMatchTypeRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MoveUnusedBudgetRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The budgetRecommendation. */ com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation getBudgetRecommendation(); /** *
     * Output only. The recommendation for the constrained budget to increase.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getBudgetRecommendationOrBuilder(); } /** *
   * The move unused budget recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation} */ public static final class MoveUnusedBudgetRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MoveUnusedBudgetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MoveUnusedBudgetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder.class); } private int bitField0_; public static final int EXCESS_CAMPAIGN_BUDGET_FIELD_NUMBER = 3; 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.v10.resources.Recommendation.CampaignBudgetRecommendation budgetRecommendation_; /** *
     * Output only. The recommendation for the constrained budget to increase.
     * 
* * .google.ads.googleads.v10.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 budgetRecommendation_ != null; } /** *
     * Output only. The recommendation for the constrained budget to increase.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The budgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation getBudgetRecommendation() { return budgetRecommendation_ == null ? com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance() : budgetRecommendation_; } /** *
     * Output only. The recommendation for the constrained budget to increase.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getBudgetRecommendationOrBuilder() { return getBudgetRecommendation(); } 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 (budgetRecommendation_ != null) { 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 (budgetRecommendation_ != null) { 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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation) com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MoveUnusedBudgetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MoveUnusedBudgetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); excessCampaignBudget_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (budgetRecommendationBuilder_ == null) { budgetRecommendation_ = null; } else { budgetRecommendation_ = null; budgetRecommendationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_MoveUnusedBudgetRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.excessCampaignBudget_ = excessCampaignBudget_; if (budgetRecommendationBuilder_ == null) { result.budgetRecommendation_ = budgetRecommendation_; } else { result.budgetRecommendation_ = budgetRecommendationBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation other) { if (other == com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance()) return this; if (other.hasExcessCampaignBudget()) { bitField0_ |= 0x00000001; excessCampaignBudget_ = other.excessCampaignBudget_; 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); 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(); } bitField0_ |= 0x00000001; excessCampaignBudget_ = value; 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() { bitField0_ = (bitField0_ & ~0x00000001); excessCampaignBudget_ = getDefaultInstance().getExcessCampaignBudget(); 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); bitField0_ |= 0x00000001; excessCampaignBudget_ = value; onChanged(); return this; } private com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budgetRecommendation_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> budgetRecommendationBuilder_; /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the budgetRecommendation field is set. */ public boolean hasBudgetRecommendation() { return budgetRecommendationBuilder_ != null || budgetRecommendation_ != null; } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The budgetRecommendation. */ public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation getBudgetRecommendation() { if (budgetRecommendationBuilder_ == null) { return budgetRecommendation_ == null ? com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance() : budgetRecommendation_; } else { return budgetRecommendationBuilder_.getMessage(); } } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBudgetRecommendation(com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation value) { if (budgetRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } budgetRecommendation_ = value; onChanged(); } else { budgetRecommendationBuilder_.setMessage(value); } return this; } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBudgetRecommendation( com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder builderForValue) { if (budgetRecommendationBuilder_ == null) { budgetRecommendation_ = builderForValue.build(); onChanged(); } else { budgetRecommendationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeBudgetRecommendation(com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation value) { if (budgetRecommendationBuilder_ == null) { if (budgetRecommendation_ != null) { budgetRecommendation_ = com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.newBuilder(budgetRecommendation_).mergeFrom(value).buildPartial(); } else { budgetRecommendation_ = value; } onChanged(); } else { budgetRecommendationBuilder_.mergeFrom(value); } return this; } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearBudgetRecommendation() { if (budgetRecommendationBuilder_ == null) { budgetRecommendation_ = null; onChanged(); } else { budgetRecommendation_ = null; budgetRecommendationBuilder_ = null; } return this; } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder getBudgetRecommendationBuilder() { onChanged(); return getBudgetRecommendationFieldBuilder().getBuilder(); } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getBudgetRecommendationOrBuilder() { if (budgetRecommendationBuilder_ != null) { return budgetRecommendationBuilder_.getMessageOrBuilder(); } else { return budgetRecommendation_ == null ? com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance() : budgetRecommendation_; } } /** *
       * Output only. The recommendation for the constrained budget to increase.
       * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> getBudgetRecommendationFieldBuilder() { if (budgetRecommendationBuilder_ == null) { budgetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TargetRoasOptInRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.resources.Recommendation.TargetRoasOptInRecommendation} */ public static final class TargetRoasOptInRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetRoasOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetRoasOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.Builder.class); } private int bitField0_; public static final int RECOMMENDED_TARGET_ROAS_FIELD_NUMBER = 1; 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_; } public static final int REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 2; 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_; } 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.v10.resources.Recommendation.TargetRoasOptInRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetRoasOptInRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetRoasOptInRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetRoasOptInRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.TargetRoasOptInRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation) com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetRoasOptInRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetRoasOptInRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); recommendedTargetRoas_ = 0D; bitField0_ = (bitField0_ & ~0x00000001); requiredCampaignBudgetAmountMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_TargetRoasOptInRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation(this); 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_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation other) { if (other == com.google.ads.googleads.v10.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) { bitField0_ |= 0x00000001; recommendedTargetRoas_ = value; 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) { bitField0_ |= 0x00000002; requiredCampaignBudgetAmountMicros_ = value; 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.v10.resources.Recommendation.TargetRoasOptInRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetRoasOptInRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponsiveSearchAdAssetRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v10.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.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAd. */ com.google.ads.googleads.v10.resources.Ad getCurrentAd(); /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.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.v10.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.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedAssets. */ com.google.ads.googleads.v10.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.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.resources.AdOrBuilder getRecommendedAssetsOrBuilder(); } /** *
   * The add responsive search ad asset recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation} */ public static final class ResponsiveSearchAdAssetRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder.class); } public static final int CURRENT_AD_FIELD_NUMBER = 1; private com.google.ads.googleads.v10.resources.Ad currentAd_; /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v10.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 currentAd_ != null; } /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAd. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Ad getCurrentAd() { return currentAd_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : currentAd_; } /** *
     * Output only. The current ad to be updated.
     * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.AdOrBuilder getCurrentAdOrBuilder() { return getCurrentAd(); } public static final int RECOMMENDED_ASSETS_FIELD_NUMBER = 2; private com.google.ads.googleads.v10.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.v10.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 recommendedAssets_ != null; } /** *
     * Output only. The recommended assets. This is populated only with the new headlines
     * and/or descriptions, and is otherwise empty.
     * 
* * .google.ads.googleads.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedAssets. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Ad getRecommendedAssets() { return recommendedAssets_ == null ? com.google.ads.googleads.v10.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.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.AdOrBuilder getRecommendedAssetsOrBuilder() { return getRecommendedAssets(); } 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 (currentAd_ != null) { output.writeMessage(1, getCurrentAd()); } if (recommendedAssets_ != null) { output.writeMessage(2, getRecommendedAssets()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (currentAd_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCurrentAd()); } if (recommendedAssets_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRecommendedAssets()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (currentAdBuilder_ == null) { currentAd_ = null; } else { currentAd_ = null; currentAdBuilder_ = null; } if (recommendedAssetsBuilder_ == null) { recommendedAssets_ = null; } else { recommendedAssets_ = null; recommendedAssetsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation(this); if (currentAdBuilder_ == null) { result.currentAd_ = currentAd_; } else { result.currentAd_ = currentAdBuilder_.build(); } if (recommendedAssetsBuilder_ == null) { result.recommendedAssets_ = recommendedAssets_; } else { result.recommendedAssets_ = recommendedAssetsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation other) { if (other == com.google.ads.googleads.v10.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 10: { input.readMessage( getCurrentAdFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getRecommendedAssetsFieldBuilder().getBuilder(), extensionRegistry); 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 com.google.ads.googleads.v10.resources.Ad currentAd_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder> currentAdBuilder_; /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the currentAd field is set. */ public boolean hasCurrentAd() { return currentAdBuilder_ != null || currentAd_ != null; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentAd. */ public com.google.ads.googleads.v10.resources.Ad getCurrentAd() { if (currentAdBuilder_ == null) { return currentAd_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : currentAd_; } else { return currentAdBuilder_.getMessage(); } } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCurrentAd(com.google.ads.googleads.v10.resources.Ad value) { if (currentAdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentAd_ = value; onChanged(); } else { currentAdBuilder_.setMessage(value); } return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCurrentAd( com.google.ads.googleads.v10.resources.Ad.Builder builderForValue) { if (currentAdBuilder_ == null) { currentAd_ = builderForValue.build(); onChanged(); } else { currentAdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCurrentAd(com.google.ads.googleads.v10.resources.Ad value) { if (currentAdBuilder_ == null) { if (currentAd_ != null) { currentAd_ = com.google.ads.googleads.v10.resources.Ad.newBuilder(currentAd_).mergeFrom(value).buildPartial(); } else { currentAd_ = value; } onChanged(); } else { currentAdBuilder_.mergeFrom(value); } return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCurrentAd() { if (currentAdBuilder_ == null) { currentAd_ = null; onChanged(); } else { currentAd_ = null; currentAdBuilder_ = null; } return this; } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Ad.Builder getCurrentAdBuilder() { onChanged(); return getCurrentAdFieldBuilder().getBuilder(); } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.AdOrBuilder getCurrentAdOrBuilder() { if (currentAdBuilder_ != null) { return currentAdBuilder_.getMessageOrBuilder(); } else { return currentAd_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : currentAd_; } } /** *
       * Output only. The current ad to be updated.
       * 
* * .google.ads.googleads.v10.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder> getCurrentAdFieldBuilder() { if (currentAdBuilder_ == null) { currentAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder>( getCurrentAd(), getParentForChildren(), isClean()); currentAd_ = null; } return currentAdBuilder_; } private com.google.ads.googleads.v10.resources.Ad recommendedAssets_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.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.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the recommendedAssets field is set. */ public boolean hasRecommendedAssets() { return recommendedAssetsBuilder_ != null || recommendedAssets_ != null; } /** *
       * Output only. The recommended assets. This is populated only with the new headlines
       * and/or descriptions, and is otherwise empty.
       * 
* * .google.ads.googleads.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The recommendedAssets. */ public com.google.ads.googleads.v10.resources.Ad getRecommendedAssets() { if (recommendedAssetsBuilder_ == null) { return recommendedAssets_ == null ? com.google.ads.googleads.v10.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.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedAssets(com.google.ads.googleads.v10.resources.Ad value) { if (recommendedAssetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendedAssets_ = value; onChanged(); } else { recommendedAssetsBuilder_.setMessage(value); } 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.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRecommendedAssets( com.google.ads.googleads.v10.resources.Ad.Builder builderForValue) { if (recommendedAssetsBuilder_ == null) { recommendedAssets_ = builderForValue.build(); onChanged(); } else { recommendedAssetsBuilder_.setMessage(builderForValue.build()); } 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.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRecommendedAssets(com.google.ads.googleads.v10.resources.Ad value) { if (recommendedAssetsBuilder_ == null) { if (recommendedAssets_ != null) { recommendedAssets_ = com.google.ads.googleads.v10.resources.Ad.newBuilder(recommendedAssets_).mergeFrom(value).buildPartial(); } else { recommendedAssets_ = value; } onChanged(); } else { recommendedAssetsBuilder_.mergeFrom(value); } 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.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRecommendedAssets() { if (recommendedAssetsBuilder_ == null) { recommendedAssets_ = null; onChanged(); } else { recommendedAssets_ = null; recommendedAssetsBuilder_ = null; } 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.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Ad.Builder getRecommendedAssetsBuilder() { 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.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.AdOrBuilder getRecommendedAssetsOrBuilder() { if (recommendedAssetsBuilder_ != null) { return recommendedAssetsBuilder_.getMessageOrBuilder(); } else { return recommendedAssets_ == null ? com.google.ads.googleads.v10.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.v10.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder> getRecommendedAssetsFieldBuilder() { if (recommendedAssetsBuilder_ == null) { recommendedAssetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponsiveSearchAdRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v10.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.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ com.google.ads.googleads.v10.resources.Ad getAd(); /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.resources.AdOrBuilder getAdOrBuilder(); } /** *
   * The add responsive search ad recommendation.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation} */ public static final class ResponsiveSearchAdRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_ResponsiveSearchAdRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_ResponsiveSearchAdRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder.class); } public static final int AD_FIELD_NUMBER = 1; private com.google.ads.googleads.v10.resources.Ad ad_; /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ad field is set. */ @java.lang.Override public boolean hasAd() { return ad_ != null; } /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Ad getAd() { return ad_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_; } /** *
     * Output only. Recommended ad.
     * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.AdOrBuilder getAdOrBuilder() { return getAd(); } 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 (ad_ != null) { output.writeMessage(1, getAd()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ad_ != null) { 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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_ResponsiveSearchAdRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_ResponsiveSearchAdRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (adBuilder_ == null) { ad_ = null; } else { ad_ = null; adBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_ResponsiveSearchAdRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation(this); if (adBuilder_ == null) { result.ad_ = ad_; } else { result.ad_ = adBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation other) { if (other == com.google.ads.googleads.v10.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); 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 com.google.ads.googleads.v10.resources.Ad ad_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder> adBuilder_; /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the ad field is set. */ public boolean hasAd() { return adBuilder_ != null || ad_ != null; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ad. */ public com.google.ads.googleads.v10.resources.Ad getAd() { if (adBuilder_ == null) { return ad_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_; } else { return adBuilder_.getMessage(); } } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAd(com.google.ads.googleads.v10.resources.Ad value) { if (adBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ad_ = value; onChanged(); } else { adBuilder_.setMessage(value); } return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAd( com.google.ads.googleads.v10.resources.Ad.Builder builderForValue) { if (adBuilder_ == null) { ad_ = builderForValue.build(); onChanged(); } else { adBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAd(com.google.ads.googleads.v10.resources.Ad value) { if (adBuilder_ == null) { if (ad_ != null) { ad_ = com.google.ads.googleads.v10.resources.Ad.newBuilder(ad_).mergeFrom(value).buildPartial(); } else { ad_ = value; } onChanged(); } else { adBuilder_.mergeFrom(value); } return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAd() { if (adBuilder_ == null) { ad_ = null; onChanged(); } else { ad_ = null; adBuilder_ = null; } return this; } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Ad.Builder getAdBuilder() { onChanged(); return getAdFieldBuilder().getBuilder(); } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.AdOrBuilder getAdOrBuilder() { if (adBuilder_ != null) { return adBuilder_.getMessageOrBuilder(); } else { return ad_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_; } } /** *
       * Output only. Recommended ad.
       * 
* * .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder> getAdFieldBuilder() { if (adBuilder_ == null) { adBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UseBroadMatchKeywordRecommendationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) com.google.protobuf.MessageOrBuilder { /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.common.KeywordInfo getKeyword(int index); /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.ads.googleads.v10.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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation} */ public static final class UseBroadMatchKeywordRecommendation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_UseBroadMatchKeywordRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_UseBroadMatchKeywordRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder.class); } public static final int KEYWORD_FIELD_NUMBER = 1; private java.util.List keyword_; /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.KeywordInfo getKeyword(int index) { return keyword_.get(index); } /** *
     * Output only. Sample of keywords to be expanded to Broad Match.
     * 
* * repeated .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.common.KeywordInfoOrBuilder getKeywordOrBuilder( int index) { return keyword_.get(index); } public static final int SUGGESTED_KEYWORDS_COUNT_FIELD_NUMBER = 2; 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_; } public static final int CAMPAIGN_KEYWORDS_COUNT_FIELD_NUMBER = 3; 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_; } public static final int CAMPAIGN_USES_SHARED_BUDGET_FIELD_NUMBER = 4; 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_; } public static final int REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 5; 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_; } 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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation other = (com.google.ads.googleads.v10.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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_UseBroadMatchKeywordRecommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_UseBroadMatchKeywordRecommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.class, com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); 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.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_UseBroadMatchKeywordRecommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation build() { com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation result = new com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation(this); int from_bitField0_ = bitField0_; if (keywordBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { keyword_ = java.util.Collections.unmodifiableList(keyword_); bitField0_ = (bitField0_ & ~0x00000001); } result.keyword_ = keyword_; } else { result.keyword_ = keywordBuilder_.build(); } result.suggestedKeywordsCount_ = suggestedKeywordsCount_; result.campaignKeywordsCount_ = campaignKeywordsCount_; result.campaignUsesSharedBudget_ = campaignUsesSharedBudget_; result.requiredCampaignBudgetAmountMicros_ = requiredCampaignBudgetAmountMicros_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation other) { if (other == com.google.ads.googleads.v10.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.v10.common.KeywordInfo m = input.readMessage( com.google.ads.googleads.v10.common.KeywordInfo.parser(), extensionRegistry); if (keywordBuilder_ == null) { ensureKeywordIsMutable(); keyword_.add(m); } else { keywordBuilder_.addMessage(m); } break; } // case 10 case 16: { suggestedKeywordsCount_ = input.readInt64(); break; } // case 16 case 24: { campaignKeywordsCount_ = input.readInt64(); break; } // case 24 case 32: { campaignUsesSharedBudget_ = input.readBool(); break; } // case 32 case 40: { requiredCampaignBudgetAmountMicros_ = input.readInt64(); 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.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder> keywordBuilder_; /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword( int index, com.google.ads.googleads.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeyword( int index, com.google.ads.googleads.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeyword(com.google.ads.googleads.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeyword( int index, com.google.ads.googleads.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeyword( com.google.ads.googleads.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addKeyword( int index, com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.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.v10.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.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.KeywordInfo.Builder addKeywordBuilder() { return getKeywordFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance()); } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v10.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.common.KeywordInfo.Builder addKeywordBuilder( int index) { return getKeywordFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.KeywordInfo.getDefaultInstance()); } /** *
       * Output only. Sample of keywords to be expanded to Broad Match.
       * 
* * repeated .google.ads.googleads.v10.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.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.common.KeywordInfoOrBuilder> getKeywordFieldBuilder() { if (keywordBuilder_ == null) { keywordBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.KeywordInfo, com.google.ads.googleads.v10.common.KeywordInfo.Builder, com.google.ads.googleads.v10.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; 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() { 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; 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() { 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; 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() { 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; 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() { 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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) private static final com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; private int recommendationCase_ = 0; 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), CALLOUT_EXTENSION_RECOMMENDATION(17), SITELINK_EXTENSION_RECOMMENDATION(18), CALL_EXTENSION_RECOMMENDATION(19), 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), 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 17: return CALLOUT_EXTENSION_RECOMMENDATION; case 18: return SITELINK_EXTENSION_RECOMMENDATION; case 19: return CALL_EXTENSION_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 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; 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_; /** *
   * Output only. The type of recommendation.
   * 
* * .google.ads.googleads.v10.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.v10.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v10.enums.RecommendationTypeEnum.RecommendationType getType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.RecommendationTypeEnum.RecommendationType result = com.google.ads.googleads.v10.enums.RecommendationTypeEnum.RecommendationType.valueOf(type_); return result == null ? com.google.ads.googleads.v10.enums.RecommendationTypeEnum.RecommendationType.UNRECOGNIZED : result; } public static final int IMPACT_FIELD_NUMBER = 3; private com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact_; /** *
   * Output only. The impact on account performance as a result of applying the
   * recommendation.
   * 
* * .google.ads.googleads.v10.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 impact_ != null; } /** *
   * Output only. The impact on account performance as a result of applying the
   * recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact getImpact() { return impact_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } /** *
   * Output only. The impact on account performance as a result of applying the
   * recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { return getImpact(); } public static final int CAMPAIGN_BUDGET_FIELD_NUMBER = 24; 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_ & 0x00000001) != 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; private volatile java.lang.Object campaign_; /** *
   * Output only. The campaign targeted by this recommendation. This will be set only when
   * the recommendation affects a single campaign.
   * 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,
   * MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
   * RESPONSIVE_SEARCH_AD,
   * RESPONSIVE_SEARCH_AD_ASSET,
   * SEARCH_PARTNERS_OPT_IN, SITELINK_EXTENSION, TARGET_CPA_OPT_IN,
   * TARGET_ROAS_OPT_IN, TEXT_AD
   * 
* * 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_ & 0x00000002) != 0); } /** *
   * Output only. The campaign targeted by this recommendation. This will be set only when
   * the recommendation affects a single campaign.
   * 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,
   * MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
   * RESPONSIVE_SEARCH_AD,
   * RESPONSIVE_SEARCH_AD_ASSET,
   * SEARCH_PARTNERS_OPT_IN, SITELINK_EXTENSION, TARGET_CPA_OPT_IN,
   * TARGET_ROAS_OPT_IN, TEXT_AD
   * 
* * 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 will be set only when
   * the recommendation affects a single campaign.
   * 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,
   * MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
   * RESPONSIVE_SEARCH_AD,
   * RESPONSIVE_SEARCH_AD_ASSET,
   * SEARCH_PARTNERS_OPT_IN, SITELINK_EXTENSION, TARGET_CPA_OPT_IN,
   * TARGET_ROAS_OPT_IN, TEXT_AD
   * 
* * 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; 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_ & 0x00000004) != 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_; /** *
   * 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_ & 0x00000008) != 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 CAMPAIGN_BUDGET_RECOMMENDATION_FIELD_NUMBER = 4; /** *
   * Output only. The campaign budget recommendation.
   * 
* * .google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignBudgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation getCampaignBudgetRecommendation() { if (recommendationCase_ == 4) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } /** *
   * Output only. The campaign budget recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getCampaignBudgetRecommendationOrBuilder() { if (recommendationCase_ == 4) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation getForecastingCampaignBudgetRecommendation() { if (recommendationCase_ == 22) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } /** *
   * Output only. The forecasting campaign budget recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getForecastingCampaignBudgetRecommendationOrBuilder() { if (recommendationCase_ == 22) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } public static final int KEYWORD_RECOMMENDATION_FIELD_NUMBER = 8; /** *
   * Output only. The keyword recommendation.
   * 
* * .google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keywordRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation getKeywordRecommendation() { if (recommendationCase_ == 8) { return (com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } /** *
   * Output only. The keyword recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendationOrBuilder getKeywordRecommendationOrBuilder() { if (recommendationCase_ == 8) { return (com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } public static final int TEXT_AD_RECOMMENDATION_FIELD_NUMBER = 9; /** *
   * Output only. Add expanded text ad recommendation.
   * 
* * .google.ads.googleads.v10.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.v10.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The textAdRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation getTextAdRecommendation() { if (recommendationCase_ == 9) { return (com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } /** *
   * Output only. Add expanded text ad recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendationOrBuilder getTextAdRecommendationOrBuilder() { if (recommendationCase_ == 9) { return (com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation getTargetCpaOptInRecommendation() { if (recommendationCase_ == 10) { return (com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The TargetCPA opt-in recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder getTargetCpaOptInRecommendationOrBuilder() { if (recommendationCase_ == 10) { return (com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation getMaximizeConversionsOptInRecommendation() { if (recommendationCase_ == 11) { return (com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The MaximizeConversions Opt-In recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder getMaximizeConversionsOptInRecommendationOrBuilder() { if (recommendationCase_ == 11) { return (com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation getEnhancedCpcOptInRecommendation() { if (recommendationCase_ == 12) { return (com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder getEnhancedCpcOptInRecommendationOrBuilder() { if (recommendationCase_ == 12) { return (com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation getSearchPartnersOptInRecommendation() { if (recommendationCase_ == 14) { return (com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The Search Partners Opt-In recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder getSearchPartnersOptInRecommendationOrBuilder() { if (recommendationCase_ == 14) { return (com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation getMaximizeClicksOptInRecommendation() { if (recommendationCase_ == 15) { return (com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The MaximizeClicks Opt-In recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder getMaximizeClicksOptInRecommendationOrBuilder() { if (recommendationCase_ == 15) { return (com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation getOptimizeAdRotationRecommendation() { if (recommendationCase_ == 16) { return (com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } /** *
   * Output only. The Optimize Ad Rotation recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder getOptimizeAdRotationRecommendationOrBuilder() { if (recommendationCase_ == 16) { return (com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } public static final int CALLOUT_EXTENSION_RECOMMENDATION_FIELD_NUMBER = 17; /** *
   * Output only. The Callout extension recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the calloutExtensionRecommendation field is set. */ @java.lang.Override public boolean hasCalloutExtensionRecommendation() { return recommendationCase_ == 17; } /** *
   * Output only. The Callout extension recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The calloutExtensionRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation getCalloutExtensionRecommendation() { if (recommendationCase_ == 17) { return (com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.getDefaultInstance(); } /** *
   * Output only. The Callout extension recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendationOrBuilder getCalloutExtensionRecommendationOrBuilder() { if (recommendationCase_ == 17) { return (com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.getDefaultInstance(); } public static final int SITELINK_EXTENSION_RECOMMENDATION_FIELD_NUMBER = 18; /** *
   * Output only. The Sitelink extension recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sitelinkExtensionRecommendation field is set. */ @java.lang.Override public boolean hasSitelinkExtensionRecommendation() { return recommendationCase_ == 18; } /** *
   * Output only. The Sitelink extension recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sitelinkExtensionRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation getSitelinkExtensionRecommendation() { if (recommendationCase_ == 18) { return (com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.getDefaultInstance(); } /** *
   * Output only. The Sitelink extension recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendationOrBuilder getSitelinkExtensionRecommendationOrBuilder() { if (recommendationCase_ == 18) { return (com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.getDefaultInstance(); } public static final int CALL_EXTENSION_RECOMMENDATION_FIELD_NUMBER = 19; /** *
   * Output only. The Call extension recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the callExtensionRecommendation field is set. */ @java.lang.Override public boolean hasCallExtensionRecommendation() { return recommendationCase_ == 19; } /** *
   * Output only. The Call extension recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callExtensionRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation getCallExtensionRecommendation() { if (recommendationCase_ == 19) { return (com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.getDefaultInstance(); } /** *
   * Output only. The Call extension recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendationOrBuilder getCallExtensionRecommendationOrBuilder() { if (recommendationCase_ == 19) { return (com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.getDefaultInstance(); } public static final int KEYWORD_MATCH_TYPE_RECOMMENDATION_FIELD_NUMBER = 20; /** *
   * Output only. The keyword match type recommendation.
   * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.KeywordMatchTypeRecommendation getKeywordMatchTypeRecommendation() { if (recommendationCase_ == 20) { return (com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } /** *
   * Output only. The keyword match type recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder getKeywordMatchTypeRecommendationOrBuilder() { if (recommendationCase_ == 20) { return (com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation getMoveUnusedBudgetRecommendation() { if (recommendationCase_ == 21) { return (com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } /** *
   * Output only. The move unused budget recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder getMoveUnusedBudgetRecommendationOrBuilder() { if (recommendationCase_ == 21) { return (com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.TargetRoasOptInRecommendation getTargetRoasOptInRecommendation() { if (recommendationCase_ == 23) { return (com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } /** *
   * Output only. The Target ROAS opt-in recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder getTargetRoasOptInRecommendationOrBuilder() { if (recommendationCase_ == 23) { return (com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation getResponsiveSearchAdRecommendation() { if (recommendationCase_ == 28) { return (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } /** *
   * Output only. The add responsive search ad recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder getResponsiveSearchAdRecommendationOrBuilder() { if (recommendationCase_ == 28) { return (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation getMarginalRoiCampaignBudgetRecommendation() { if (recommendationCase_ == 29) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } /** *
   * Output only. The marginal ROI campaign budget recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getMarginalRoiCampaignBudgetRecommendationOrBuilder() { if (recommendationCase_ == 29) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation getUseBroadMatchKeywordRecommendation() { if (recommendationCase_ == 30) { return (com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } /** *
   * Output only. The use broad match keyword recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder getUseBroadMatchKeywordRecommendationOrBuilder() { if (recommendationCase_ == 30) { return (com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_; } return com.google.ads.googleads.v10.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.v10.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.v10.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.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getResponsiveSearchAdAssetRecommendation() { if (recommendationCase_ == 31) { return (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } /** *
   * Output only. The responsive search ad asset recommendation.
   * 
* * .google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder getResponsiveSearchAdAssetRecommendationOrBuilder() { if (recommendationCase_ == 31) { return (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (type_ != com.google.ads.googleads.v10.enums.RecommendationTypeEnum.RecommendationType.UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (impact_ != null) { output.writeMessage(3, getImpact()); } if (recommendationCase_ == 4) { output.writeMessage(4, (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 8) { output.writeMessage(8, (com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) recommendation_); } if (recommendationCase_ == 9) { output.writeMessage(9, (com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) recommendation_); } if (recommendationCase_ == 10) { output.writeMessage(10, (com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_); } if (recommendationCase_ == 11) { output.writeMessage(11, (com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_); } if (recommendationCase_ == 12) { output.writeMessage(12, (com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_); } if (recommendationCase_ == 14) { output.writeMessage(14, (com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_); } if (recommendationCase_ == 15) { output.writeMessage(15, (com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_); } if (recommendationCase_ == 16) { output.writeMessage(16, (com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_); } if (recommendationCase_ == 17) { output.writeMessage(17, (com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) recommendation_); } if (recommendationCase_ == 18) { output.writeMessage(18, (com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) recommendation_); } if (recommendationCase_ == 19) { output.writeMessage(19, (com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) recommendation_); } if (recommendationCase_ == 20) { output.writeMessage(20, (com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_); } if (recommendationCase_ == 21) { output.writeMessage(21, (com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_); } if (recommendationCase_ == 22) { output.writeMessage(22, (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 23) { output.writeMessage(23, (com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, campaignBudget_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, campaign_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, adGroup_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(27, dismissed_); } if (recommendationCase_ == 28) { output.writeMessage(28, (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_); } if (recommendationCase_ == 29) { output.writeMessage(29, (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 30) { output.writeMessage(30, (com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_); } if (recommendationCase_ == 31) { output.writeMessage(31, (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) 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.v10.enums.RecommendationTypeEnum.RecommendationType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (impact_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getImpact()); } if (recommendationCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) recommendation_); } if (recommendationCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) recommendation_); } if (recommendationCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_); } if (recommendationCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_); } if (recommendationCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_); } if (recommendationCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_); } if (recommendationCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_); } if (recommendationCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_); } if (recommendationCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) recommendation_); } if (recommendationCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) recommendation_); } if (recommendationCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) recommendation_); } if (recommendationCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_); } if (recommendationCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_); } if (recommendationCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, (com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, campaignBudget_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, campaign_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, adGroup_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(27, dismissed_); } if (recommendationCase_ == 28) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_); } if (recommendationCase_ == 29) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(29, (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_); } if (recommendationCase_ == 30) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, (com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_); } if (recommendationCase_ == 31) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) 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.v10.resources.Recommendation)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.Recommendation other = (com.google.ads.googleads.v10.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 (!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 17: if (!getCalloutExtensionRecommendation() .equals(other.getCalloutExtensionRecommendation())) return false; break; case 18: if (!getSitelinkExtensionRecommendation() .equals(other.getSitelinkExtensionRecommendation())) return false; break; case 19: if (!getCallExtensionRecommendation() .equals(other.getCallExtensionRecommendation())) 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 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()); } 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 17: hash = (37 * hash) + CALLOUT_EXTENSION_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getCalloutExtensionRecommendation().hashCode(); break; case 18: hash = (37 * hash) + SITELINK_EXTENSION_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getSitelinkExtensionRecommendation().hashCode(); break; case 19: hash = (37 * hash) + CALL_EXTENSION_RECOMMENDATION_FIELD_NUMBER; hash = (53 * hash) + getCallExtensionRecommendation().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 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.resources.Recommendation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.Recommendation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Recommendation) com.google.ads.googleads.v10.resources.RecommendationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.Recommendation.class, com.google.ads.googleads.v10.resources.Recommendation.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.Recommendation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); resourceName_ = ""; type_ = 0; if (impactBuilder_ == null) { impact_ = null; } else { impact_ = null; impactBuilder_ = null; } campaignBudget_ = ""; bitField0_ = (bitField0_ & ~0x00000001); campaign_ = ""; bitField0_ = (bitField0_ & ~0x00000002); adGroup_ = ""; bitField0_ = (bitField0_ & ~0x00000004); dismissed_ = false; bitField0_ = (bitField0_ & ~0x00000008); 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 (calloutExtensionRecommendationBuilder_ != null) { calloutExtensionRecommendationBuilder_.clear(); } if (sitelinkExtensionRecommendationBuilder_ != null) { sitelinkExtensionRecommendationBuilder_.clear(); } if (callExtensionRecommendationBuilder_ != null) { callExtensionRecommendationBuilder_.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(); } recommendationCase_ = 0; recommendation_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.RecommendationProto.internal_static_google_ads_googleads_v10_resources_Recommendation_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.Recommendation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation build() { com.google.ads.googleads.v10.resources.Recommendation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation buildPartial() { com.google.ads.googleads.v10.resources.Recommendation result = new com.google.ads.googleads.v10.resources.Recommendation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.resourceName_ = resourceName_; result.type_ = type_; if (impactBuilder_ == null) { result.impact_ = impact_; } else { result.impact_ = impactBuilder_.build(); } if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.campaignBudget_ = campaignBudget_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.campaign_ = campaign_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.adGroup_ = adGroup_; if (((from_bitField0_ & 0x00000008) != 0)) { result.dismissed_ = dismissed_; to_bitField0_ |= 0x00000008; } if (recommendationCase_ == 4) { if (campaignBudgetRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = campaignBudgetRecommendationBuilder_.build(); } } if (recommendationCase_ == 22) { if (forecastingCampaignBudgetRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = forecastingCampaignBudgetRecommendationBuilder_.build(); } } if (recommendationCase_ == 8) { if (keywordRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = keywordRecommendationBuilder_.build(); } } if (recommendationCase_ == 9) { if (textAdRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = textAdRecommendationBuilder_.build(); } } if (recommendationCase_ == 10) { if (targetCpaOptInRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = targetCpaOptInRecommendationBuilder_.build(); } } if (recommendationCase_ == 11) { if (maximizeConversionsOptInRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = maximizeConversionsOptInRecommendationBuilder_.build(); } } if (recommendationCase_ == 12) { if (enhancedCpcOptInRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = enhancedCpcOptInRecommendationBuilder_.build(); } } if (recommendationCase_ == 14) { if (searchPartnersOptInRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = searchPartnersOptInRecommendationBuilder_.build(); } } if (recommendationCase_ == 15) { if (maximizeClicksOptInRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = maximizeClicksOptInRecommendationBuilder_.build(); } } if (recommendationCase_ == 16) { if (optimizeAdRotationRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = optimizeAdRotationRecommendationBuilder_.build(); } } if (recommendationCase_ == 17) { if (calloutExtensionRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = calloutExtensionRecommendationBuilder_.build(); } } if (recommendationCase_ == 18) { if (sitelinkExtensionRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = sitelinkExtensionRecommendationBuilder_.build(); } } if (recommendationCase_ == 19) { if (callExtensionRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = callExtensionRecommendationBuilder_.build(); } } if (recommendationCase_ == 20) { if (keywordMatchTypeRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = keywordMatchTypeRecommendationBuilder_.build(); } } if (recommendationCase_ == 21) { if (moveUnusedBudgetRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = moveUnusedBudgetRecommendationBuilder_.build(); } } if (recommendationCase_ == 23) { if (targetRoasOptInRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = targetRoasOptInRecommendationBuilder_.build(); } } if (recommendationCase_ == 28) { if (responsiveSearchAdRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = responsiveSearchAdRecommendationBuilder_.build(); } } if (recommendationCase_ == 29) { if (marginalRoiCampaignBudgetRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = marginalRoiCampaignBudgetRecommendationBuilder_.build(); } } if (recommendationCase_ == 30) { if (useBroadMatchKeywordRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = useBroadMatchKeywordRecommendationBuilder_.build(); } } if (recommendationCase_ == 31) { if (responsiveSearchAdAssetRecommendationBuilder_ == null) { result.recommendation_ = recommendation_; } else { result.recommendation_ = responsiveSearchAdAssetRecommendationBuilder_.build(); } } result.bitField0_ = to_bitField0_; result.recommendationCase_ = recommendationCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.Recommendation) { return mergeFrom((com.google.ads.googleads.v10.resources.Recommendation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.Recommendation other) { if (other == com.google.ads.googleads.v10.resources.Recommendation.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasImpact()) { mergeImpact(other.getImpact()); } if (other.hasCampaignBudget()) { bitField0_ |= 0x00000001; campaignBudget_ = other.campaignBudget_; onChanged(); } if (other.hasCampaign()) { bitField0_ |= 0x00000002; campaign_ = other.campaign_; onChanged(); } if (other.hasAdGroup()) { bitField0_ |= 0x00000004; adGroup_ = other.adGroup_; onChanged(); } if (other.hasDismissed()) { setDismissed(other.getDismissed()); } 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 CALLOUT_EXTENSION_RECOMMENDATION: { mergeCalloutExtensionRecommendation(other.getCalloutExtensionRecommendation()); break; } case SITELINK_EXTENSION_RECOMMENDATION: { mergeSitelinkExtensionRecommendation(other.getSitelinkExtensionRecommendation()); break; } case CALL_EXTENSION_RECOMMENDATION: { mergeCallExtensionRecommendation(other.getCallExtensionRecommendation()); 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 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(); break; } // case 10 case 16: { type_ = input.readEnum(); break; } // case 16 case 26: { input.readMessage( getImpactFieldBuilder().getBuilder(), extensionRegistry); 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 138: { input.readMessage( getCalloutExtensionRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 17; break; } // case 138 case 146: { input.readMessage( getSitelinkExtensionRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 18; break; } // case 146 case 154: { input.readMessage( getCallExtensionRecommendationFieldBuilder().getBuilder(), extensionRegistry); recommendationCase_ = 19; break; } // case 154 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_ |= 0x00000001; break; } // case 194 case 202: { campaign_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 202 case 210: { adGroup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 210 case 216: { dismissed_ = input.readBool(); bitField0_ |= 0x00000008; 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 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 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; 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(); 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; onChanged(); return this; } private int type_ = 0; /** *
     * Output only. The type of recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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; onChanged(); return this; } /** *
     * Output only. The type of recommendation.
     * 
* * .google.ads.googleads.v10.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v10.enums.RecommendationTypeEnum.RecommendationType getType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.RecommendationTypeEnum.RecommendationType result = com.google.ads.googleads.v10.enums.RecommendationTypeEnum.RecommendationType.valueOf(type_); return result == null ? com.google.ads.googleads.v10.enums.RecommendationTypeEnum.RecommendationType.UNRECOGNIZED : result; } /** *
     * Output only. The type of recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.enums.RecommendationTypeEnum.RecommendationType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The type of recommendation.
     * 
* * .google.ads.googleads.v10.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder> impactBuilder_; /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the impact field is set. */ public boolean hasImpact() { return impactBuilder_ != null || impact_ != null; } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The impact. */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact getImpact() { if (impactBuilder_ == null) { return impact_ == null ? com.google.ads.googleads.v10.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.v10.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact(com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (value == null) { throw new NullPointerException(); } impact_ = value; onChanged(); } else { impactBuilder_.setMessage(value); } return this; } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImpact( com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder builderForValue) { if (impactBuilder_ == null) { impact_ = builderForValue.build(); onChanged(); } else { impactBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeImpact(com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact value) { if (impactBuilder_ == null) { if (impact_ != null) { impact_ = com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.newBuilder(impact_).mergeFrom(value).buildPartial(); } else { impact_ = value; } onChanged(); } else { impactBuilder_.mergeFrom(value); } return this; } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearImpact() { if (impactBuilder_ == null) { impact_ = null; onChanged(); } else { impact_ = null; impactBuilder_ = null; } return this; } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder getImpactBuilder() { onChanged(); return getImpactFieldBuilder().getBuilder(); } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() { if (impactBuilder_ != null) { return impactBuilder_.getMessageOrBuilder(); } else { return impact_ == null ? com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_; } } /** *
     * Output only. The impact on account performance as a result of applying the
     * recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpactOrBuilder> getImpactFieldBuilder() { if (impactBuilder_ == null) { impactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v10.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v10.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_ & 0x00000001) != 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(); } bitField0_ |= 0x00000001; campaignBudget_ = value; 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() { bitField0_ = (bitField0_ & ~0x00000001); campaignBudget_ = getDefaultInstance().getCampaignBudget(); 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); bitField0_ |= 0x00000001; campaignBudget_ = value; onChanged(); return this; } private java.lang.Object campaign_ = ""; /** *
     * Output only. The campaign targeted by this recommendation. This will be set only when
     * the recommendation affects a single campaign.
     * 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,
     * MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, SITELINK_EXTENSION, TARGET_CPA_OPT_IN,
     * TARGET_ROAS_OPT_IN, TEXT_AD
     * 
* * 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_ & 0x00000002) != 0); } /** *
     * Output only. The campaign targeted by this recommendation. This will be set only when
     * the recommendation affects a single campaign.
     * 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,
     * MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, SITELINK_EXTENSION, TARGET_CPA_OPT_IN,
     * TARGET_ROAS_OPT_IN, TEXT_AD
     * 
* * 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 will be set only when
     * the recommendation affects a single campaign.
     * 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,
     * MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, SITELINK_EXTENSION, TARGET_CPA_OPT_IN,
     * TARGET_ROAS_OPT_IN, TEXT_AD
     * 
* * 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 will be set only when
     * the recommendation affects a single campaign.
     * 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,
     * MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, SITELINK_EXTENSION, TARGET_CPA_OPT_IN,
     * TARGET_ROAS_OPT_IN, TEXT_AD
     * 
* * 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(); } bitField0_ |= 0x00000002; campaign_ = value; onChanged(); return this; } /** *
     * Output only. The campaign targeted by this recommendation. This will be set only when
     * the recommendation affects a single campaign.
     * 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,
     * MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, SITELINK_EXTENSION, TARGET_CPA_OPT_IN,
     * TARGET_ROAS_OPT_IN, TEXT_AD
     * 
* * optional string campaign = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCampaign() { bitField0_ = (bitField0_ & ~0x00000002); campaign_ = getDefaultInstance().getCampaign(); onChanged(); return this; } /** *
     * Output only. The campaign targeted by this recommendation. This will be set only when
     * the recommendation affects a single campaign.
     * 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,
     * MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION,
     * RESPONSIVE_SEARCH_AD,
     * RESPONSIVE_SEARCH_AD_ASSET,
     * SEARCH_PARTNERS_OPT_IN, SITELINK_EXTENSION, TARGET_CPA_OPT_IN,
     * TARGET_ROAS_OPT_IN, TEXT_AD
     * 
* * 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); bitField0_ |= 0x00000002; campaign_ = value; 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_ & 0x00000004) != 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(); } bitField0_ |= 0x00000004; adGroup_ = value; 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() { bitField0_ = (bitField0_ & ~0x00000004); adGroup_ = getDefaultInstance().getAdGroup(); 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); bitField0_ |= 0x00000004; adGroup_ = value; 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_ & 0x00000008) != 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) { bitField0_ |= 0x00000008; dismissed_ = value; 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_ & ~0x00000008); dismissed_ = false; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> campaignBudgetRecommendationBuilder_; /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The campaignBudgetRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation getCampaignBudgetRecommendation() { if (campaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 4) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 4) { return campaignBudgetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCampaignBudgetRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCampaignBudgetRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCampaignBudgetRecommendation(com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation value) { if (campaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 4 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder getCampaignBudgetRecommendationBuilder() { return getCampaignBudgetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getCampaignBudgetRecommendationOrBuilder() { if ((recommendationCase_ == 4) && (campaignBudgetRecommendationBuilder_ != null)) { return campaignBudgetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 4) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> getCampaignBudgetRecommendationFieldBuilder() { if (campaignBudgetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 4)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } campaignBudgetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 4; onChanged();; return campaignBudgetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> forecastingCampaignBudgetRecommendationBuilder_; /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation getForecastingCampaignBudgetRecommendation() { if (forecastingCampaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 22) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 22) { return forecastingCampaignBudgetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setForecastingCampaignBudgetRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setForecastingCampaignBudgetRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeForecastingCampaignBudgetRecommendation(com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation value) { if (forecastingCampaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 22 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder getForecastingCampaignBudgetRecommendationBuilder() { return getForecastingCampaignBudgetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getForecastingCampaignBudgetRecommendationOrBuilder() { if ((recommendationCase_ == 22) && (forecastingCampaignBudgetRecommendationBuilder_ != null)) { return forecastingCampaignBudgetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 22) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The forecasting campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> getForecastingCampaignBudgetRecommendationFieldBuilder() { if (forecastingCampaignBudgetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 22)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } forecastingCampaignBudgetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 22; onChanged();; return forecastingCampaignBudgetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation, com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendationOrBuilder> keywordRecommendationBuilder_; /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The keywordRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation getKeywordRecommendation() { if (keywordRecommendationBuilder_ == null) { if (recommendationCase_ == 8) { return (com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 8) { return keywordRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } } /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeywordRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeywordRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeKeywordRecommendation(com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation value) { if (keywordRecommendationBuilder_ == null) { if (recommendationCase_ == 8 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.Builder getKeywordRecommendationBuilder() { return getKeywordRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendationOrBuilder getKeywordRecommendationOrBuilder() { if ((recommendationCase_ == 8) && (keywordRecommendationBuilder_ != null)) { return keywordRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 8) { return (com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } } /** *
     * Output only. The keyword recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation keyword_recommendation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation, com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendationOrBuilder> getKeywordRecommendationFieldBuilder() { if (keywordRecommendationBuilder_ == null) { if (!(recommendationCase_ == 8)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.getDefaultInstance(); } keywordRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation, com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.KeywordRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 8; onChanged();; return keywordRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation, com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendationOrBuilder> textAdRecommendationBuilder_; /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The textAdRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation getTextAdRecommendation() { if (textAdRecommendationBuilder_ == null) { if (recommendationCase_ == 9) { return (com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 9) { return textAdRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } } /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTextAdRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTextAdRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTextAdRecommendation(com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation value) { if (textAdRecommendationBuilder_ == null) { if (recommendationCase_ == 9 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.Builder getTextAdRecommendationBuilder() { return getTextAdRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendationOrBuilder getTextAdRecommendationOrBuilder() { if ((recommendationCase_ == 9) && (textAdRecommendationBuilder_ != null)) { return textAdRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 9) { return (com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } } /** *
     * Output only. Add expanded text ad recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation text_ad_recommendation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation, com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendationOrBuilder> getTextAdRecommendationFieldBuilder() { if (textAdRecommendationBuilder_ == null) { if (!(recommendationCase_ == 9)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.getDefaultInstance(); } textAdRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation, com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.TextAdRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 9; onChanged();; return textAdRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder> targetCpaOptInRecommendationBuilder_; /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation getTargetCpaOptInRecommendation() { if (targetCpaOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 10) { return (com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 10) { return targetCpaOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetCpaOptInRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetCpaOptInRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTargetCpaOptInRecommendation(com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation value) { if (targetCpaOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 10 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.Builder getTargetCpaOptInRecommendationBuilder() { return getTargetCpaOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder getTargetCpaOptInRecommendationOrBuilder() { if ((recommendationCase_ == 10) && (targetCpaOptInRecommendationBuilder_ != null)) { return targetCpaOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 10) { return (com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The TargetCPA opt-in recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder> getTargetCpaOptInRecommendationFieldBuilder() { if (targetCpaOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 10)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance(); } targetCpaOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.TargetCpaOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 10; onChanged();; return targetCpaOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder> maximizeConversionsOptInRecommendationBuilder_; /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation getMaximizeConversionsOptInRecommendation() { if (maximizeConversionsOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 11) { return (com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 11) { return maximizeConversionsOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaximizeConversionsOptInRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaximizeConversionsOptInRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMaximizeConversionsOptInRecommendation(com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation value) { if (maximizeConversionsOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 11 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder getMaximizeConversionsOptInRecommendationBuilder() { return getMaximizeConversionsOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder getMaximizeConversionsOptInRecommendationOrBuilder() { if ((recommendationCase_ == 11) && (maximizeConversionsOptInRecommendationBuilder_ != null)) { return maximizeConversionsOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 11) { return (com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The MaximizeConversions Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder> getMaximizeConversionsOptInRecommendationFieldBuilder() { if (maximizeConversionsOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 11)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance(); } maximizeConversionsOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.MaximizeConversionsOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 11; onChanged();; return maximizeConversionsOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder> enhancedCpcOptInRecommendationBuilder_; /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation getEnhancedCpcOptInRecommendation() { if (enhancedCpcOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 12) { return (com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 12) { return enhancedCpcOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEnhancedCpcOptInRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEnhancedCpcOptInRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEnhancedCpcOptInRecommendation(com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation value) { if (enhancedCpcOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 12 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder getEnhancedCpcOptInRecommendationBuilder() { return getEnhancedCpcOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder getEnhancedCpcOptInRecommendationOrBuilder() { if ((recommendationCase_ == 12) && (enhancedCpcOptInRecommendationBuilder_ != null)) { return enhancedCpcOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 12) { return (com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Enhanced Cost-Per-Click Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder> getEnhancedCpcOptInRecommendationFieldBuilder() { if (enhancedCpcOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 12)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance(); } enhancedCpcOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.EnhancedCpcOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 12; onChanged();; return enhancedCpcOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder> searchPartnersOptInRecommendationBuilder_; /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation getSearchPartnersOptInRecommendation() { if (searchPartnersOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 14) { return (com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 14) { return searchPartnersOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSearchPartnersOptInRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSearchPartnersOptInRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSearchPartnersOptInRecommendation(com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation value) { if (searchPartnersOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 14 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.Builder getSearchPartnersOptInRecommendationBuilder() { return getSearchPartnersOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder getSearchPartnersOptInRecommendationOrBuilder() { if ((recommendationCase_ == 14) && (searchPartnersOptInRecommendationBuilder_ != null)) { return searchPartnersOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 14) { return (com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Search Partners Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder> getSearchPartnersOptInRecommendationFieldBuilder() { if (searchPartnersOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 14)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance(); } searchPartnersOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.SearchPartnersOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 14; onChanged();; return searchPartnersOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder> maximizeClicksOptInRecommendationBuilder_; /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation getMaximizeClicksOptInRecommendation() { if (maximizeClicksOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 15) { return (com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 15) { return maximizeClicksOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaximizeClicksOptInRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMaximizeClicksOptInRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMaximizeClicksOptInRecommendation(com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation value) { if (maximizeClicksOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 15 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder getMaximizeClicksOptInRecommendationBuilder() { return getMaximizeClicksOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder getMaximizeClicksOptInRecommendationOrBuilder() { if ((recommendationCase_ == 15) && (maximizeClicksOptInRecommendationBuilder_ != null)) { return maximizeClicksOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 15) { return (com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The MaximizeClicks Opt-In recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder> getMaximizeClicksOptInRecommendationFieldBuilder() { if (maximizeClicksOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 15)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance(); } maximizeClicksOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.MaximizeClicksOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 15; onChanged();; return maximizeClicksOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation, com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder> optimizeAdRotationRecommendationBuilder_; /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation getOptimizeAdRotationRecommendation() { if (optimizeAdRotationRecommendationBuilder_ == null) { if (recommendationCase_ == 16) { return (com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 16) { return optimizeAdRotationRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOptimizeAdRotationRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOptimizeAdRotationRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeOptimizeAdRotationRecommendation(com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation value) { if (optimizeAdRotationRecommendationBuilder_ == null) { if (recommendationCase_ == 16 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.Builder getOptimizeAdRotationRecommendationBuilder() { return getOptimizeAdRotationRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder getOptimizeAdRotationRecommendationOrBuilder() { if ((recommendationCase_ == 16) && (optimizeAdRotationRecommendationBuilder_ != null)) { return optimizeAdRotationRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 16) { return (com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Optimize Ad Rotation recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation, com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder> getOptimizeAdRotationRecommendationFieldBuilder() { if (optimizeAdRotationRecommendationBuilder_ == null) { if (!(recommendationCase_ == 16)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance(); } optimizeAdRotationRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation, com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.OptimizeAdRotationRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 16; onChanged();; return optimizeAdRotationRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendationOrBuilder> calloutExtensionRecommendationBuilder_; /** *
     * Output only. The Callout extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the calloutExtensionRecommendation field is set. */ @java.lang.Override public boolean hasCalloutExtensionRecommendation() { return recommendationCase_ == 17; } /** *
     * Output only. The Callout extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The calloutExtensionRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation getCalloutExtensionRecommendation() { if (calloutExtensionRecommendationBuilder_ == null) { if (recommendationCase_ == 17) { return (com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 17) { return calloutExtensionRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Callout extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCalloutExtensionRecommendation(com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation value) { if (calloutExtensionRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { calloutExtensionRecommendationBuilder_.setMessage(value); } recommendationCase_ = 17; return this; } /** *
     * Output only. The Callout extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCalloutExtensionRecommendation( com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.Builder builderForValue) { if (calloutExtensionRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { calloutExtensionRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 17; return this; } /** *
     * Output only. The Callout extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCalloutExtensionRecommendation(com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation value) { if (calloutExtensionRecommendationBuilder_ == null) { if (recommendationCase_ == 17 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.newBuilder((com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 17) { calloutExtensionRecommendationBuilder_.mergeFrom(value); } else { calloutExtensionRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 17; return this; } /** *
     * Output only. The Callout extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCalloutExtensionRecommendation() { if (calloutExtensionRecommendationBuilder_ == null) { if (recommendationCase_ == 17) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 17) { recommendationCase_ = 0; recommendation_ = null; } calloutExtensionRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The Callout extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.Builder getCalloutExtensionRecommendationBuilder() { return getCalloutExtensionRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Callout extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendationOrBuilder getCalloutExtensionRecommendationOrBuilder() { if ((recommendationCase_ == 17) && (calloutExtensionRecommendationBuilder_ != null)) { return calloutExtensionRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 17) { return (com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Callout extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation callout_extension_recommendation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendationOrBuilder> getCalloutExtensionRecommendationFieldBuilder() { if (calloutExtensionRecommendationBuilder_ == null) { if (!(recommendationCase_ == 17)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.getDefaultInstance(); } calloutExtensionRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.CalloutExtensionRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 17; onChanged();; return calloutExtensionRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation, com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendationOrBuilder> sitelinkExtensionRecommendationBuilder_; /** *
     * Output only. The Sitelink extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sitelinkExtensionRecommendation field is set. */ @java.lang.Override public boolean hasSitelinkExtensionRecommendation() { return recommendationCase_ == 18; } /** *
     * Output only. The Sitelink extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sitelinkExtensionRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation getSitelinkExtensionRecommendation() { if (sitelinkExtensionRecommendationBuilder_ == null) { if (recommendationCase_ == 18) { return (com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 18) { return sitelinkExtensionRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Sitelink extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSitelinkExtensionRecommendation(com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation value) { if (sitelinkExtensionRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { sitelinkExtensionRecommendationBuilder_.setMessage(value); } recommendationCase_ = 18; return this; } /** *
     * Output only. The Sitelink extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSitelinkExtensionRecommendation( com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.Builder builderForValue) { if (sitelinkExtensionRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { sitelinkExtensionRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 18; return this; } /** *
     * Output only. The Sitelink extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSitelinkExtensionRecommendation(com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation value) { if (sitelinkExtensionRecommendationBuilder_ == null) { if (recommendationCase_ == 18 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.newBuilder((com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 18) { sitelinkExtensionRecommendationBuilder_.mergeFrom(value); } else { sitelinkExtensionRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 18; return this; } /** *
     * Output only. The Sitelink extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSitelinkExtensionRecommendation() { if (sitelinkExtensionRecommendationBuilder_ == null) { if (recommendationCase_ == 18) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 18) { recommendationCase_ = 0; recommendation_ = null; } sitelinkExtensionRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The Sitelink extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.Builder getSitelinkExtensionRecommendationBuilder() { return getSitelinkExtensionRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Sitelink extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendationOrBuilder getSitelinkExtensionRecommendationOrBuilder() { if ((recommendationCase_ == 18) && (sitelinkExtensionRecommendationBuilder_ != null)) { return sitelinkExtensionRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 18) { return (com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Sitelink extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation, com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendationOrBuilder> getSitelinkExtensionRecommendationFieldBuilder() { if (sitelinkExtensionRecommendationBuilder_ == null) { if (!(recommendationCase_ == 18)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.getDefaultInstance(); } sitelinkExtensionRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation, com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.SitelinkExtensionRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 18; onChanged();; return sitelinkExtensionRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendationOrBuilder> callExtensionRecommendationBuilder_; /** *
     * Output only. The Call extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the callExtensionRecommendation field is set. */ @java.lang.Override public boolean hasCallExtensionRecommendation() { return recommendationCase_ == 19; } /** *
     * Output only. The Call extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The callExtensionRecommendation. */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation getCallExtensionRecommendation() { if (callExtensionRecommendationBuilder_ == null) { if (recommendationCase_ == 19) { return (com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 19) { return callExtensionRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Call extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCallExtensionRecommendation(com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation value) { if (callExtensionRecommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recommendation_ = value; onChanged(); } else { callExtensionRecommendationBuilder_.setMessage(value); } recommendationCase_ = 19; return this; } /** *
     * Output only. The Call extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCallExtensionRecommendation( com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.Builder builderForValue) { if (callExtensionRecommendationBuilder_ == null) { recommendation_ = builderForValue.build(); onChanged(); } else { callExtensionRecommendationBuilder_.setMessage(builderForValue.build()); } recommendationCase_ = 19; return this; } /** *
     * Output only. The Call extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCallExtensionRecommendation(com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation value) { if (callExtensionRecommendationBuilder_ == null) { if (recommendationCase_ == 19 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.newBuilder((com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) recommendation_) .mergeFrom(value).buildPartial(); } else { recommendation_ = value; } onChanged(); } else { if (recommendationCase_ == 19) { callExtensionRecommendationBuilder_.mergeFrom(value); } else { callExtensionRecommendationBuilder_.setMessage(value); } } recommendationCase_ = 19; return this; } /** *
     * Output only. The Call extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCallExtensionRecommendation() { if (callExtensionRecommendationBuilder_ == null) { if (recommendationCase_ == 19) { recommendationCase_ = 0; recommendation_ = null; onChanged(); } } else { if (recommendationCase_ == 19) { recommendationCase_ = 0; recommendation_ = null; } callExtensionRecommendationBuilder_.clear(); } return this; } /** *
     * Output only. The Call extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.Builder getCallExtensionRecommendationBuilder() { return getCallExtensionRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Call extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendationOrBuilder getCallExtensionRecommendationOrBuilder() { if ((recommendationCase_ == 19) && (callExtensionRecommendationBuilder_ != null)) { return callExtensionRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 19) { return (com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Call extension recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation call_extension_recommendation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendationOrBuilder> getCallExtensionRecommendationFieldBuilder() { if (callExtensionRecommendationBuilder_ == null) { if (!(recommendationCase_ == 19)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.getDefaultInstance(); } callExtensionRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.CallExtensionRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 19; onChanged();; return callExtensionRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation, com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder> keywordMatchTypeRecommendationBuilder_; /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.KeywordMatchTypeRecommendation getKeywordMatchTypeRecommendation() { if (keywordMatchTypeRecommendationBuilder_ == null) { if (recommendationCase_ == 20) { return (com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 20) { return keywordMatchTypeRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeywordMatchTypeRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKeywordMatchTypeRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeKeywordMatchTypeRecommendation(com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation value) { if (keywordMatchTypeRecommendationBuilder_ == null) { if (recommendationCase_ == 20 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.Builder getKeywordMatchTypeRecommendationBuilder() { return getKeywordMatchTypeRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder getKeywordMatchTypeRecommendationOrBuilder() { if ((recommendationCase_ == 20) && (keywordMatchTypeRecommendationBuilder_ != null)) { return keywordMatchTypeRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 20) { return (com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } } /** *
     * Output only. The keyword match type recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation, com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder> getKeywordMatchTypeRecommendationFieldBuilder() { if (keywordMatchTypeRecommendationBuilder_ == null) { if (!(recommendationCase_ == 20)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance(); } keywordMatchTypeRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation, com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.KeywordMatchTypeRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 20; onChanged();; return keywordMatchTypeRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder> moveUnusedBudgetRecommendationBuilder_; /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation getMoveUnusedBudgetRecommendation() { if (moveUnusedBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 21) { return (com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 21) { return moveUnusedBudgetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMoveUnusedBudgetRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMoveUnusedBudgetRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMoveUnusedBudgetRecommendation(com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation value) { if (moveUnusedBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 21 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder getMoveUnusedBudgetRecommendationBuilder() { return getMoveUnusedBudgetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder getMoveUnusedBudgetRecommendationOrBuilder() { if ((recommendationCase_ == 21) && (moveUnusedBudgetRecommendationBuilder_ != null)) { return moveUnusedBudgetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 21) { return (com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The move unused budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder> getMoveUnusedBudgetRecommendationFieldBuilder() { if (moveUnusedBudgetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 21)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance(); } moveUnusedBudgetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.MoveUnusedBudgetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 21; onChanged();; return moveUnusedBudgetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder> targetRoasOptInRecommendationBuilder_; /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.TargetRoasOptInRecommendation getTargetRoasOptInRecommendation() { if (targetRoasOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 23) { return (com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 23) { return targetRoasOptInRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetRoasOptInRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTargetRoasOptInRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTargetRoasOptInRecommendation(com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation value) { if (targetRoasOptInRecommendationBuilder_ == null) { if (recommendationCase_ == 23 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.Builder getTargetRoasOptInRecommendationBuilder() { return getTargetRoasOptInRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder getTargetRoasOptInRecommendationOrBuilder() { if ((recommendationCase_ == 23) && (targetRoasOptInRecommendationBuilder_ != null)) { return targetRoasOptInRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 23) { return (com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } } /** *
     * Output only. The Target ROAS opt-in recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder> getTargetRoasOptInRecommendationFieldBuilder() { if (targetRoasOptInRecommendationBuilder_ == null) { if (!(recommendationCase_ == 23)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance(); } targetRoasOptInRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation, com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.TargetRoasOptInRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 23; onChanged();; return targetRoasOptInRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder> responsiveSearchAdRecommendationBuilder_; /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation getResponsiveSearchAdRecommendation() { if (responsiveSearchAdRecommendationBuilder_ == null) { if (recommendationCase_ == 28) { return (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 28) { return responsiveSearchAdRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } } /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResponsiveSearchAdRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResponsiveSearchAdRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeResponsiveSearchAdRecommendation(com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation value) { if (responsiveSearchAdRecommendationBuilder_ == null) { if (recommendationCase_ == 28 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder getResponsiveSearchAdRecommendationBuilder() { return getResponsiveSearchAdRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder getResponsiveSearchAdRecommendationOrBuilder() { if ((recommendationCase_ == 28) && (responsiveSearchAdRecommendationBuilder_ != null)) { return responsiveSearchAdRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 28) { return (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } } /** *
     * Output only. The add responsive search ad recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder> getResponsiveSearchAdRecommendationFieldBuilder() { if (responsiveSearchAdRecommendationBuilder_ == null) { if (!(recommendationCase_ == 28)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance(); } responsiveSearchAdRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 28; onChanged();; return responsiveSearchAdRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> marginalRoiCampaignBudgetRecommendationBuilder_; /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation getMarginalRoiCampaignBudgetRecommendation() { if (marginalRoiCampaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 29) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 29) { return marginalRoiCampaignBudgetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMarginalRoiCampaignBudgetRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMarginalRoiCampaignBudgetRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMarginalRoiCampaignBudgetRecommendation(com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation value) { if (marginalRoiCampaignBudgetRecommendationBuilder_ == null) { if (recommendationCase_ == 29 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder getMarginalRoiCampaignBudgetRecommendationBuilder() { return getMarginalRoiCampaignBudgetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getMarginalRoiCampaignBudgetRecommendationOrBuilder() { if ((recommendationCase_ == 29) && (marginalRoiCampaignBudgetRecommendationBuilder_ != null)) { return marginalRoiCampaignBudgetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 29) { return (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The marginal ROI campaign budget recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation marginal_roi_campaign_budget_recommendation = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> getMarginalRoiCampaignBudgetRecommendationFieldBuilder() { if (marginalRoiCampaignBudgetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 29)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance(); } marginalRoiCampaignBudgetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.CampaignBudgetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 29; onChanged();; return marginalRoiCampaignBudgetRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation, com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder> useBroadMatchKeywordRecommendationBuilder_; /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation getUseBroadMatchKeywordRecommendation() { if (useBroadMatchKeywordRecommendationBuilder_ == null) { if (recommendationCase_ == 30) { return (com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 30) { return useBroadMatchKeywordRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } } /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUseBroadMatchKeywordRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUseBroadMatchKeywordRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUseBroadMatchKeywordRecommendation(com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation value) { if (useBroadMatchKeywordRecommendationBuilder_ == null) { if (recommendationCase_ == 30 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder getUseBroadMatchKeywordRecommendationBuilder() { return getUseBroadMatchKeywordRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder getUseBroadMatchKeywordRecommendationOrBuilder() { if ((recommendationCase_ == 30) && (useBroadMatchKeywordRecommendationBuilder_ != null)) { return useBroadMatchKeywordRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 30) { return (com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } } /** *
     * Output only. The use broad match keyword recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation use_broad_match_keyword_recommendation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation, com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder> getUseBroadMatchKeywordRecommendationFieldBuilder() { if (useBroadMatchKeywordRecommendationBuilder_ == null) { if (!(recommendationCase_ == 30)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance(); } useBroadMatchKeywordRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation, com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.UseBroadMatchKeywordRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 30; onChanged();; return useBroadMatchKeywordRecommendationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder> responsiveSearchAdAssetRecommendationBuilder_; /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getResponsiveSearchAdAssetRecommendation() { if (responsiveSearchAdAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 31) { return (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } else { if (recommendationCase_ == 31) { return responsiveSearchAdAssetRecommendationBuilder_.getMessage(); } return com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResponsiveSearchAdAssetRecommendation(com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResponsiveSearchAdAssetRecommendation( com.google.ads.googleads.v10.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.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeResponsiveSearchAdAssetRecommendation(com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation value) { if (responsiveSearchAdAssetRecommendationBuilder_ == null) { if (recommendationCase_ == 31 && recommendation_ != com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance()) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.newBuilder((com.google.ads.googleads.v10.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.v10.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.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder getResponsiveSearchAdAssetRecommendationBuilder() { return getResponsiveSearchAdAssetRecommendationFieldBuilder().getBuilder(); } /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder getResponsiveSearchAdAssetRecommendationOrBuilder() { if ((recommendationCase_ == 31) && (responsiveSearchAdAssetRecommendationBuilder_ != null)) { return responsiveSearchAdAssetRecommendationBuilder_.getMessageOrBuilder(); } else { if (recommendationCase_ == 31) { return (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_; } return com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } } /** *
     * Output only. The responsive search ad asset recommendation.
     * 
* * .google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation responsive_search_ad_asset_recommendation = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder> getResponsiveSearchAdAssetRecommendationFieldBuilder() { if (responsiveSearchAdAssetRecommendationBuilder_ == null) { if (!(recommendationCase_ == 31)) { recommendation_ = com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance(); } responsiveSearchAdAssetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder, com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder>( (com.google.ads.googleads.v10.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) recommendation_, getParentForChildren(), isClean()); recommendation_ = null; } recommendationCase_ = 31; onChanged();; return responsiveSearchAdAssetRecommendationBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.Recommendation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Recommendation) private static final com.google.ads.googleads.v10.resources.Recommendation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Recommendation(); } public static com.google.ads.googleads.v10.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.v10.resources.Recommendation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy