Class Incentive.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder>
com.google.ads.googleads.v23.services.Incentive.Builder
- All Implemented Interfaces:
IncentiveOrBuilder,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Incentive
public static final class Incentive.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder>
implements IncentiveOrBuilder
An incentive that a user can claim for their account.Protobuf type
google.ads.googleads.v23.services.Incentive-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The incentive ID of this incentive.The URL of the terms and conditions for THIS incentive offer ONLY.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The requirement for this incentive.The type of the incentive.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe incentive ID of this incentive.The URL of the terms and conditions for THIS incentive offer ONLY.com.google.protobuf.ByteStringThe URL of the terms and conditions for THIS incentive offer ONLY.The requirement for this incentive.The requirement for this incentive.The requirement for this incentive.getType()The type of the incentive.intThe type of the incentive.booleanThe incentive ID of this incentive.booleanThe URL of the terms and conditions for THIS incentive offer ONLY.booleanThe requirement for this incentive.booleanhasType()The type of the incentive.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The requirement for this incentive.final Incentive.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setIncentiveId(long value) The incentive ID of this incentive.The URL of the terms and conditions for THIS incentive offer ONLY.setIncentiveTermsAndConditionsUrlBytes(com.google.protobuf.ByteString value) The URL of the terms and conditions for THIS incentive offer ONLY.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The requirement for this incentive.setRequirement(Incentive.Requirement.Builder builderForValue) The requirement for this incentive.The type of the incentive.setTypeValue(int value) The type of the incentive.final Incentive.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getParentForChildrenMethods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension, setExtension, setExtensionMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, 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.GeneratedMessage.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, hasExtension, hasExtensionMethods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Overrides:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Incentive.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<Incentive.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>- 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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder>
-
setField
public Incentive.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder>
-
setRepeatedField
public Incentive.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder>
-
addRepeatedField
public Incentive.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Incentive.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Incentive.Builder>
-
mergeFrom
public Incentive.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<Incentive.Builder>- Throws:
IOException
-
hasIncentiveId
public boolean hasIncentiveId()The incentive ID of this incentive. This is used to identify which incentive is selected by the user in the CYO flow.
optional int64 incentive_id = 1;- Specified by:
hasIncentiveIdin interfaceIncentiveOrBuilder- Returns:
- Whether the incentiveId field is set.
-
getIncentiveId
public long getIncentiveId()The incentive ID of this incentive. This is used to identify which incentive is selected by the user in the CYO flow.
optional int64 incentive_id = 1;- Specified by:
getIncentiveIdin interfaceIncentiveOrBuilder- Returns:
- The incentiveId.
-
setIncentiveId
The incentive ID of this incentive. This is used to identify which incentive is selected by the user in the CYO flow.
optional int64 incentive_id = 1;- Parameters:
value- The incentiveId to set.- Returns:
- This builder for chaining.
-
clearIncentiveId
The incentive ID of this incentive. This is used to identify which incentive is selected by the user in the CYO flow.
optional int64 incentive_id = 1;- Returns:
- This builder for chaining.
-
hasRequirement
public boolean hasRequirement()The requirement for this incentive.
optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2;- Specified by:
hasRequirementin interfaceIncentiveOrBuilder- Returns:
- Whether the requirement field is set.
-
getRequirement
The requirement for this incentive.
optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2;- Specified by:
getRequirementin interfaceIncentiveOrBuilder- Returns:
- The requirement.
-
setRequirement
The requirement for this incentive.
optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2; -
setRequirement
The requirement for this incentive.
optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2; -
mergeRequirement
The requirement for this incentive.
optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2; -
clearRequirement
The requirement for this incentive.
optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2; -
getRequirementBuilder
The requirement for this incentive.
optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2; -
getRequirementOrBuilder
The requirement for this incentive.
optional .google.ads.googleads.v23.services.Incentive.Requirement requirement = 2;- Specified by:
getRequirementOrBuilderin interfaceIncentiveOrBuilder
-
hasIncentiveTermsAndConditionsUrl
public boolean hasIncentiveTermsAndConditionsUrl()The URL of the terms and conditions for THIS incentive offer ONLY. This is different from the terms_and_conditions_url field in AcquisitionIncentiveOffer which is a combination of all the Incentive offers in a CYO offer.
optional string incentive_terms_and_conditions_url = 3;- Specified by:
hasIncentiveTermsAndConditionsUrlin interfaceIncentiveOrBuilder- Returns:
- Whether the incentiveTermsAndConditionsUrl field is set.
-
getIncentiveTermsAndConditionsUrl
The URL of the terms and conditions for THIS incentive offer ONLY. This is different from the terms_and_conditions_url field in AcquisitionIncentiveOffer which is a combination of all the Incentive offers in a CYO offer.
optional string incentive_terms_and_conditions_url = 3;- Specified by:
getIncentiveTermsAndConditionsUrlin interfaceIncentiveOrBuilder- Returns:
- The incentiveTermsAndConditionsUrl.
-
getIncentiveTermsAndConditionsUrlBytes
public com.google.protobuf.ByteString getIncentiveTermsAndConditionsUrlBytes()The URL of the terms and conditions for THIS incentive offer ONLY. This is different from the terms_and_conditions_url field in AcquisitionIncentiveOffer which is a combination of all the Incentive offers in a CYO offer.
optional string incentive_terms_and_conditions_url = 3;- Specified by:
getIncentiveTermsAndConditionsUrlBytesin interfaceIncentiveOrBuilder- Returns:
- The bytes for incentiveTermsAndConditionsUrl.
-
setIncentiveTermsAndConditionsUrl
The URL of the terms and conditions for THIS incentive offer ONLY. This is different from the terms_and_conditions_url field in AcquisitionIncentiveOffer which is a combination of all the Incentive offers in a CYO offer.
optional string incentive_terms_and_conditions_url = 3;- Parameters:
value- The incentiveTermsAndConditionsUrl to set.- Returns:
- This builder for chaining.
-
clearIncentiveTermsAndConditionsUrl
The URL of the terms and conditions for THIS incentive offer ONLY. This is different from the terms_and_conditions_url field in AcquisitionIncentiveOffer which is a combination of all the Incentive offers in a CYO offer.
optional string incentive_terms_and_conditions_url = 3;- Returns:
- This builder for chaining.
-
setIncentiveTermsAndConditionsUrlBytes
public Incentive.Builder setIncentiveTermsAndConditionsUrlBytes(com.google.protobuf.ByteString value) The URL of the terms and conditions for THIS incentive offer ONLY. This is different from the terms_and_conditions_url field in AcquisitionIncentiveOffer which is a combination of all the Incentive offers in a CYO offer.
optional string incentive_terms_and_conditions_url = 3;- Parameters:
value- The bytes for incentiveTermsAndConditionsUrl to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()The type of the incentive.
optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;- Specified by:
hasTypein interfaceIncentiveOrBuilder- Returns:
- Whether the type field is set.
-
getTypeValue
public int getTypeValue()The type of the incentive.
optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;- Specified by:
getTypeValuein interfaceIncentiveOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
The type of the incentive.
optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
The type of the incentive.
optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;- Specified by:
getTypein interfaceIncentiveOrBuilder- Returns:
- The type.
-
setType
The type of the incentive.
optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of the incentive.
optional .google.ads.googleads.v23.services.FetchIncentiveRequest.IncentiveType type = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder>
-
mergeUnknownFields
public final Incentive.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Incentive.Builder>
-