Class LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder>
com.google.ads.googleads.v25.resources.LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder
- All Implemented Interfaces:
LiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LiftMeasurementConfig.SingleMeasurementQuestionSet
public static final class LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder>
implements LiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder
A single measurement question set for a survey.Protobuf type
google.ads.googleads.v25.resources.LiftMeasurementConfig.SingleMeasurementQuestionSet-
Method Summary
Modifier and TypeMethodDescriptionaddAllCompetitorChoices(Iterable<String> values) Output only.addAllQuestionMeasurements(Iterable<? extends BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType> values) Output only.Output only.addCompetitorChoices(String value) Output only.addCompetitorChoicesBytes(com.google.protobuf.ByteString value) Output only.Output only.addQuestionMeasurementsValue(int value) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.getCompetitorChoices(int index) Output only.com.google.protobuf.ByteStringgetCompetitorChoicesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetQuestionMeasurements(int index) Output only.intOutput only.Output only.intgetQuestionMeasurementsValue(int index) Output only.Output only.Output only.intOutput only.Output only.intOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.setAdvertiserPreferredChoiceBytes(com.google.protobuf.ByteString value) Output only.setCompetitorChoices(int index, String value) Output only.setQuestionMeasurements(int index, BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType value) Output only.setQuestionMeasurementsValue(int index, int value) Output only.Output only.setQuestionTextIntendedActionValue(int value) Output only.Output only.setQuestionTextSubjectTypeValue(int value) Output only.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<LiftMeasurementConfig.SingleMeasurementQuestionSet.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<LiftMeasurementConfig.SingleMeasurementQuestionSet.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<LiftMeasurementConfig.SingleMeasurementQuestionSet.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
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder>
-
mergeFrom
public LiftMeasurementConfig.SingleMeasurementQuestionSet.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<LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder>- Throws:
IOException
-
getQuestionTextIntendedActionValue
public int getQuestionTextIntendedActionValue()Output only. The intended action for the question text.
.google.ads.googleads.v25.enums.SurveyIntendedActionEnum.SurveyIntendedAction question_text_intended_action = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQuestionTextIntendedActionValuein interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Returns:
- The enum numeric value on the wire for questionTextIntendedAction.
-
setQuestionTextIntendedActionValue
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder setQuestionTextIntendedActionValue(int value) Output only. The intended action for the question text.
.google.ads.googleads.v25.enums.SurveyIntendedActionEnum.SurveyIntendedAction question_text_intended_action = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for questionTextIntendedAction to set.- Returns:
- This builder for chaining.
-
getQuestionTextIntendedAction
Output only. The intended action for the question text.
.google.ads.googleads.v25.enums.SurveyIntendedActionEnum.SurveyIntendedAction question_text_intended_action = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQuestionTextIntendedActionin interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Returns:
- The questionTextIntendedAction.
-
setQuestionTextIntendedAction
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder setQuestionTextIntendedAction(SurveyIntendedActionEnum.SurveyIntendedAction value) Output only. The intended action for the question text.
.google.ads.googleads.v25.enums.SurveyIntendedActionEnum.SurveyIntendedAction question_text_intended_action = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The questionTextIntendedAction to set.- Returns:
- This builder for chaining.
-
clearQuestionTextIntendedAction
Output only. The intended action for the question text.
.google.ads.googleads.v25.enums.SurveyIntendedActionEnum.SurveyIntendedAction question_text_intended_action = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getQuestionTextSubjectTypeValue
public int getQuestionTextSubjectTypeValue()Output only. The subject type for the question text.
.google.ads.googleads.v25.enums.SurveySubjectTypeEnum.SurveySubjectType question_text_subject_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQuestionTextSubjectTypeValuein interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Returns:
- The enum numeric value on the wire for questionTextSubjectType.
-
setQuestionTextSubjectTypeValue
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder setQuestionTextSubjectTypeValue(int value) Output only. The subject type for the question text.
.google.ads.googleads.v25.enums.SurveySubjectTypeEnum.SurveySubjectType question_text_subject_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for questionTextSubjectType to set.- Returns:
- This builder for chaining.
-
getQuestionTextSubjectType
Output only. The subject type for the question text.
.google.ads.googleads.v25.enums.SurveySubjectTypeEnum.SurveySubjectType question_text_subject_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQuestionTextSubjectTypein interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Returns:
- The questionTextSubjectType.
-
setQuestionTextSubjectType
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder setQuestionTextSubjectType(SurveySubjectTypeEnum.SurveySubjectType value) Output only. The subject type for the question text.
.google.ads.googleads.v25.enums.SurveySubjectTypeEnum.SurveySubjectType question_text_subject_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The questionTextSubjectType to set.- Returns:
- This builder for chaining.
-
clearQuestionTextSubjectType
Output only. The subject type for the question text.
.google.ads.googleads.v25.enums.SurveySubjectTypeEnum.SurveySubjectType question_text_subject_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getQuestionMeasurementsList
Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQuestionMeasurementsListin interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Returns:
- A list containing the questionMeasurements.
-
getQuestionMeasurementsCount
public int getQuestionMeasurementsCount()Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQuestionMeasurementsCountin interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Returns:
- The count of questionMeasurements.
-
getQuestionMeasurements
Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQuestionMeasurementsin interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The questionMeasurements at the given index.
-
setQuestionMeasurements
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder setQuestionMeasurements(int index, BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType value) Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The questionMeasurements to set.- Returns:
- This builder for chaining.
-
addQuestionMeasurements
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder addQuestionMeasurements(BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType value) Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The questionMeasurements to add.- Returns:
- This builder for chaining.
-
addAllQuestionMeasurements
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder addAllQuestionMeasurements(Iterable<? extends BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType> values) Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The questionMeasurements to add.- Returns:
- This builder for chaining.
-
clearQuestionMeasurements
Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getQuestionMeasurementsValueList
Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQuestionMeasurementsValueListin interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Returns:
- A list containing the enum numeric values on the wire for questionMeasurements.
-
getQuestionMeasurementsValue
public int getQuestionMeasurementsValue(int index) Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQuestionMeasurementsValuein interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of questionMeasurements at the given index.
-
setQuestionMeasurementsValue
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder setQuestionMeasurementsValue(int index, int value) Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for questionMeasurements to set.- Returns:
- This builder for chaining.
-
addQuestionMeasurementsValue
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder addQuestionMeasurementsValue(int value) Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for questionMeasurements to add.- Returns:
- This builder for chaining.
-
addAllQuestionMeasurementsValue
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder addAllQuestionMeasurementsValue(Iterable<Integer> values) Output only. The brand measurement types for the question.
repeated .google.ads.googleads.v25.enums.BrandLiftMeasurementTypeEnum.BrandLiftMeasurementType question_measurements = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The enum numeric values on the wire for questionMeasurements to add.- Returns:
- This builder for chaining.
-
getAdvertiserPreferredChoice
Output only. The advertiser preferred choice.
string advertiser_preferred_choice = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdvertiserPreferredChoicein interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Returns:
- The advertiserPreferredChoice.
-
getAdvertiserPreferredChoiceBytes
public com.google.protobuf.ByteString getAdvertiserPreferredChoiceBytes()Output only. The advertiser preferred choice.
string advertiser_preferred_choice = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAdvertiserPreferredChoiceBytesin interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Returns:
- The bytes for advertiserPreferredChoice.
-
setAdvertiserPreferredChoice
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder setAdvertiserPreferredChoice(String value) Output only. The advertiser preferred choice.
string advertiser_preferred_choice = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The advertiserPreferredChoice to set.- Returns:
- This builder for chaining.
-
clearAdvertiserPreferredChoice
Output only. The advertiser preferred choice.
string advertiser_preferred_choice = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setAdvertiserPreferredChoiceBytes
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder setAdvertiserPreferredChoiceBytes(com.google.protobuf.ByteString value) Output only. The advertiser preferred choice.
string advertiser_preferred_choice = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for advertiserPreferredChoice to set.- Returns:
- This builder for chaining.
-
getCompetitorChoicesList
public com.google.protobuf.ProtocolStringList getCompetitorChoicesList()Output only. The competitor choices.
repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCompetitorChoicesListin interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Returns:
- A list containing the competitorChoices.
-
getCompetitorChoicesCount
public int getCompetitorChoicesCount()Output only. The competitor choices.
repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCompetitorChoicesCountin interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Returns:
- The count of competitorChoices.
-
getCompetitorChoices
Output only. The competitor choices.
repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCompetitorChoicesin interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The competitorChoices at the given index.
-
getCompetitorChoicesBytes
public com.google.protobuf.ByteString getCompetitorChoicesBytes(int index) Output only. The competitor choices.
repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCompetitorChoicesBytesin interfaceLiftMeasurementConfig.SingleMeasurementQuestionSetOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the competitorChoices at the given index.
-
setCompetitorChoices
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder setCompetitorChoices(int index, String value) Output only. The competitor choices.
repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The competitorChoices to set.- Returns:
- This builder for chaining.
-
addCompetitorChoices
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder addCompetitorChoices(String value) Output only. The competitor choices.
repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The competitorChoices to add.- Returns:
- This builder for chaining.
-
addAllCompetitorChoices
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder addAllCompetitorChoices(Iterable<String> values) Output only. The competitor choices.
repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The competitorChoices to add.- Returns:
- This builder for chaining.
-
clearCompetitorChoices
Output only. The competitor choices.
repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addCompetitorChoicesBytes
public LiftMeasurementConfig.SingleMeasurementQuestionSet.Builder addCompetitorChoicesBytes(com.google.protobuf.ByteString value) Output only. The competitor choices.
repeated string competitor_choices = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the competitorChoices to add.- Returns:
- This builder for chaining.
-