Class LeadFormCustomQuestionField.Builder

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

public static final class LeadFormCustomQuestionField.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LeadFormCustomQuestionField.Builder> implements LeadFormCustomQuestionFieldOrBuilder
 One custom question input field instance within a form.
 
Protobuf type google.ads.googleads.v18.common.LeadFormCustomQuestionField
  • 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<LeadFormCustomQuestionField.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<LeadFormCustomQuestionField.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<LeadFormCustomQuestionField.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public LeadFormCustomQuestionField.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<LeadFormCustomQuestionField.Builder>
      Throws:
      IOException
    • getAnswersCase

      public LeadFormCustomQuestionField.AnswersCase getAnswersCase()
      Specified by:
      getAnswersCase in interface LeadFormCustomQuestionFieldOrBuilder
    • clearAnswers

      public LeadFormCustomQuestionField.Builder clearAnswers()
    • getCustomQuestionText

      public String getCustomQuestionText()
       The exact custom question field text (for example, "What kind of vehicle
       do you have?").
       
      string custom_question_text = 1;
      Specified by:
      getCustomQuestionText in interface LeadFormCustomQuestionFieldOrBuilder
      Returns:
      The customQuestionText.
    • getCustomQuestionTextBytes

      public com.google.protobuf.ByteString getCustomQuestionTextBytes()
       The exact custom question field text (for example, "What kind of vehicle
       do you have?").
       
      string custom_question_text = 1;
      Specified by:
      getCustomQuestionTextBytes in interface LeadFormCustomQuestionFieldOrBuilder
      Returns:
      The bytes for customQuestionText.
    • setCustomQuestionText

      public LeadFormCustomQuestionField.Builder setCustomQuestionText(String value)
       The exact custom question field text (for example, "What kind of vehicle
       do you have?").
       
      string custom_question_text = 1;
      Parameters:
      value - The customQuestionText to set.
      Returns:
      This builder for chaining.
    • clearCustomQuestionText

      public LeadFormCustomQuestionField.Builder clearCustomQuestionText()
       The exact custom question field text (for example, "What kind of vehicle
       do you have?").
       
      string custom_question_text = 1;
      Returns:
      This builder for chaining.
    • setCustomQuestionTextBytes

      public LeadFormCustomQuestionField.Builder setCustomQuestionTextBytes(com.google.protobuf.ByteString value)
       The exact custom question field text (for example, "What kind of vehicle
       do you have?").
       
      string custom_question_text = 1;
      Parameters:
      value - The bytes for customQuestionText to set.
      Returns:
      This builder for chaining.
    • hasSingleChoiceAnswers

      public boolean hasSingleChoiceAnswers()
       Answer configuration for a single choice question.
       Minimum of 2 answers and maximum of 12 allowed.
       
      .google.ads.googleads.v18.common.LeadFormSingleChoiceAnswers single_choice_answers = 2;
      Specified by:
      hasSingleChoiceAnswers in interface LeadFormCustomQuestionFieldOrBuilder
      Returns:
      Whether the singleChoiceAnswers field is set.
    • getSingleChoiceAnswers

      public LeadFormSingleChoiceAnswers getSingleChoiceAnswers()
       Answer configuration for a single choice question.
       Minimum of 2 answers and maximum of 12 allowed.
       
      .google.ads.googleads.v18.common.LeadFormSingleChoiceAnswers single_choice_answers = 2;
      Specified by:
      getSingleChoiceAnswers in interface LeadFormCustomQuestionFieldOrBuilder
      Returns:
      The singleChoiceAnswers.
    • setSingleChoiceAnswers

       Answer configuration for a single choice question.
       Minimum of 2 answers and maximum of 12 allowed.
       
      .google.ads.googleads.v18.common.LeadFormSingleChoiceAnswers single_choice_answers = 2;
    • setSingleChoiceAnswers

      public LeadFormCustomQuestionField.Builder setSingleChoiceAnswers(LeadFormSingleChoiceAnswers.Builder builderForValue)
       Answer configuration for a single choice question.
       Minimum of 2 answers and maximum of 12 allowed.
       
      .google.ads.googleads.v18.common.LeadFormSingleChoiceAnswers single_choice_answers = 2;
    • mergeSingleChoiceAnswers

      public LeadFormCustomQuestionField.Builder mergeSingleChoiceAnswers(LeadFormSingleChoiceAnswers value)
       Answer configuration for a single choice question.
       Minimum of 2 answers and maximum of 12 allowed.
       
      .google.ads.googleads.v18.common.LeadFormSingleChoiceAnswers single_choice_answers = 2;
    • clearSingleChoiceAnswers

      public LeadFormCustomQuestionField.Builder clearSingleChoiceAnswers()
       Answer configuration for a single choice question.
       Minimum of 2 answers and maximum of 12 allowed.
       
      .google.ads.googleads.v18.common.LeadFormSingleChoiceAnswers single_choice_answers = 2;
    • getSingleChoiceAnswersBuilder

      public LeadFormSingleChoiceAnswers.Builder getSingleChoiceAnswersBuilder()
       Answer configuration for a single choice question.
       Minimum of 2 answers and maximum of 12 allowed.
       
      .google.ads.googleads.v18.common.LeadFormSingleChoiceAnswers single_choice_answers = 2;
    • getSingleChoiceAnswersOrBuilder

      public LeadFormSingleChoiceAnswersOrBuilder getSingleChoiceAnswersOrBuilder()
       Answer configuration for a single choice question.
       Minimum of 2 answers and maximum of 12 allowed.
       
      .google.ads.googleads.v18.common.LeadFormSingleChoiceAnswers single_choice_answers = 2;
      Specified by:
      getSingleChoiceAnswersOrBuilder in interface LeadFormCustomQuestionFieldOrBuilder
    • hasHasLocationAnswer

      public boolean hasHasLocationAnswer()
       Answer configuration for location question. If true, campaign/account
       level location data (state, city, business name etc) will be rendered on
       the Lead Form.
       Starting V13.1, has_location_answer can only be set for "What is your
       preferred dealership?" question, for advertisers with Location Assets
       setup at campaign/account level.
       
      bool has_location_answer = 3;
      Specified by:
      hasHasLocationAnswer in interface LeadFormCustomQuestionFieldOrBuilder
      Returns:
      Whether the hasLocationAnswer field is set.
    • getHasLocationAnswer

      public boolean getHasLocationAnswer()
       Answer configuration for location question. If true, campaign/account
       level location data (state, city, business name etc) will be rendered on
       the Lead Form.
       Starting V13.1, has_location_answer can only be set for "What is your
       preferred dealership?" question, for advertisers with Location Assets
       setup at campaign/account level.
       
      bool has_location_answer = 3;
      Specified by:
      getHasLocationAnswer in interface LeadFormCustomQuestionFieldOrBuilder
      Returns:
      The hasLocationAnswer.
    • setHasLocationAnswer

      public LeadFormCustomQuestionField.Builder setHasLocationAnswer(boolean value)
       Answer configuration for location question. If true, campaign/account
       level location data (state, city, business name etc) will be rendered on
       the Lead Form.
       Starting V13.1, has_location_answer can only be set for "What is your
       preferred dealership?" question, for advertisers with Location Assets
       setup at campaign/account level.
       
      bool has_location_answer = 3;
      Parameters:
      value - The hasLocationAnswer to set.
      Returns:
      This builder for chaining.
    • clearHasLocationAnswer

      public LeadFormCustomQuestionField.Builder clearHasLocationAnswer()
       Answer configuration for location question. If true, campaign/account
       level location data (state, city, business name etc) will be rendered on
       the Lead Form.
       Starting V13.1, has_location_answer can only be set for "What is your
       preferred dealership?" question, for advertisers with Location Assets
       setup at campaign/account level.
       
      bool has_location_answer = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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