Class LeadFormCustomQuestionField.Builder

    • Method Detail

      • 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>
      • 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

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

        public LeadFormCustomQuestionField.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                    int index,
                                                                    java.lang.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,
                                                                    java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LeadFormCustomQuestionField.Builder>
      • 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 java.io.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:
        java.io.IOException
      • getCustomQuestionText

        public java.lang.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​(java.lang.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.v14.common.LeadFormSingleChoiceAnswers single_choice_answers = 2;
        Specified by:
        hasSingleChoiceAnswers in interface LeadFormCustomQuestionFieldOrBuilder
        Returns:
        Whether the singleChoiceAnswers field is set.
      • setSingleChoiceAnswers

        public LeadFormCustomQuestionField.Builder setSingleChoiceAnswers​(LeadFormSingleChoiceAnswers value)
         Answer configuration for a single choice question.
         Minimum of 2 answers and maximum of 12 allowed.
         
        .google.ads.googleads.v14.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.v14.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.v14.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.v14.common.LeadFormSingleChoiceAnswers single_choice_answers = 2;
      • 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.
      • 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>