Class Recommendation.KeywordRecommendation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Recommendation.KeywordRecommendation.Builder>
com.google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.Builder
All Implemented Interfaces:
Recommendation.KeywordRecommendationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Recommendation.KeywordRecommendation

public static final class Recommendation.KeywordRecommendation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Recommendation.KeywordRecommendation.Builder> implements Recommendation.KeywordRecommendationOrBuilder
 The keyword recommendation.
 
Protobuf type google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Recommendation.KeywordRecommendation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Recommendation.KeywordRecommendation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Recommendation.KeywordRecommendation.Builder>
    • getDefaultInstanceForType

      public Recommendation.KeywordRecommendation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Recommendation.KeywordRecommendation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Recommendation.KeywordRecommendation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Recommendation.KeywordRecommendation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Recommendation.KeywordRecommendation.Builder>
    • mergeFrom

      public Recommendation.KeywordRecommendation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Recommendation.KeywordRecommendation.Builder>
      Throws:
      IOException
    • hasKeyword

      public boolean hasKeyword()
       Output only. The recommended keyword.
       
      .google.ads.googleads.v23.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasKeyword in interface Recommendation.KeywordRecommendationOrBuilder
      Returns:
      Whether the keyword field is set.
    • getKeyword

      public KeywordInfo getKeyword()
       Output only. The recommended keyword.
       
      .google.ads.googleads.v23.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getKeyword in interface Recommendation.KeywordRecommendationOrBuilder
      Returns:
      The keyword.
    • setKeyword

       Output only. The recommended keyword.
       
      .google.ads.googleads.v23.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setKeyword

       Output only. The recommended keyword.
       
      .google.ads.googleads.v23.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeKeyword

       Output only. The recommended keyword.
       
      .google.ads.googleads.v23.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearKeyword

       Output only. The recommended keyword.
       
      .google.ads.googleads.v23.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getKeywordBuilder

      public KeywordInfo.Builder getKeywordBuilder()
       Output only. The recommended keyword.
       
      .google.ads.googleads.v23.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getKeywordOrBuilder

      public KeywordInfoOrBuilder getKeywordOrBuilder()
       Output only. The recommended keyword.
       
      .google.ads.googleads.v23.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getKeywordOrBuilder in interface Recommendation.KeywordRecommendationOrBuilder
    • getSearchTermsList

       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSearchTermsList in interface Recommendation.KeywordRecommendationOrBuilder
    • getSearchTermsCount

      public int getSearchTermsCount()
       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSearchTermsCount in interface Recommendation.KeywordRecommendationOrBuilder
    • getSearchTerms

      public Recommendation.KeywordRecommendation.SearchTerm getSearchTerms(int index)
       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSearchTerms in interface Recommendation.KeywordRecommendationOrBuilder
    • setSearchTerms

       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setSearchTerms

       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSearchTerms

       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSearchTerms

       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSearchTerms

       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSearchTerms

       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllSearchTerms

       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearSearchTerms

       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeSearchTerms

      public Recommendation.KeywordRecommendation.Builder removeSearchTerms(int index)
       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSearchTermsBuilder

      public Recommendation.KeywordRecommendation.SearchTerm.Builder getSearchTermsBuilder(int index)
       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSearchTermsOrBuilder

      public Recommendation.KeywordRecommendation.SearchTermOrBuilder getSearchTermsOrBuilder(int index)
       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSearchTermsOrBuilder in interface Recommendation.KeywordRecommendationOrBuilder
    • getSearchTermsOrBuilderList

      public List<? extends Recommendation.KeywordRecommendation.SearchTermOrBuilder> getSearchTermsOrBuilderList()
       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSearchTermsOrBuilderList in interface Recommendation.KeywordRecommendationOrBuilder
    • addSearchTermsBuilder

       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSearchTermsBuilder

      public Recommendation.KeywordRecommendation.SearchTerm.Builder addSearchTermsBuilder(int index)
       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSearchTermsBuilderList

       Output only. A list of search terms this keyword matches. The same search
       term may be repeated for multiple keywords.
       
      repeated .google.ads.googleads.v23.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasRecommendedCpcBidMicros

      public boolean hasRecommendedCpcBidMicros()
       Output only. The recommended CPC (cost-per-click) bid.
       
      optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasRecommendedCpcBidMicros in interface Recommendation.KeywordRecommendationOrBuilder
      Returns:
      Whether the recommendedCpcBidMicros field is set.
    • getRecommendedCpcBidMicros

      public long getRecommendedCpcBidMicros()
       Output only. The recommended CPC (cost-per-click) bid.
       
      optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRecommendedCpcBidMicros in interface Recommendation.KeywordRecommendationOrBuilder
      Returns:
      The recommendedCpcBidMicros.
    • setRecommendedCpcBidMicros

      public Recommendation.KeywordRecommendation.Builder setRecommendedCpcBidMicros(long value)
       Output only. The recommended CPC (cost-per-click) bid.
       
      optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The recommendedCpcBidMicros to set.
      Returns:
      This builder for chaining.
    • clearRecommendedCpcBidMicros

      public Recommendation.KeywordRecommendation.Builder clearRecommendedCpcBidMicros()
       Output only. The recommended CPC (cost-per-click) bid.
       
      optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.