Class GenerateRecommendationsRequest.AssetGroupInfo.Builder

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

public static final class GenerateRecommendationsRequest.AssetGroupInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.AssetGroupInfo.Builder> implements GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
 Current AssetGroup information of the campaign.
 
Protobuf type google.ads.googleads.v18.services.GenerateRecommendationsRequest.AssetGroupInfo
  • 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.AssetGroupInfo.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.AssetGroupInfo.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.AssetGroupInfo.Builder>
    • getDefaultInstanceForType

      public GenerateRecommendationsRequest.AssetGroupInfo 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.AssetGroupInfo.Builder>
    • setField

      public GenerateRecommendationsRequest.AssetGroupInfo.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.AssetGroupInfo.Builder>
    • clearField

      public GenerateRecommendationsRequest.AssetGroupInfo.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.AssetGroupInfo.Builder>
    • clearOneof

      public GenerateRecommendationsRequest.AssetGroupInfo.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.AssetGroupInfo.Builder>
    • setRepeatedField

      public GenerateRecommendationsRequest.AssetGroupInfo.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.AssetGroupInfo.Builder>
    • addRepeatedField

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

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

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

      public boolean hasFinalUrl()
       Required. Current url of the asset group.
       This field is necessary for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasFinalUrl in interface GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
      Returns:
      Whether the finalUrl field is set.
    • getFinalUrl

      public String getFinalUrl()
       Required. Current url of the asset group.
       This field is necessary for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFinalUrl in interface GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
      Returns:
      The finalUrl.
    • getFinalUrlBytes

      public com.google.protobuf.ByteString getFinalUrlBytes()
       Required. Current url of the asset group.
       This field is necessary for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFinalUrlBytes in interface GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
      Returns:
      The bytes for finalUrl.
    • setFinalUrl

       Required. Current url of the asset group.
       This field is necessary for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The finalUrl to set.
      Returns:
      This builder for chaining.
    • clearFinalUrl

       Required. Current url of the asset group.
       This field is necessary for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setFinalUrlBytes

      public GenerateRecommendationsRequest.AssetGroupInfo.Builder setFinalUrlBytes(com.google.protobuf.ByteString value)
       Required. Current url of the asset group.
       This field is necessary for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      optional string final_url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for finalUrl to set.
      Returns:
      This builder for chaining.
    • getHeadlineList

      public com.google.protobuf.ProtocolStringList getHeadlineList()
       Optional. Current headlines of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHeadlineList in interface GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
      Returns:
      A list containing the headline.
    • getHeadlineCount

      public int getHeadlineCount()
       Optional. Current headlines of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHeadlineCount in interface GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
      Returns:
      The count of headline.
    • getHeadline

      public String getHeadline(int index)
       Optional. Current headlines of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHeadline in interface GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The headline at the given index.
    • getHeadlineBytes

      public com.google.protobuf.ByteString getHeadlineBytes(int index)
       Optional. Current headlines of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHeadlineBytes in interface GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the headline at the given index.
    • setHeadline

      public GenerateRecommendationsRequest.AssetGroupInfo.Builder setHeadline(int index, String value)
       Optional. Current headlines of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The headline to set.
      Returns:
      This builder for chaining.
    • addHeadline

       Optional. Current headlines of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The headline to add.
      Returns:
      This builder for chaining.
    • addAllHeadline

       Optional. Current headlines of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The headline to add.
      Returns:
      This builder for chaining.
    • clearHeadline

       Optional. Current headlines of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addHeadlineBytes

      public GenerateRecommendationsRequest.AssetGroupInfo.Builder addHeadlineBytes(com.google.protobuf.ByteString value)
       Optional. Current headlines of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string headline = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the headline to add.
      Returns:
      This builder for chaining.
    • getDescriptionList

      public com.google.protobuf.ProtocolStringList getDescriptionList()
       Optional. Current descriptions of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionList in interface GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
      Returns:
      A list containing the description.
    • getDescriptionCount

      public int getDescriptionCount()
       Optional. Current descriptions of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionCount in interface GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
      Returns:
      The count of description.
    • getDescription

      public String getDescription(int index)
       Optional. Current descriptions of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The description at the given index.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes(int index)
       Optional. Current descriptions of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface GenerateRecommendationsRequest.AssetGroupInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the description at the given index.
    • setDescription

      public GenerateRecommendationsRequest.AssetGroupInfo.Builder setDescription(int index, String value)
       Optional. Current descriptions of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The description to set.
      Returns:
      This builder for chaining.
    • addDescription

       Optional. Current descriptions of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to add.
      Returns:
      This builder for chaining.
    • addAllDescription

       Optional. Current descriptions of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The description to add.
      Returns:
      This builder for chaining.
    • clearDescription

       Optional. Current descriptions of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addDescriptionBytes

      public GenerateRecommendationsRequest.AssetGroupInfo.Builder addDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Current descriptions of the asset group.
       This field is optional for the following recommendation_types if
       asset_group_info is set:
       CAMPAIGN_BUDGET
       
      repeated string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the description to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final GenerateRecommendationsRequest.AssetGroupInfo.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.AssetGroupInfo.Builder>
    • mergeUnknownFields

      public final GenerateRecommendationsRequest.AssetGroupInfo.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.AssetGroupInfo.Builder>