Class LeadFormAsset.Builder

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

public static final class LeadFormAsset.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LeadFormAsset.Builder> implements LeadFormAssetOrBuilder
 A Lead Form asset.
 
Protobuf type google.ads.googleads.v18.common.LeadFormAsset
  • 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<LeadFormAsset.Builder>
    • clear

      public LeadFormAsset.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<LeadFormAsset.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<LeadFormAsset.Builder>
    • getDefaultInstanceForType

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

      public LeadFormAsset build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public LeadFormAsset buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

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

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

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

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

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

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

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

      public LeadFormAsset.Builder mergeFrom(LeadFormAsset other)
    • isInitialized

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

      public LeadFormAsset.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<LeadFormAsset.Builder>
      Throws:
      IOException
    • getBusinessName

      public String getBusinessName()
       Required. The name of the business being advertised.
       
      string business_name = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBusinessName in interface LeadFormAssetOrBuilder
      Returns:
      The businessName.
    • getBusinessNameBytes

      public com.google.protobuf.ByteString getBusinessNameBytes()
       Required. The name of the business being advertised.
       
      string business_name = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBusinessNameBytes in interface LeadFormAssetOrBuilder
      Returns:
      The bytes for businessName.
    • setBusinessName

      public LeadFormAsset.Builder setBusinessName(String value)
       Required. The name of the business being advertised.
       
      string business_name = 10 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The businessName to set.
      Returns:
      This builder for chaining.
    • clearBusinessName

      public LeadFormAsset.Builder clearBusinessName()
       Required. The name of the business being advertised.
       
      string business_name = 10 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setBusinessNameBytes

      public LeadFormAsset.Builder setBusinessNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the business being advertised.
       
      string business_name = 10 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for businessName to set.
      Returns:
      This builder for chaining.
    • getCallToActionTypeValue

      public int getCallToActionTypeValue()
       Required. Pre-defined display text that encourages user to expand the form.
       
      .google.ads.googleads.v18.enums.LeadFormCallToActionTypeEnum.LeadFormCallToActionType call_to_action_type = 17 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCallToActionTypeValue in interface LeadFormAssetOrBuilder
      Returns:
      The enum numeric value on the wire for callToActionType.
    • setCallToActionTypeValue

      public LeadFormAsset.Builder setCallToActionTypeValue(int value)
       Required. Pre-defined display text that encourages user to expand the form.
       
      .google.ads.googleads.v18.enums.LeadFormCallToActionTypeEnum.LeadFormCallToActionType call_to_action_type = 17 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for callToActionType to set.
      Returns:
      This builder for chaining.
    • getCallToActionType

       Required. Pre-defined display text that encourages user to expand the form.
       
      .google.ads.googleads.v18.enums.LeadFormCallToActionTypeEnum.LeadFormCallToActionType call_to_action_type = 17 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCallToActionType in interface LeadFormAssetOrBuilder
      Returns:
      The callToActionType.
    • setCallToActionType

       Required. Pre-defined display text that encourages user to expand the form.
       
      .google.ads.googleads.v18.enums.LeadFormCallToActionTypeEnum.LeadFormCallToActionType call_to_action_type = 17 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The callToActionType to set.
      Returns:
      This builder for chaining.
    • clearCallToActionType

      public LeadFormAsset.Builder clearCallToActionType()
       Required. Pre-defined display text that encourages user to expand the form.
       
      .google.ads.googleads.v18.enums.LeadFormCallToActionTypeEnum.LeadFormCallToActionType call_to_action_type = 17 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getCallToActionDescription

      public String getCallToActionDescription()
       Required. Text giving a clear value proposition of what users expect once
       they expand the form.
       
      string call_to_action_description = 18 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCallToActionDescription in interface LeadFormAssetOrBuilder
      Returns:
      The callToActionDescription.
    • getCallToActionDescriptionBytes

      public com.google.protobuf.ByteString getCallToActionDescriptionBytes()
       Required. Text giving a clear value proposition of what users expect once
       they expand the form.
       
      string call_to_action_description = 18 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCallToActionDescriptionBytes in interface LeadFormAssetOrBuilder
      Returns:
      The bytes for callToActionDescription.
    • setCallToActionDescription

      public LeadFormAsset.Builder setCallToActionDescription(String value)
       Required. Text giving a clear value proposition of what users expect once
       they expand the form.
       
      string call_to_action_description = 18 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The callToActionDescription to set.
      Returns:
      This builder for chaining.
    • clearCallToActionDescription

      public LeadFormAsset.Builder clearCallToActionDescription()
       Required. Text giving a clear value proposition of what users expect once
       they expand the form.
       
      string call_to_action_description = 18 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCallToActionDescriptionBytes

      public LeadFormAsset.Builder setCallToActionDescriptionBytes(com.google.protobuf.ByteString value)
       Required. Text giving a clear value proposition of what users expect once
       they expand the form.
       
      string call_to_action_description = 18 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for callToActionDescription to set.
      Returns:
      This builder for chaining.
    • getHeadline

      public String getHeadline()
       Required. Headline of the expanded form to describe what the form is asking
       for or facilitating.
       
      string headline = 12 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHeadline in interface LeadFormAssetOrBuilder
      Returns:
      The headline.
    • getHeadlineBytes

      public com.google.protobuf.ByteString getHeadlineBytes()
       Required. Headline of the expanded form to describe what the form is asking
       for or facilitating.
       
      string headline = 12 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHeadlineBytes in interface LeadFormAssetOrBuilder
      Returns:
      The bytes for headline.
    • setHeadline

      public LeadFormAsset.Builder setHeadline(String value)
       Required. Headline of the expanded form to describe what the form is asking
       for or facilitating.
       
      string headline = 12 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The headline to set.
      Returns:
      This builder for chaining.
    • clearHeadline

      public LeadFormAsset.Builder clearHeadline()
       Required. Headline of the expanded form to describe what the form is asking
       for or facilitating.
       
      string headline = 12 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setHeadlineBytes

      public LeadFormAsset.Builder setHeadlineBytes(com.google.protobuf.ByteString value)
       Required. Headline of the expanded form to describe what the form is asking
       for or facilitating.
       
      string headline = 12 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for headline to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Required. Detailed description of the expanded form to describe what the
       form is asking for or facilitating.
       
      string description = 13 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDescription in interface LeadFormAssetOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Required. Detailed description of the expanded form to describe what the
       form is asking for or facilitating.
       
      string description = 13 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDescriptionBytes in interface LeadFormAssetOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public LeadFormAsset.Builder setDescription(String value)
       Required. Detailed description of the expanded form to describe what the
       form is asking for or facilitating.
       
      string description = 13 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public LeadFormAsset.Builder clearDescription()
       Required. Detailed description of the expanded form to describe what the
       form is asking for or facilitating.
       
      string description = 13 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public LeadFormAsset.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Required. Detailed description of the expanded form to describe what the
       form is asking for or facilitating.
       
      string description = 13 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getPrivacyPolicyUrl

      public String getPrivacyPolicyUrl()
       Required. Link to a page describing the policy on how the collected data is
       handled by the advertiser/business.
       
      string privacy_policy_url = 14 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrivacyPolicyUrl in interface LeadFormAssetOrBuilder
      Returns:
      The privacyPolicyUrl.
    • getPrivacyPolicyUrlBytes

      public com.google.protobuf.ByteString getPrivacyPolicyUrlBytes()
       Required. Link to a page describing the policy on how the collected data is
       handled by the advertiser/business.
       
      string privacy_policy_url = 14 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrivacyPolicyUrlBytes in interface LeadFormAssetOrBuilder
      Returns:
      The bytes for privacyPolicyUrl.
    • setPrivacyPolicyUrl

      public LeadFormAsset.Builder setPrivacyPolicyUrl(String value)
       Required. Link to a page describing the policy on how the collected data is
       handled by the advertiser/business.
       
      string privacy_policy_url = 14 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The privacyPolicyUrl to set.
      Returns:
      This builder for chaining.
    • clearPrivacyPolicyUrl

      public LeadFormAsset.Builder clearPrivacyPolicyUrl()
       Required. Link to a page describing the policy on how the collected data is
       handled by the advertiser/business.
       
      string privacy_policy_url = 14 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPrivacyPolicyUrlBytes

      public LeadFormAsset.Builder setPrivacyPolicyUrlBytes(com.google.protobuf.ByteString value)
       Required. Link to a page describing the policy on how the collected data is
       handled by the advertiser/business.
       
      string privacy_policy_url = 14 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for privacyPolicyUrl to set.
      Returns:
      This builder for chaining.
    • hasPostSubmitHeadline

      public boolean hasPostSubmitHeadline()
       Headline of text shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_headline = 15;
      Specified by:
      hasPostSubmitHeadline in interface LeadFormAssetOrBuilder
      Returns:
      Whether the postSubmitHeadline field is set.
    • getPostSubmitHeadline

      public String getPostSubmitHeadline()
       Headline of text shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_headline = 15;
      Specified by:
      getPostSubmitHeadline in interface LeadFormAssetOrBuilder
      Returns:
      The postSubmitHeadline.
    • getPostSubmitHeadlineBytes

      public com.google.protobuf.ByteString getPostSubmitHeadlineBytes()
       Headline of text shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_headline = 15;
      Specified by:
      getPostSubmitHeadlineBytes in interface LeadFormAssetOrBuilder
      Returns:
      The bytes for postSubmitHeadline.
    • setPostSubmitHeadline

      public LeadFormAsset.Builder setPostSubmitHeadline(String value)
       Headline of text shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_headline = 15;
      Parameters:
      value - The postSubmitHeadline to set.
      Returns:
      This builder for chaining.
    • clearPostSubmitHeadline

      public LeadFormAsset.Builder clearPostSubmitHeadline()
       Headline of text shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_headline = 15;
      Returns:
      This builder for chaining.
    • setPostSubmitHeadlineBytes

      public LeadFormAsset.Builder setPostSubmitHeadlineBytes(com.google.protobuf.ByteString value)
       Headline of text shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_headline = 15;
      Parameters:
      value - The bytes for postSubmitHeadline to set.
      Returns:
      This builder for chaining.
    • hasPostSubmitDescription

      public boolean hasPostSubmitDescription()
       Detailed description shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_description = 16;
      Specified by:
      hasPostSubmitDescription in interface LeadFormAssetOrBuilder
      Returns:
      Whether the postSubmitDescription field is set.
    • getPostSubmitDescription

      public String getPostSubmitDescription()
       Detailed description shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_description = 16;
      Specified by:
      getPostSubmitDescription in interface LeadFormAssetOrBuilder
      Returns:
      The postSubmitDescription.
    • getPostSubmitDescriptionBytes

      public com.google.protobuf.ByteString getPostSubmitDescriptionBytes()
       Detailed description shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_description = 16;
      Specified by:
      getPostSubmitDescriptionBytes in interface LeadFormAssetOrBuilder
      Returns:
      The bytes for postSubmitDescription.
    • setPostSubmitDescription

      public LeadFormAsset.Builder setPostSubmitDescription(String value)
       Detailed description shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_description = 16;
      Parameters:
      value - The postSubmitDescription to set.
      Returns:
      This builder for chaining.
    • clearPostSubmitDescription

      public LeadFormAsset.Builder clearPostSubmitDescription()
       Detailed description shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_description = 16;
      Returns:
      This builder for chaining.
    • setPostSubmitDescriptionBytes

      public LeadFormAsset.Builder setPostSubmitDescriptionBytes(com.google.protobuf.ByteString value)
       Detailed description shown after form submission that describes how the
       advertiser will follow up with the user.
       
      optional string post_submit_description = 16;
      Parameters:
      value - The bytes for postSubmitDescription to set.
      Returns:
      This builder for chaining.
    • getFieldsList

      public List<LeadFormField> getFieldsList()
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
      Specified by:
      getFieldsList in interface LeadFormAssetOrBuilder
    • getFieldsCount

      public int getFieldsCount()
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
      Specified by:
      getFieldsCount in interface LeadFormAssetOrBuilder
    • getFields

      public LeadFormField getFields(int index)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
      Specified by:
      getFields in interface LeadFormAssetOrBuilder
    • setFields

      public LeadFormAsset.Builder setFields(int index, LeadFormField value)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • setFields

      public LeadFormAsset.Builder setFields(int index, LeadFormField.Builder builderForValue)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • addFields

      public LeadFormAsset.Builder addFields(LeadFormField value)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • addFields

      public LeadFormAsset.Builder addFields(int index, LeadFormField value)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • addFields

      public LeadFormAsset.Builder addFields(LeadFormField.Builder builderForValue)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • addFields

      public LeadFormAsset.Builder addFields(int index, LeadFormField.Builder builderForValue)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • addAllFields

      public LeadFormAsset.Builder addAllFields(Iterable<? extends LeadFormField> values)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • clearFields

      public LeadFormAsset.Builder clearFields()
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • removeFields

      public LeadFormAsset.Builder removeFields(int index)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • getFieldsBuilder

      public LeadFormField.Builder getFieldsBuilder(int index)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • getFieldsOrBuilder

      public LeadFormFieldOrBuilder getFieldsOrBuilder(int index)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
      Specified by:
      getFieldsOrBuilder in interface LeadFormAssetOrBuilder
    • getFieldsOrBuilderList

      public List<? extends LeadFormFieldOrBuilder> getFieldsOrBuilderList()
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
      Specified by:
      getFieldsOrBuilderList in interface LeadFormAssetOrBuilder
    • addFieldsBuilder

      public LeadFormField.Builder addFieldsBuilder()
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • addFieldsBuilder

      public LeadFormField.Builder addFieldsBuilder(int index)
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • getFieldsBuilderList

      public List<LeadFormField.Builder> getFieldsBuilderList()
       Ordered list of input fields. This field can be updated by reordering
       questions, but not by adding or removing questions.
       
      repeated .google.ads.googleads.v18.common.LeadFormField fields = 8;
    • getCustomQuestionFieldsList

      public List<LeadFormCustomQuestionField> getCustomQuestionFieldsList()
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
      Specified by:
      getCustomQuestionFieldsList in interface LeadFormAssetOrBuilder
    • getCustomQuestionFieldsCount

      public int getCustomQuestionFieldsCount()
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
      Specified by:
      getCustomQuestionFieldsCount in interface LeadFormAssetOrBuilder
    • getCustomQuestionFields

      public LeadFormCustomQuestionField getCustomQuestionFields(int index)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
      Specified by:
      getCustomQuestionFields in interface LeadFormAssetOrBuilder
    • setCustomQuestionFields

      public LeadFormAsset.Builder setCustomQuestionFields(int index, LeadFormCustomQuestionField value)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • setCustomQuestionFields

      public LeadFormAsset.Builder setCustomQuestionFields(int index, LeadFormCustomQuestionField.Builder builderForValue)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • addCustomQuestionFields

      public LeadFormAsset.Builder addCustomQuestionFields(LeadFormCustomQuestionField value)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • addCustomQuestionFields

      public LeadFormAsset.Builder addCustomQuestionFields(int index, LeadFormCustomQuestionField value)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • addCustomQuestionFields

      public LeadFormAsset.Builder addCustomQuestionFields(LeadFormCustomQuestionField.Builder builderForValue)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • addCustomQuestionFields

      public LeadFormAsset.Builder addCustomQuestionFields(int index, LeadFormCustomQuestionField.Builder builderForValue)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • addAllCustomQuestionFields

      public LeadFormAsset.Builder addAllCustomQuestionFields(Iterable<? extends LeadFormCustomQuestionField> values)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • clearCustomQuestionFields

      public LeadFormAsset.Builder clearCustomQuestionFields()
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • removeCustomQuestionFields

      public LeadFormAsset.Builder removeCustomQuestionFields(int index)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • getCustomQuestionFieldsBuilder

      public LeadFormCustomQuestionField.Builder getCustomQuestionFieldsBuilder(int index)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • getCustomQuestionFieldsOrBuilder

      public LeadFormCustomQuestionFieldOrBuilder getCustomQuestionFieldsOrBuilder(int index)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
      Specified by:
      getCustomQuestionFieldsOrBuilder in interface LeadFormAssetOrBuilder
    • getCustomQuestionFieldsOrBuilderList

      public List<? extends LeadFormCustomQuestionFieldOrBuilder> getCustomQuestionFieldsOrBuilderList()
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
      Specified by:
      getCustomQuestionFieldsOrBuilderList in interface LeadFormAssetOrBuilder
    • addCustomQuestionFieldsBuilder

      public LeadFormCustomQuestionField.Builder addCustomQuestionFieldsBuilder()
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • addCustomQuestionFieldsBuilder

      public LeadFormCustomQuestionField.Builder addCustomQuestionFieldsBuilder(int index)
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • getCustomQuestionFieldsBuilderList

      public List<LeadFormCustomQuestionField.Builder> getCustomQuestionFieldsBuilderList()
       Ordered list of custom question fields. This field is subject to a limit of
       5 qualifying questions per form.
       
      repeated .google.ads.googleads.v18.common.LeadFormCustomQuestionField custom_question_fields = 23;
    • getDeliveryMethodsList

      public List<LeadFormDeliveryMethod> getDeliveryMethodsList()
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
      Specified by:
      getDeliveryMethodsList in interface LeadFormAssetOrBuilder
    • getDeliveryMethodsCount

      public int getDeliveryMethodsCount()
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
      Specified by:
      getDeliveryMethodsCount in interface LeadFormAssetOrBuilder
    • getDeliveryMethods

      public LeadFormDeliveryMethod getDeliveryMethods(int index)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
      Specified by:
      getDeliveryMethods in interface LeadFormAssetOrBuilder
    • setDeliveryMethods

      public LeadFormAsset.Builder setDeliveryMethods(int index, LeadFormDeliveryMethod value)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • setDeliveryMethods

      public LeadFormAsset.Builder setDeliveryMethods(int index, LeadFormDeliveryMethod.Builder builderForValue)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • addDeliveryMethods

      public LeadFormAsset.Builder addDeliveryMethods(LeadFormDeliveryMethod value)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • addDeliveryMethods

      public LeadFormAsset.Builder addDeliveryMethods(int index, LeadFormDeliveryMethod value)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • addDeliveryMethods

      public LeadFormAsset.Builder addDeliveryMethods(LeadFormDeliveryMethod.Builder builderForValue)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • addDeliveryMethods

      public LeadFormAsset.Builder addDeliveryMethods(int index, LeadFormDeliveryMethod.Builder builderForValue)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • addAllDeliveryMethods

      public LeadFormAsset.Builder addAllDeliveryMethods(Iterable<? extends LeadFormDeliveryMethod> values)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • clearDeliveryMethods

      public LeadFormAsset.Builder clearDeliveryMethods()
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • removeDeliveryMethods

      public LeadFormAsset.Builder removeDeliveryMethods(int index)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • getDeliveryMethodsBuilder

      public LeadFormDeliveryMethod.Builder getDeliveryMethodsBuilder(int index)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • getDeliveryMethodsOrBuilder

      public LeadFormDeliveryMethodOrBuilder getDeliveryMethodsOrBuilder(int index)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
      Specified by:
      getDeliveryMethodsOrBuilder in interface LeadFormAssetOrBuilder
    • getDeliveryMethodsOrBuilderList

      public List<? extends LeadFormDeliveryMethodOrBuilder> getDeliveryMethodsOrBuilderList()
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
      Specified by:
      getDeliveryMethodsOrBuilderList in interface LeadFormAssetOrBuilder
    • addDeliveryMethodsBuilder

      public LeadFormDeliveryMethod.Builder addDeliveryMethodsBuilder()
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • addDeliveryMethodsBuilder

      public LeadFormDeliveryMethod.Builder addDeliveryMethodsBuilder(int index)
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • getDeliveryMethodsBuilderList

      public List<LeadFormDeliveryMethod.Builder> getDeliveryMethodsBuilderList()
       Configured methods for collected lead data to be delivered to advertiser.
       Only one method typed as WebhookDelivery can be configured.
       
      repeated .google.ads.googleads.v18.common.LeadFormDeliveryMethod delivery_methods = 9;
    • getPostSubmitCallToActionTypeValue

      public int getPostSubmitCallToActionTypeValue()
       Pre-defined display text that encourages user action after the form is
       submitted.
       
      .google.ads.googleads.v18.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType post_submit_call_to_action_type = 19;
      Specified by:
      getPostSubmitCallToActionTypeValue in interface LeadFormAssetOrBuilder
      Returns:
      The enum numeric value on the wire for postSubmitCallToActionType.
    • setPostSubmitCallToActionTypeValue

      public LeadFormAsset.Builder setPostSubmitCallToActionTypeValue(int value)
       Pre-defined display text that encourages user action after the form is
       submitted.
       
      .google.ads.googleads.v18.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType post_submit_call_to_action_type = 19;
      Parameters:
      value - The enum numeric value on the wire for postSubmitCallToActionType to set.
      Returns:
      This builder for chaining.
    • getPostSubmitCallToActionType

       Pre-defined display text that encourages user action after the form is
       submitted.
       
      .google.ads.googleads.v18.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType post_submit_call_to_action_type = 19;
      Specified by:
      getPostSubmitCallToActionType in interface LeadFormAssetOrBuilder
      Returns:
      The postSubmitCallToActionType.
    • setPostSubmitCallToActionType

       Pre-defined display text that encourages user action after the form is
       submitted.
       
      .google.ads.googleads.v18.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType post_submit_call_to_action_type = 19;
      Parameters:
      value - The postSubmitCallToActionType to set.
      Returns:
      This builder for chaining.
    • clearPostSubmitCallToActionType

      public LeadFormAsset.Builder clearPostSubmitCallToActionType()
       Pre-defined display text that encourages user action after the form is
       submitted.
       
      .google.ads.googleads.v18.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType post_submit_call_to_action_type = 19;
      Returns:
      This builder for chaining.
    • hasBackgroundImageAsset

      public boolean hasBackgroundImageAsset()
       Asset resource name of the background image.
       The image dimensions must be exactly 1200x628.
       
      optional string background_image_asset = 20;
      Specified by:
      hasBackgroundImageAsset in interface LeadFormAssetOrBuilder
      Returns:
      Whether the backgroundImageAsset field is set.
    • getBackgroundImageAsset

      public String getBackgroundImageAsset()
       Asset resource name of the background image.
       The image dimensions must be exactly 1200x628.
       
      optional string background_image_asset = 20;
      Specified by:
      getBackgroundImageAsset in interface LeadFormAssetOrBuilder
      Returns:
      The backgroundImageAsset.
    • getBackgroundImageAssetBytes

      public com.google.protobuf.ByteString getBackgroundImageAssetBytes()
       Asset resource name of the background image.
       The image dimensions must be exactly 1200x628.
       
      optional string background_image_asset = 20;
      Specified by:
      getBackgroundImageAssetBytes in interface LeadFormAssetOrBuilder
      Returns:
      The bytes for backgroundImageAsset.
    • setBackgroundImageAsset

      public LeadFormAsset.Builder setBackgroundImageAsset(String value)
       Asset resource name of the background image.
       The image dimensions must be exactly 1200x628.
       
      optional string background_image_asset = 20;
      Parameters:
      value - The backgroundImageAsset to set.
      Returns:
      This builder for chaining.
    • clearBackgroundImageAsset

      public LeadFormAsset.Builder clearBackgroundImageAsset()
       Asset resource name of the background image.
       The image dimensions must be exactly 1200x628.
       
      optional string background_image_asset = 20;
      Returns:
      This builder for chaining.
    • setBackgroundImageAssetBytes

      public LeadFormAsset.Builder setBackgroundImageAssetBytes(com.google.protobuf.ByteString value)
       Asset resource name of the background image.
       The image dimensions must be exactly 1200x628.
       
      optional string background_image_asset = 20;
      Parameters:
      value - The bytes for backgroundImageAsset to set.
      Returns:
      This builder for chaining.
    • getDesiredIntentValue

      public int getDesiredIntentValue()
       Chosen intent for the lead form, for example, more volume or more
       qualified.
       
      .google.ads.googleads.v18.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent desired_intent = 21;
      Specified by:
      getDesiredIntentValue in interface LeadFormAssetOrBuilder
      Returns:
      The enum numeric value on the wire for desiredIntent.
    • setDesiredIntentValue

      public LeadFormAsset.Builder setDesiredIntentValue(int value)
       Chosen intent for the lead form, for example, more volume or more
       qualified.
       
      .google.ads.googleads.v18.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent desired_intent = 21;
      Parameters:
      value - The enum numeric value on the wire for desiredIntent to set.
      Returns:
      This builder for chaining.
    • getDesiredIntent

       Chosen intent for the lead form, for example, more volume or more
       qualified.
       
      .google.ads.googleads.v18.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent desired_intent = 21;
      Specified by:
      getDesiredIntent in interface LeadFormAssetOrBuilder
      Returns:
      The desiredIntent.
    • setDesiredIntent

       Chosen intent for the lead form, for example, more volume or more
       qualified.
       
      .google.ads.googleads.v18.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent desired_intent = 21;
      Parameters:
      value - The desiredIntent to set.
      Returns:
      This builder for chaining.
    • clearDesiredIntent

      public LeadFormAsset.Builder clearDesiredIntent()
       Chosen intent for the lead form, for example, more volume or more
       qualified.
       
      .google.ads.googleads.v18.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent desired_intent = 21;
      Returns:
      This builder for chaining.
    • hasCustomDisclosure

      public boolean hasCustomDisclosure()
       Custom disclosure shown along with Google disclaimer on the lead form.
       Accessible to allowed customers only.
       
      optional string custom_disclosure = 22;
      Specified by:
      hasCustomDisclosure in interface LeadFormAssetOrBuilder
      Returns:
      Whether the customDisclosure field is set.
    • getCustomDisclosure

      public String getCustomDisclosure()
       Custom disclosure shown along with Google disclaimer on the lead form.
       Accessible to allowed customers only.
       
      optional string custom_disclosure = 22;
      Specified by:
      getCustomDisclosure in interface LeadFormAssetOrBuilder
      Returns:
      The customDisclosure.
    • getCustomDisclosureBytes

      public com.google.protobuf.ByteString getCustomDisclosureBytes()
       Custom disclosure shown along with Google disclaimer on the lead form.
       Accessible to allowed customers only.
       
      optional string custom_disclosure = 22;
      Specified by:
      getCustomDisclosureBytes in interface LeadFormAssetOrBuilder
      Returns:
      The bytes for customDisclosure.
    • setCustomDisclosure

      public LeadFormAsset.Builder setCustomDisclosure(String value)
       Custom disclosure shown along with Google disclaimer on the lead form.
       Accessible to allowed customers only.
       
      optional string custom_disclosure = 22;
      Parameters:
      value - The customDisclosure to set.
      Returns:
      This builder for chaining.
    • clearCustomDisclosure

      public LeadFormAsset.Builder clearCustomDisclosure()
       Custom disclosure shown along with Google disclaimer on the lead form.
       Accessible to allowed customers only.
       
      optional string custom_disclosure = 22;
      Returns:
      This builder for chaining.
    • setCustomDisclosureBytes

      public LeadFormAsset.Builder setCustomDisclosureBytes(com.google.protobuf.ByteString value)
       Custom disclosure shown along with Google disclaimer on the lead form.
       Accessible to allowed customers only.
       
      optional string custom_disclosure = 22;
      Parameters:
      value - The bytes for customDisclosure to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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