Class PromotionFeedItem
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.common.PromotionFeedItem
- All Implemented Interfaces:
PromotionFeedItemOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class PromotionFeedItem
extends com.google.protobuf.GeneratedMessageV3
implements PromotionFeedItemOrBuilder
Represents a Promotion extension.Protobuf type
google.ads.googleads.v18.common.PromotionFeedItem- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a Promotion extension.static enumstatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PromotionFeedItemstatic final com.google.protobuf.Descriptors.DescriptorEnum that modifies the qualification of the discount.intEnum that modifies the qualification of the discount.getFinalMobileUrls(int index) A list of possible final mobile URLs after all cross domain redirects.com.google.protobuf.ByteStringgetFinalMobileUrlsBytes(int index) A list of possible final mobile URLs after all cross domain redirects.intA list of possible final mobile URLs after all cross domain redirects.com.google.protobuf.ProtocolStringListA list of possible final mobile URLs after all cross domain redirects.getFinalUrls(int index) A list of possible final URLs after all cross domain redirects.com.google.protobuf.ByteStringgetFinalUrlsBytes(int index) A list of possible final URLs after all cross domain redirects.intA list of possible final URLs after all cross domain redirects.com.google.protobuf.ProtocolStringListA list of possible final URLs after all cross domain redirects.URL template for appending params to landing page URLs served with parallel tracking.com.google.protobuf.ByteStringURL template for appending params to landing page URLs served with parallel tracking.The language of the promotion.com.google.protobuf.ByteStringThe language of the promotion.Money amount off for discount in the promotion.Money amount off for discount in the promotion.The occasion the promotion was intended for.intThe occasion the promotion was intended for.The amount the total order needs to be for the user to be eligible for the promotion.The amount the total order needs to be for the user to be eligible for the promotion.com.google.protobuf.Parser<PromotionFeedItem>longPercentage off discount in the promotion in micros.A code the user should use in order to be eligible for the promotion.com.google.protobuf.ByteStringA code the user should use in order to be eligible for the promotion.Last date when the promotion is eligible to be redeemed.com.google.protobuf.ByteStringLast date when the promotion is eligible to be redeemed.Start date of when the promotion is eligible to be redeemed.com.google.protobuf.ByteStringStart date of when the promotion is eligible to be redeemed.A freeform description of what the promotion is targeting.com.google.protobuf.ByteStringA freeform description of what the promotion is targeting.intURL template for constructing a tracking URL.com.google.protobuf.ByteStringURL template for constructing a tracking URL.getUrlCustomParameters(int index) A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.intA list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.getUrlCustomParametersOrBuilder(int index) A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.List<? extends CustomParameterOrBuilder>A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.booleanURL template for appending params to landing page URLs served with parallel tracking.inthashCode()booleanThe language of the promotion.booleanMoney amount off for discount in the promotion.booleanThe amount the total order needs to be for the user to be eligible for the promotion.booleanPercentage off discount in the promotion in micros.booleanA code the user should use in order to be eligible for the promotion.booleanLast date when the promotion is eligible to be redeemed.booleanStart date of when the promotion is eligible to be redeemed.booleanA freeform description of what the promotion is targeting.booleanURL template for constructing a tracking URL.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic PromotionFeedItem.Builderstatic PromotionFeedItem.BuildernewBuilder(PromotionFeedItem prototype) protected PromotionFeedItem.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static PromotionFeedItemparseDelimitedFrom(InputStream input) static PromotionFeedItemparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PromotionFeedItemparseFrom(byte[] data) static PromotionFeedItemparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PromotionFeedItemparseFrom(com.google.protobuf.ByteString data) static PromotionFeedItemparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PromotionFeedItemparseFrom(com.google.protobuf.CodedInputStream input) static PromotionFeedItemparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PromotionFeedItemparseFrom(InputStream input) static PromotionFeedItemparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PromotionFeedItemparseFrom(ByteBuffer data) static PromotionFeedItemparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PromotionFeedItem>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PROMOTION_TARGET_FIELD_NUMBER
public static final int PROMOTION_TARGET_FIELD_NUMBER- See Also:
-
DISCOUNT_MODIFIER_FIELD_NUMBER
public static final int DISCOUNT_MODIFIER_FIELD_NUMBER- See Also:
-
PROMOTION_START_DATE_FIELD_NUMBER
public static final int PROMOTION_START_DATE_FIELD_NUMBER- See Also:
-
PROMOTION_END_DATE_FIELD_NUMBER
public static final int PROMOTION_END_DATE_FIELD_NUMBER- See Also:
-
OCCASION_FIELD_NUMBER
public static final int OCCASION_FIELD_NUMBER- See Also:
-
FINAL_URLS_FIELD_NUMBER
public static final int FINAL_URLS_FIELD_NUMBER- See Also:
-
FINAL_MOBILE_URLS_FIELD_NUMBER
public static final int FINAL_MOBILE_URLS_FIELD_NUMBER- See Also:
-
TRACKING_URL_TEMPLATE_FIELD_NUMBER
public static final int TRACKING_URL_TEMPLATE_FIELD_NUMBER- See Also:
-
URL_CUSTOM_PARAMETERS_FIELD_NUMBER
public static final int URL_CUSTOM_PARAMETERS_FIELD_NUMBER- See Also:
-
FINAL_URL_SUFFIX_FIELD_NUMBER
public static final int FINAL_URL_SUFFIX_FIELD_NUMBER- See Also:
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER- See Also:
-
PERCENT_OFF_FIELD_NUMBER
public static final int PERCENT_OFF_FIELD_NUMBER- See Also:
-
MONEY_AMOUNT_OFF_FIELD_NUMBER
public static final int MONEY_AMOUNT_OFF_FIELD_NUMBER- See Also:
-
PROMOTION_CODE_FIELD_NUMBER
public static final int PROMOTION_CODE_FIELD_NUMBER- See Also:
-
ORDERS_OVER_AMOUNT_FIELD_NUMBER
public static final int ORDERS_OVER_AMOUNT_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDiscountTypeCase
- Specified by:
getDiscountTypeCasein interfacePromotionFeedItemOrBuilder
-
getPromotionTriggerCase
- Specified by:
getPromotionTriggerCasein interfacePromotionFeedItemOrBuilder
-
hasPromotionTarget
public boolean hasPromotionTarget()A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Specified by:
hasPromotionTargetin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionTarget field is set.
-
getPromotionTarget
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Specified by:
getPromotionTargetin interfacePromotionFeedItemOrBuilder- Returns:
- The promotionTarget.
-
getPromotionTargetBytes
public com.google.protobuf.ByteString getPromotionTargetBytes()A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Specified by:
getPromotionTargetBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionTarget.
-
getDiscountModifierValue
public int getDiscountModifierValue()Enum that modifies the qualification of the discount.
.google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Specified by:
getDiscountModifierValuein interfacePromotionFeedItemOrBuilder- Returns:
- The enum numeric value on the wire for discountModifier.
-
getDiscountModifier
public PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier getDiscountModifier()Enum that modifies the qualification of the discount.
.google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Specified by:
getDiscountModifierin interfacePromotionFeedItemOrBuilder- Returns:
- The discountModifier.
-
hasPromotionStartDate
public boolean hasPromotionStartDate()Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Specified by:
hasPromotionStartDatein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionStartDate field is set.
-
getPromotionStartDate
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Specified by:
getPromotionStartDatein interfacePromotionFeedItemOrBuilder- Returns:
- The promotionStartDate.
-
getPromotionStartDateBytes
public com.google.protobuf.ByteString getPromotionStartDateBytes()Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Specified by:
getPromotionStartDateBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionStartDate.
-
hasPromotionEndDate
public boolean hasPromotionEndDate()Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Specified by:
hasPromotionEndDatein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionEndDate field is set.
-
getPromotionEndDate
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Specified by:
getPromotionEndDatein interfacePromotionFeedItemOrBuilder- Returns:
- The promotionEndDate.
-
getPromotionEndDateBytes
public com.google.protobuf.ByteString getPromotionEndDateBytes()Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Specified by:
getPromotionEndDateBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionEndDate.
-
getOccasionValue
public int getOccasionValue()The occasion the promotion was intended for. If an occasion is set, the redemption window will need to fall within the date range associated with the occasion.
.google.ads.googleads.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Specified by:
getOccasionValuein interfacePromotionFeedItemOrBuilder- Returns:
- The enum numeric value on the wire for occasion.
-
getOccasion
The occasion the promotion was intended for. If an occasion is set, the redemption window will need to fall within the date range associated with the occasion.
.google.ads.googleads.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Specified by:
getOccasionin interfacePromotionFeedItemOrBuilder- Returns:
- The occasion.
-
getFinalUrlsList
public com.google.protobuf.ProtocolStringList getFinalUrlsList()A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsListin interfacePromotionFeedItemOrBuilder- Returns:
- A list containing the finalUrls.
-
getFinalUrlsCount
public int getFinalUrlsCount()A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsCountin interfacePromotionFeedItemOrBuilder- Returns:
- The count of finalUrls.
-
getFinalUrls
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The finalUrls at the given index.
-
getFinalUrlsBytes
public com.google.protobuf.ByteString getFinalUrlsBytes(int index) A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsBytesin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the finalUrls at the given index.
-
getFinalMobileUrlsList
public com.google.protobuf.ProtocolStringList getFinalMobileUrlsList()A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsListin interfacePromotionFeedItemOrBuilder- Returns:
- A list containing the finalMobileUrls.
-
getFinalMobileUrlsCount
public int getFinalMobileUrlsCount()A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsCountin interfacePromotionFeedItemOrBuilder- Returns:
- The count of finalMobileUrls.
-
getFinalMobileUrls
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The finalMobileUrls at the given index.
-
getFinalMobileUrlsBytes
public com.google.protobuf.ByteString getFinalMobileUrlsBytes(int index) A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsBytesin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the finalMobileUrls at the given index.
-
hasTrackingUrlTemplate
public boolean hasTrackingUrlTemplate()URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Specified by:
hasTrackingUrlTemplatein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the trackingUrlTemplate field is set.
-
getTrackingUrlTemplate
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Specified by:
getTrackingUrlTemplatein interfacePromotionFeedItemOrBuilder- Returns:
- The trackingUrlTemplate.
-
getTrackingUrlTemplateBytes
public com.google.protobuf.ByteString getTrackingUrlTemplateBytes()URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Specified by:
getTrackingUrlTemplateBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for trackingUrlTemplate.
-
getUrlCustomParametersList
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersListin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParametersOrBuilderList
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersOrBuilderListin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParametersCount
public int getUrlCustomParametersCount()A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersCountin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParameters
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParametersOrBuilder
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersOrBuilderin interfacePromotionFeedItemOrBuilder
-
hasFinalUrlSuffix
public boolean hasFinalUrlSuffix()URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Specified by:
hasFinalUrlSuffixin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the finalUrlSuffix field is set.
-
getFinalUrlSuffix
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Specified by:
getFinalUrlSuffixin interfacePromotionFeedItemOrBuilder- Returns:
- The finalUrlSuffix.
-
getFinalUrlSuffixBytes
public com.google.protobuf.ByteString getFinalUrlSuffixBytes()URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Specified by:
getFinalUrlSuffixBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for finalUrlSuffix.
-
hasLanguageCode
public boolean hasLanguageCode()The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Specified by:
hasLanguageCodein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the languageCode field is set.
-
getLanguageCode
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Specified by:
getLanguageCodein interfacePromotionFeedItemOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Specified by:
getLanguageCodeBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for languageCode.
-
hasPercentOff
public boolean hasPercentOff()Percentage off discount in the promotion in micros. One million is equivalent to one percent. Either this or money_off_amount is required.
int64 percent_off = 17;- Specified by:
hasPercentOffin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the percentOff field is set.
-
getPercentOff
public long getPercentOff()Percentage off discount in the promotion in micros. One million is equivalent to one percent. Either this or money_off_amount is required.
int64 percent_off = 17;- Specified by:
getPercentOffin interfacePromotionFeedItemOrBuilder- Returns:
- The percentOff.
-
hasMoneyAmountOff
public boolean hasMoneyAmountOff()Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4;- Specified by:
hasMoneyAmountOffin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the moneyAmountOff field is set.
-
getMoneyAmountOff
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4;- Specified by:
getMoneyAmountOffin interfacePromotionFeedItemOrBuilder- Returns:
- The moneyAmountOff.
-
getMoneyAmountOffOrBuilder
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4;- Specified by:
getMoneyAmountOffOrBuilderin interfacePromotionFeedItemOrBuilder
-
hasPromotionCode
public boolean hasPromotionCode()A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Specified by:
hasPromotionCodein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionCode field is set.
-
getPromotionCode
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Specified by:
getPromotionCodein interfacePromotionFeedItemOrBuilder- Returns:
- The promotionCode.
-
getPromotionCodeBytes
public com.google.protobuf.ByteString getPromotionCodeBytes()A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Specified by:
getPromotionCodeBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionCode.
-
hasOrdersOverAmount
public boolean hasOrdersOverAmount()The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6;- Specified by:
hasOrdersOverAmountin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the ordersOverAmount field is set.
-
getOrdersOverAmount
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6;- Specified by:
getOrdersOverAmountin interfacePromotionFeedItemOrBuilder- Returns:
- The ordersOverAmount.
-
getOrdersOverAmountOrBuilder
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6;- Specified by:
getOrdersOverAmountOrBuilderin interfacePromotionFeedItemOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PromotionFeedItem parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromotionFeedItem parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromotionFeedItem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromotionFeedItem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromotionFeedItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromotionFeedItem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PromotionFeedItem parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PromotionFeedItem parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PromotionFeedItem parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PromotionFeedItem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PromotionFeedItem.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-