Class GenerateRecommendationsRequest.AdGroupInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder>
com.google.ads.googleads.v18.services.GenerateRecommendationsRequest.AdGroupInfo.Builder
All Implemented Interfaces:
GenerateRecommendationsRequest.AdGroupInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GenerateRecommendationsRequest.AdGroupInfo

public static final class GenerateRecommendationsRequest.AdGroupInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder> implements GenerateRecommendationsRequest.AdGroupInfoOrBuilder
 Current AdGroup Information of the campaign.
 
Protobuf type google.ads.googleads.v18.services.GenerateRecommendationsRequest.AdGroupInfo
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.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.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.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.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder>
    • getDefaultInstanceForType

      public GenerateRecommendationsRequest.AdGroupInfo 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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder>
    • setField

      public GenerateRecommendationsRequest.AdGroupInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder>
    • clearField

      public GenerateRecommendationsRequest.AdGroupInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder>
    • clearOneof

      public GenerateRecommendationsRequest.AdGroupInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder>
    • setRepeatedField

      public GenerateRecommendationsRequest.AdGroupInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder>
    • addRepeatedField

      public GenerateRecommendationsRequest.AdGroupInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder>
    • mergeFrom

      public GenerateRecommendationsRequest.AdGroupInfo.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<GenerateRecommendationsRequest.AdGroupInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder>
    • mergeFrom

      public GenerateRecommendationsRequest.AdGroupInfo.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<GenerateRecommendationsRequest.AdGroupInfo.Builder>
      Throws:
      IOException
    • hasAdGroupType

      public boolean hasAdGroupType()
       Optional. AdGroup Type of the AdGroup.
       This field is necessary for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       
      optional .google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType ad_group_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAdGroupType in interface GenerateRecommendationsRequest.AdGroupInfoOrBuilder
      Returns:
      Whether the adGroupType field is set.
    • getAdGroupTypeValue

      public int getAdGroupTypeValue()
       Optional. AdGroup Type of the AdGroup.
       This field is necessary for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       
      optional .google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType ad_group_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdGroupTypeValue in interface GenerateRecommendationsRequest.AdGroupInfoOrBuilder
      Returns:
      The enum numeric value on the wire for adGroupType.
    • setAdGroupTypeValue

      public GenerateRecommendationsRequest.AdGroupInfo.Builder setAdGroupTypeValue(int value)
       Optional. AdGroup Type of the AdGroup.
       This field is necessary for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       
      optional .google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType ad_group_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for adGroupType to set.
      Returns:
      This builder for chaining.
    • getAdGroupType

      public AdGroupTypeEnum.AdGroupType getAdGroupType()
       Optional. AdGroup Type of the AdGroup.
       This field is necessary for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       
      optional .google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType ad_group_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdGroupType in interface GenerateRecommendationsRequest.AdGroupInfoOrBuilder
      Returns:
      The adGroupType.
    • setAdGroupType

       Optional. AdGroup Type of the AdGroup.
       This field is necessary for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       
      optional .google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType ad_group_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The adGroupType to set.
      Returns:
      This builder for chaining.
    • clearAdGroupType

       Optional. AdGroup Type of the AdGroup.
       This field is necessary for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       
      optional .google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType ad_group_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getKeywordsList

      public List<KeywordInfo> getKeywordsList()
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeywordsList in interface GenerateRecommendationsRequest.AdGroupInfoOrBuilder
    • getKeywordsCount

      public int getKeywordsCount()
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeywordsCount in interface GenerateRecommendationsRequest.AdGroupInfoOrBuilder
    • getKeywords

      public KeywordInfo getKeywords(int index)
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeywords in interface GenerateRecommendationsRequest.AdGroupInfoOrBuilder
    • setKeywords

      public GenerateRecommendationsRequest.AdGroupInfo.Builder setKeywords(int index, KeywordInfo value)
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setKeywords

      public GenerateRecommendationsRequest.AdGroupInfo.Builder setKeywords(int index, KeywordInfo.Builder builderForValue)
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addKeywords

       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addKeywords

      public GenerateRecommendationsRequest.AdGroupInfo.Builder addKeywords(int index, KeywordInfo value)
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addKeywords

       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addKeywords

      public GenerateRecommendationsRequest.AdGroupInfo.Builder addKeywords(int index, KeywordInfo.Builder builderForValue)
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllKeywords

      public GenerateRecommendationsRequest.AdGroupInfo.Builder addAllKeywords(Iterable<? extends KeywordInfo> values)
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearKeywords

       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeKeywords

      public GenerateRecommendationsRequest.AdGroupInfo.Builder removeKeywords(int index)
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getKeywordsBuilder

      public KeywordInfo.Builder getKeywordsBuilder(int index)
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getKeywordsOrBuilder

      public KeywordInfoOrBuilder getKeywordsOrBuilder(int index)
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeywordsOrBuilder in interface GenerateRecommendationsRequest.AdGroupInfoOrBuilder
    • getKeywordsOrBuilderList

      public List<? extends KeywordInfoOrBuilder> getKeywordsOrBuilderList()
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeywordsOrBuilderList in interface GenerateRecommendationsRequest.AdGroupInfoOrBuilder
    • addKeywordsBuilder

      public KeywordInfo.Builder addKeywordsBuilder()
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addKeywordsBuilder

      public KeywordInfo.Builder addKeywordsBuilder(int index)
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getKeywordsBuilderList

      public List<KeywordInfo.Builder> getKeywordsBuilderList()
       Optional. Current keywords.
       This field is optional for the following recommendation_types if
       ad_group_info is set:
       KEYWORD
       This field is required for the following recommendation_types:
       CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
       
      repeated .google.ads.googleads.v18.common.KeywordInfo keywords = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setUnknownFields

      public final GenerateRecommendationsRequest.AdGroupInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder>
    • mergeUnknownFields

      public final GenerateRecommendationsRequest.AdGroupInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AdGroupInfo.Builder>