Class LeadFormSingleChoiceAnswers.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LeadFormSingleChoiceAnswers.Builder>
com.google.ads.googleads.v23.common.LeadFormSingleChoiceAnswers.Builder
- All Implemented Interfaces:
LeadFormSingleChoiceAnswersOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LeadFormSingleChoiceAnswers
public static final class LeadFormSingleChoiceAnswers.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LeadFormSingleChoiceAnswers.Builder>
implements LeadFormSingleChoiceAnswersOrBuilder
Defines possible answers for a single choice question, usually presented as a single-choice drop-down list.Protobuf type
google.ads.googleads.v23.common.LeadFormSingleChoiceAnswers-
Method Summary
Modifier and TypeMethodDescriptionaddAllAnswers(Iterable<String> values) List of choices for a single question field.addAnswers(String value) List of choices for a single question field.addAnswersBytes(com.google.protobuf.ByteString value) List of choices for a single question field.build()clear()List of choices for a single question field.getAnswers(int index) List of choices for a single question field.com.google.protobuf.ByteStringgetAnswersBytes(int index) List of choices for a single question field.intList of choices for a single question field.com.google.protobuf.ProtocolStringListList of choices for a single question field.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAnswers(int index, String value) List of choices for a single question field.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LeadFormSingleChoiceAnswers.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LeadFormSingleChoiceAnswers.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LeadFormSingleChoiceAnswers.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LeadFormSingleChoiceAnswers.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LeadFormSingleChoiceAnswers.Builder>
-
mergeFrom
public LeadFormSingleChoiceAnswers.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LeadFormSingleChoiceAnswers.Builder>- Throws:
IOException
-
getAnswersList
public com.google.protobuf.ProtocolStringList getAnswersList()List of choices for a single question field. The order of entries defines UI order. Minimum of 2 answers required and maximum of 12 allowed.
repeated string answers = 1;- Specified by:
getAnswersListin interfaceLeadFormSingleChoiceAnswersOrBuilder- Returns:
- A list containing the answers.
-
getAnswersCount
public int getAnswersCount()List of choices for a single question field. The order of entries defines UI order. Minimum of 2 answers required and maximum of 12 allowed.
repeated string answers = 1;- Specified by:
getAnswersCountin interfaceLeadFormSingleChoiceAnswersOrBuilder- Returns:
- The count of answers.
-
getAnswers
List of choices for a single question field. The order of entries defines UI order. Minimum of 2 answers required and maximum of 12 allowed.
repeated string answers = 1;- Specified by:
getAnswersin interfaceLeadFormSingleChoiceAnswersOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The answers at the given index.
-
getAnswersBytes
public com.google.protobuf.ByteString getAnswersBytes(int index) List of choices for a single question field. The order of entries defines UI order. Minimum of 2 answers required and maximum of 12 allowed.
repeated string answers = 1;- Specified by:
getAnswersBytesin interfaceLeadFormSingleChoiceAnswersOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the answers at the given index.
-
setAnswers
List of choices for a single question field. The order of entries defines UI order. Minimum of 2 answers required and maximum of 12 allowed.
repeated string answers = 1;- Parameters:
index- The index to set the value at.value- The answers to set.- Returns:
- This builder for chaining.
-
addAnswers
List of choices for a single question field. The order of entries defines UI order. Minimum of 2 answers required and maximum of 12 allowed.
repeated string answers = 1;- Parameters:
value- The answers to add.- Returns:
- This builder for chaining.
-
addAllAnswers
List of choices for a single question field. The order of entries defines UI order. Minimum of 2 answers required and maximum of 12 allowed.
repeated string answers = 1;- Parameters:
values- The answers to add.- Returns:
- This builder for chaining.
-
clearAnswers
List of choices for a single question field. The order of entries defines UI order. Minimum of 2 answers required and maximum of 12 allowed.
repeated string answers = 1;- Returns:
- This builder for chaining.
-
addAnswersBytes
List of choices for a single question field. The order of entries defines UI order. Minimum of 2 answers required and maximum of 12 allowed.
repeated string answers = 1;- Parameters:
value- The bytes of the answers to add.- Returns:
- This builder for chaining.
-