com.google.ads.googleads.v17.common.PromotionAsset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/common/asset_types.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* A Promotion asset.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.PromotionAsset}
*/
public final class PromotionAsset extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.PromotionAsset)
PromotionAssetOrBuilder {
private static final long serialVersionUID = 0L;
// Use PromotionAsset.newBuilder() to construct.
private PromotionAsset(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PromotionAsset() {
promotionTarget_ = "";
discountModifier_ = 0;
redemptionStartDate_ = "";
redemptionEndDate_ = "";
occasion_ = 0;
languageCode_ = "";
startDate_ = "";
endDate_ = "";
adScheduleTargets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PromotionAsset();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_PromotionAsset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_PromotionAsset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.PromotionAsset.class, com.google.ads.googleads.v17.common.PromotionAsset.Builder.class);
}
private int discountTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object discountType_;
public enum DiscountTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PERCENT_OFF(3),
MONEY_AMOUNT_OFF(4),
DISCOUNTTYPE_NOT_SET(0);
private final int value;
private DiscountTypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DiscountTypeCase valueOf(int value) {
return forNumber(value);
}
public static DiscountTypeCase forNumber(int value) {
switch (value) {
case 3: return PERCENT_OFF;
case 4: return MONEY_AMOUNT_OFF;
case 0: return DISCOUNTTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DiscountTypeCase
getDiscountTypeCase() {
return DiscountTypeCase.forNumber(
discountTypeCase_);
}
private int promotionTriggerCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object promotionTrigger_;
public enum PromotionTriggerCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PROMOTION_CODE(5),
ORDERS_OVER_AMOUNT(6),
PROMOTIONTRIGGER_NOT_SET(0);
private final int value;
private PromotionTriggerCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PromotionTriggerCase valueOf(int value) {
return forNumber(value);
}
public static PromotionTriggerCase forNumber(int value) {
switch (value) {
case 5: return PROMOTION_CODE;
case 6: return ORDERS_OVER_AMOUNT;
case 0: return PROMOTIONTRIGGER_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public PromotionTriggerCase
getPromotionTriggerCase() {
return PromotionTriggerCase.forNumber(
promotionTriggerCase_);
}
public static final int PROMOTION_TARGET_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object promotionTarget_ = "";
/**
*
* Required. A freeform description of what the promotion is targeting.
*
*
* string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The promotionTarget.
*/
@java.lang.Override
public java.lang.String getPromotionTarget() {
java.lang.Object ref = promotionTarget_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
promotionTarget_ = s;
return s;
}
}
/**
*
* Required. A freeform description of what the promotion is targeting.
*
*
* string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for promotionTarget.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPromotionTargetBytes() {
java.lang.Object ref = promotionTarget_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
promotionTarget_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISCOUNT_MODIFIER_FIELD_NUMBER = 2;
private int discountModifier_ = 0;
/**
*
* A modifier for qualification of the discount.
*
*
* .google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
* @return The enum numeric value on the wire for discountModifier.
*/
@java.lang.Override public int getDiscountModifierValue() {
return discountModifier_;
}
/**
*
* A modifier for qualification of the discount.
*
*
* .google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
* @return The discountModifier.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier getDiscountModifier() {
com.google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier result = com.google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier.forNumber(discountModifier_);
return result == null ? com.google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier.UNRECOGNIZED : result;
}
public static final int REDEMPTION_START_DATE_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object redemptionStartDate_ = "";
/**
*
* Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_start_date = 7;
* @return The redemptionStartDate.
*/
@java.lang.Override
public java.lang.String getRedemptionStartDate() {
java.lang.Object ref = redemptionStartDate_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
redemptionStartDate_ = s;
return s;
}
}
/**
*
* Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_start_date = 7;
* @return The bytes for redemptionStartDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRedemptionStartDateBytes() {
java.lang.Object ref = redemptionStartDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
redemptionStartDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REDEMPTION_END_DATE_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object redemptionEndDate_ = "";
/**
*
* Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_end_date = 8;
* @return The redemptionEndDate.
*/
@java.lang.Override
public java.lang.String getRedemptionEndDate() {
java.lang.Object ref = redemptionEndDate_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
redemptionEndDate_ = s;
return s;
}
}
/**
*
* Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_end_date = 8;
* @return The bytes for redemptionEndDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRedemptionEndDateBytes() {
java.lang.Object ref = redemptionEndDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
redemptionEndDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OCCASION_FIELD_NUMBER = 9;
private int occasion_ = 0;
/**
*
* 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.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;
* @return The enum numeric value on the wire for occasion.
*/
@java.lang.Override public int getOccasionValue() {
return occasion_;
}
/**
*
* 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.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;
* @return The occasion.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion getOccasion() {
com.google.ads.googleads.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion result = com.google.ads.googleads.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion.forNumber(occasion_);
return result == null ? com.google.ads.googleads.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion.UNRECOGNIZED : result;
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object languageCode_ = "";
/**
*
* The language of the promotion.
* Represented as BCP 47 language tag.
*
*
* string language_code = 10;
* @return The languageCode.
*/
@java.lang.Override
public java.lang.String getLanguageCode() {
java.lang.Object ref = languageCode_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
languageCode_ = s;
return s;
}
}
/**
*
* The language of the promotion.
* Represented as BCP 47 language tag.
*
*
* string language_code = 10;
* @return The bytes for languageCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLanguageCodeBytes() {
java.lang.Object ref = languageCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
languageCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_DATE_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object startDate_ = "";
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 11;
* @return The startDate.
*/
@java.lang.Override
public java.lang.String getStartDate() {
java.lang.Object ref = startDate_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
startDate_ = s;
return s;
}
}
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 11;
* @return The bytes for startDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartDateBytes() {
java.lang.Object ref = startDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int END_DATE_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object endDate_ = "";
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 12;
* @return The endDate.
*/
@java.lang.Override
public java.lang.String getEndDate() {
java.lang.Object ref = endDate_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endDate_ = s;
return s;
}
}
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 12;
* @return The bytes for endDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndDateBytes() {
java.lang.Object ref = endDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AD_SCHEDULE_TARGETS_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private java.util.List adScheduleTargets_;
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
@java.lang.Override
public java.util.List getAdScheduleTargetsList() {
return adScheduleTargets_;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder>
getAdScheduleTargetsOrBuilderList() {
return adScheduleTargets_;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
@java.lang.Override
public int getAdScheduleTargetsCount() {
return adScheduleTargets_.size();
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdScheduleInfo getAdScheduleTargets(int index) {
return adScheduleTargets_.get(index);
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder getAdScheduleTargetsOrBuilder(
int index) {
return adScheduleTargets_.get(index);
}
public static final int PERCENT_OFF_FIELD_NUMBER = 3;
/**
*
* Percentage off discount in the promotion. 1,000,000 = 100%.
* Either this or money_amount_off is required.
*
*
* int64 percent_off = 3;
* @return Whether the percentOff field is set.
*/
@java.lang.Override
public boolean hasPercentOff() {
return discountTypeCase_ == 3;
}
/**
*
* Percentage off discount in the promotion. 1,000,000 = 100%.
* Either this or money_amount_off is required.
*
*
* int64 percent_off = 3;
* @return The percentOff.
*/
@java.lang.Override
public long getPercentOff() {
if (discountTypeCase_ == 3) {
return (java.lang.Long) discountType_;
}
return 0L;
}
public static final int MONEY_AMOUNT_OFF_FIELD_NUMBER = 4;
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
* @return Whether the moneyAmountOff field is set.
*/
@java.lang.Override
public boolean hasMoneyAmountOff() {
return discountTypeCase_ == 4;
}
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
* @return The moneyAmountOff.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.Money getMoneyAmountOff() {
if (discountTypeCase_ == 4) {
return (com.google.ads.googleads.v17.common.Money) discountType_;
}
return com.google.ads.googleads.v17.common.Money.getDefaultInstance();
}
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MoneyOrBuilder getMoneyAmountOffOrBuilder() {
if (discountTypeCase_ == 4) {
return (com.google.ads.googleads.v17.common.Money) discountType_;
}
return com.google.ads.googleads.v17.common.Money.getDefaultInstance();
}
public static final int PROMOTION_CODE_FIELD_NUMBER = 5;
/**
*
* A code the user should use in order to be eligible for the promotion.
*
*
* string promotion_code = 5;
* @return Whether the promotionCode field is set.
*/
public boolean hasPromotionCode() {
return promotionTriggerCase_ == 5;
}
/**
*
* A code the user should use in order to be eligible for the promotion.
*
*
* string promotion_code = 5;
* @return The promotionCode.
*/
public java.lang.String getPromotionCode() {
java.lang.Object ref = "";
if (promotionTriggerCase_ == 5) {
ref = promotionTrigger_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (promotionTriggerCase_ == 5) {
promotionTrigger_ = s;
}
return s;
}
}
/**
*
* A code the user should use in order to be eligible for the promotion.
*
*
* string promotion_code = 5;
* @return The bytes for promotionCode.
*/
public com.google.protobuf.ByteString
getPromotionCodeBytes() {
java.lang.Object ref = "";
if (promotionTriggerCase_ == 5) {
ref = promotionTrigger_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (promotionTriggerCase_ == 5) {
promotionTrigger_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORDERS_OVER_AMOUNT_FIELD_NUMBER = 6;
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
* @return Whether the ordersOverAmount field is set.
*/
@java.lang.Override
public boolean hasOrdersOverAmount() {
return promotionTriggerCase_ == 6;
}
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
* @return The ordersOverAmount.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.Money getOrdersOverAmount() {
if (promotionTriggerCase_ == 6) {
return (com.google.ads.googleads.v17.common.Money) promotionTrigger_;
}
return com.google.ads.googleads.v17.common.Money.getDefaultInstance();
}
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MoneyOrBuilder getOrdersOverAmountOrBuilder() {
if (promotionTriggerCase_ == 6) {
return (com.google.ads.googleads.v17.common.Money) promotionTrigger_;
}
return com.google.ads.googleads.v17.common.Money.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(promotionTarget_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, promotionTarget_);
}
if (discountModifier_ != com.google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier.UNSPECIFIED.getNumber()) {
output.writeEnum(2, discountModifier_);
}
if (discountTypeCase_ == 3) {
output.writeInt64(
3, (long)((java.lang.Long) discountType_));
}
if (discountTypeCase_ == 4) {
output.writeMessage(4, (com.google.ads.googleads.v17.common.Money) discountType_);
}
if (promotionTriggerCase_ == 5) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, promotionTrigger_);
}
if (promotionTriggerCase_ == 6) {
output.writeMessage(6, (com.google.ads.googleads.v17.common.Money) promotionTrigger_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redemptionStartDate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, redemptionStartDate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redemptionEndDate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, redemptionEndDate_);
}
if (occasion_ != com.google.ads.googleads.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion.UNSPECIFIED.getNumber()) {
output.writeEnum(9, occasion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, languageCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, startDate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, endDate_);
}
for (int i = 0; i < adScheduleTargets_.size(); i++) {
output.writeMessage(13, adScheduleTargets_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(promotionTarget_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, promotionTarget_);
}
if (discountModifier_ != com.google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, discountModifier_);
}
if (discountTypeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
3, (long)((java.lang.Long) discountType_));
}
if (discountTypeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.google.ads.googleads.v17.common.Money) discountType_);
}
if (promotionTriggerCase_ == 5) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, promotionTrigger_);
}
if (promotionTriggerCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.google.ads.googleads.v17.common.Money) promotionTrigger_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redemptionStartDate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, redemptionStartDate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redemptionEndDate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, redemptionEndDate_);
}
if (occasion_ != com.google.ads.googleads.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, occasion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, languageCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, startDate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, endDate_);
}
for (int i = 0; i < adScheduleTargets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, adScheduleTargets_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.common.PromotionAsset)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.PromotionAsset other = (com.google.ads.googleads.v17.common.PromotionAsset) obj;
if (!getPromotionTarget()
.equals(other.getPromotionTarget())) return false;
if (discountModifier_ != other.discountModifier_) return false;
if (!getRedemptionStartDate()
.equals(other.getRedemptionStartDate())) return false;
if (!getRedemptionEndDate()
.equals(other.getRedemptionEndDate())) return false;
if (occasion_ != other.occasion_) return false;
if (!getLanguageCode()
.equals(other.getLanguageCode())) return false;
if (!getStartDate()
.equals(other.getStartDate())) return false;
if (!getEndDate()
.equals(other.getEndDate())) return false;
if (!getAdScheduleTargetsList()
.equals(other.getAdScheduleTargetsList())) return false;
if (!getDiscountTypeCase().equals(other.getDiscountTypeCase())) return false;
switch (discountTypeCase_) {
case 3:
if (getPercentOff()
!= other.getPercentOff()) return false;
break;
case 4:
if (!getMoneyAmountOff()
.equals(other.getMoneyAmountOff())) return false;
break;
case 0:
default:
}
if (!getPromotionTriggerCase().equals(other.getPromotionTriggerCase())) return false;
switch (promotionTriggerCase_) {
case 5:
if (!getPromotionCode()
.equals(other.getPromotionCode())) return false;
break;
case 6:
if (!getOrdersOverAmount()
.equals(other.getOrdersOverAmount())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PROMOTION_TARGET_FIELD_NUMBER;
hash = (53 * hash) + getPromotionTarget().hashCode();
hash = (37 * hash) + DISCOUNT_MODIFIER_FIELD_NUMBER;
hash = (53 * hash) + discountModifier_;
hash = (37 * hash) + REDEMPTION_START_DATE_FIELD_NUMBER;
hash = (53 * hash) + getRedemptionStartDate().hashCode();
hash = (37 * hash) + REDEMPTION_END_DATE_FIELD_NUMBER;
hash = (53 * hash) + getRedemptionEndDate().hashCode();
hash = (37 * hash) + OCCASION_FIELD_NUMBER;
hash = (53 * hash) + occasion_;
hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER;
hash = (53 * hash) + getLanguageCode().hashCode();
hash = (37 * hash) + START_DATE_FIELD_NUMBER;
hash = (53 * hash) + getStartDate().hashCode();
hash = (37 * hash) + END_DATE_FIELD_NUMBER;
hash = (53 * hash) + getEndDate().hashCode();
if (getAdScheduleTargetsCount() > 0) {
hash = (37 * hash) + AD_SCHEDULE_TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getAdScheduleTargetsList().hashCode();
}
switch (discountTypeCase_) {
case 3:
hash = (37 * hash) + PERCENT_OFF_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPercentOff());
break;
case 4:
hash = (37 * hash) + MONEY_AMOUNT_OFF_FIELD_NUMBER;
hash = (53 * hash) + getMoneyAmountOff().hashCode();
break;
case 0:
default:
}
switch (promotionTriggerCase_) {
case 5:
hash = (37 * hash) + PROMOTION_CODE_FIELD_NUMBER;
hash = (53 * hash) + getPromotionCode().hashCode();
break;
case 6:
hash = (37 * hash) + ORDERS_OVER_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getOrdersOverAmount().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.PromotionAsset parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.common.PromotionAsset prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A Promotion asset.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.PromotionAsset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.PromotionAsset)
com.google.ads.googleads.v17.common.PromotionAssetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_PromotionAsset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_PromotionAsset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.PromotionAsset.class, com.google.ads.googleads.v17.common.PromotionAsset.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.PromotionAsset.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
promotionTarget_ = "";
discountModifier_ = 0;
redemptionStartDate_ = "";
redemptionEndDate_ = "";
occasion_ = 0;
languageCode_ = "";
startDate_ = "";
endDate_ = "";
if (adScheduleTargetsBuilder_ == null) {
adScheduleTargets_ = java.util.Collections.emptyList();
} else {
adScheduleTargets_ = null;
adScheduleTargetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
if (moneyAmountOffBuilder_ != null) {
moneyAmountOffBuilder_.clear();
}
if (ordersOverAmountBuilder_ != null) {
ordersOverAmountBuilder_.clear();
}
discountTypeCase_ = 0;
discountType_ = null;
promotionTriggerCase_ = 0;
promotionTrigger_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_PromotionAsset_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.PromotionAsset getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.PromotionAsset.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.PromotionAsset build() {
com.google.ads.googleads.v17.common.PromotionAsset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.PromotionAsset buildPartial() {
com.google.ads.googleads.v17.common.PromotionAsset result = new com.google.ads.googleads.v17.common.PromotionAsset(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.common.PromotionAsset result) {
if (adScheduleTargetsBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)) {
adScheduleTargets_ = java.util.Collections.unmodifiableList(adScheduleTargets_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.adScheduleTargets_ = adScheduleTargets_;
} else {
result.adScheduleTargets_ = adScheduleTargetsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.common.PromotionAsset result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.promotionTarget_ = promotionTarget_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.discountModifier_ = discountModifier_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.redemptionStartDate_ = redemptionStartDate_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.redemptionEndDate_ = redemptionEndDate_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.occasion_ = occasion_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.languageCode_ = languageCode_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.startDate_ = startDate_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.endDate_ = endDate_;
}
}
private void buildPartialOneofs(com.google.ads.googleads.v17.common.PromotionAsset result) {
result.discountTypeCase_ = discountTypeCase_;
result.discountType_ = this.discountType_;
if (discountTypeCase_ == 4 &&
moneyAmountOffBuilder_ != null) {
result.discountType_ = moneyAmountOffBuilder_.build();
}
result.promotionTriggerCase_ = promotionTriggerCase_;
result.promotionTrigger_ = this.promotionTrigger_;
if (promotionTriggerCase_ == 6 &&
ordersOverAmountBuilder_ != null) {
result.promotionTrigger_ = ordersOverAmountBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.common.PromotionAsset) {
return mergeFrom((com.google.ads.googleads.v17.common.PromotionAsset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.PromotionAsset other) {
if (other == com.google.ads.googleads.v17.common.PromotionAsset.getDefaultInstance()) return this;
if (!other.getPromotionTarget().isEmpty()) {
promotionTarget_ = other.promotionTarget_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.discountModifier_ != 0) {
setDiscountModifierValue(other.getDiscountModifierValue());
}
if (!other.getRedemptionStartDate().isEmpty()) {
redemptionStartDate_ = other.redemptionStartDate_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getRedemptionEndDate().isEmpty()) {
redemptionEndDate_ = other.redemptionEndDate_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.occasion_ != 0) {
setOccasionValue(other.getOccasionValue());
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getStartDate().isEmpty()) {
startDate_ = other.startDate_;
bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getEndDate().isEmpty()) {
endDate_ = other.endDate_;
bitField0_ |= 0x00000080;
onChanged();
}
if (adScheduleTargetsBuilder_ == null) {
if (!other.adScheduleTargets_.isEmpty()) {
if (adScheduleTargets_.isEmpty()) {
adScheduleTargets_ = other.adScheduleTargets_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.addAll(other.adScheduleTargets_);
}
onChanged();
}
} else {
if (!other.adScheduleTargets_.isEmpty()) {
if (adScheduleTargetsBuilder_.isEmpty()) {
adScheduleTargetsBuilder_.dispose();
adScheduleTargetsBuilder_ = null;
adScheduleTargets_ = other.adScheduleTargets_;
bitField0_ = (bitField0_ & ~0x00000100);
adScheduleTargetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAdScheduleTargetsFieldBuilder() : null;
} else {
adScheduleTargetsBuilder_.addAllMessages(other.adScheduleTargets_);
}
}
}
switch (other.getDiscountTypeCase()) {
case PERCENT_OFF: {
setPercentOff(other.getPercentOff());
break;
}
case MONEY_AMOUNT_OFF: {
mergeMoneyAmountOff(other.getMoneyAmountOff());
break;
}
case DISCOUNTTYPE_NOT_SET: {
break;
}
}
switch (other.getPromotionTriggerCase()) {
case PROMOTION_CODE: {
promotionTriggerCase_ = 5;
promotionTrigger_ = other.promotionTrigger_;
onChanged();
break;
}
case ORDERS_OVER_AMOUNT: {
mergeOrdersOverAmount(other.getOrdersOverAmount());
break;
}
case PROMOTIONTRIGGER_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
promotionTarget_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
discountModifier_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
discountType_ = input.readInt64();
discountTypeCase_ = 3;
break;
} // case 24
case 34: {
input.readMessage(
getMoneyAmountOffFieldBuilder().getBuilder(),
extensionRegistry);
discountTypeCase_ = 4;
break;
} // case 34
case 42: {
java.lang.String s = input.readStringRequireUtf8();
promotionTriggerCase_ = 5;
promotionTrigger_ = s;
break;
} // case 42
case 50: {
input.readMessage(
getOrdersOverAmountFieldBuilder().getBuilder(),
extensionRegistry);
promotionTriggerCase_ = 6;
break;
} // case 50
case 58: {
redemptionStartDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 58
case 66: {
redemptionEndDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 66
case 72: {
occasion_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 72
case 82: {
languageCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 82
case 90: {
startDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 90
case 98: {
endDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 98
case 106: {
com.google.ads.googleads.v17.common.AdScheduleInfo m =
input.readMessage(
com.google.ads.googleads.v17.common.AdScheduleInfo.parser(),
extensionRegistry);
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.add(m);
} else {
adScheduleTargetsBuilder_.addMessage(m);
}
break;
} // case 106
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int discountTypeCase_ = 0;
private java.lang.Object discountType_;
public DiscountTypeCase
getDiscountTypeCase() {
return DiscountTypeCase.forNumber(
discountTypeCase_);
}
public Builder clearDiscountType() {
discountTypeCase_ = 0;
discountType_ = null;
onChanged();
return this;
}
private int promotionTriggerCase_ = 0;
private java.lang.Object promotionTrigger_;
public PromotionTriggerCase
getPromotionTriggerCase() {
return PromotionTriggerCase.forNumber(
promotionTriggerCase_);
}
public Builder clearPromotionTrigger() {
promotionTriggerCase_ = 0;
promotionTrigger_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object promotionTarget_ = "";
/**
*
* Required. A freeform description of what the promotion is targeting.
*
*
* string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The promotionTarget.
*/
public java.lang.String getPromotionTarget() {
java.lang.Object ref = promotionTarget_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
promotionTarget_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. A freeform description of what the promotion is targeting.
*
*
* string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for promotionTarget.
*/
public com.google.protobuf.ByteString
getPromotionTargetBytes() {
java.lang.Object ref = promotionTarget_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
promotionTarget_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. A freeform description of what the promotion is targeting.
*
*
* string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];
* @param value The promotionTarget to set.
* @return This builder for chaining.
*/
public Builder setPromotionTarget(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
promotionTarget_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required. A freeform description of what the promotion is targeting.
*
*
* string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];
* @return This builder for chaining.
*/
public Builder clearPromotionTarget() {
promotionTarget_ = getDefaultInstance().getPromotionTarget();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Required. A freeform description of what the promotion is targeting.
*
*
* string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];
* @param value The bytes for promotionTarget to set.
* @return This builder for chaining.
*/
public Builder setPromotionTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
promotionTarget_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int discountModifier_ = 0;
/**
*
* A modifier for qualification of the discount.
*
*
* .google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
* @return The enum numeric value on the wire for discountModifier.
*/
@java.lang.Override public int getDiscountModifierValue() {
return discountModifier_;
}
/**
*
* A modifier for qualification of the discount.
*
*
* .google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
* @param value The enum numeric value on the wire for discountModifier to set.
* @return This builder for chaining.
*/
public Builder setDiscountModifierValue(int value) {
discountModifier_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* A modifier for qualification of the discount.
*
*
* .google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
* @return The discountModifier.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier getDiscountModifier() {
com.google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier result = com.google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier.forNumber(discountModifier_);
return result == null ? com.google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier.UNRECOGNIZED : result;
}
/**
*
* A modifier for qualification of the discount.
*
*
* .google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
* @param value The discountModifier to set.
* @return This builder for chaining.
*/
public Builder setDiscountModifier(com.google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
discountModifier_ = value.getNumber();
onChanged();
return this;
}
/**
*
* A modifier for qualification of the discount.
*
*
* .google.ads.googleads.v17.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
* @return This builder for chaining.
*/
public Builder clearDiscountModifier() {
bitField0_ = (bitField0_ & ~0x00000002);
discountModifier_ = 0;
onChanged();
return this;
}
private java.lang.Object redemptionStartDate_ = "";
/**
*
* Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_start_date = 7;
* @return The redemptionStartDate.
*/
public java.lang.String getRedemptionStartDate() {
java.lang.Object ref = redemptionStartDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
redemptionStartDate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_start_date = 7;
* @return The bytes for redemptionStartDate.
*/
public com.google.protobuf.ByteString
getRedemptionStartDateBytes() {
java.lang.Object ref = redemptionStartDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
redemptionStartDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_start_date = 7;
* @param value The redemptionStartDate to set.
* @return This builder for chaining.
*/
public Builder setRedemptionStartDate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
redemptionStartDate_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_start_date = 7;
* @return This builder for chaining.
*/
public Builder clearRedemptionStartDate() {
redemptionStartDate_ = getDefaultInstance().getRedemptionStartDate();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_start_date = 7;
* @param value The bytes for redemptionStartDate to set.
* @return This builder for chaining.
*/
public Builder setRedemptionStartDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
redemptionStartDate_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object redemptionEndDate_ = "";
/**
*
* Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_end_date = 8;
* @return The redemptionEndDate.
*/
public java.lang.String getRedemptionEndDate() {
java.lang.Object ref = redemptionEndDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
redemptionEndDate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_end_date = 8;
* @return The bytes for redemptionEndDate.
*/
public com.google.protobuf.ByteString
getRedemptionEndDateBytes() {
java.lang.Object ref = redemptionEndDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
redemptionEndDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_end_date = 8;
* @param value The redemptionEndDate to set.
* @return This builder for chaining.
*/
public Builder setRedemptionEndDate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
redemptionEndDate_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_end_date = 8;
* @return This builder for chaining.
*/
public Builder clearRedemptionEndDate() {
redemptionEndDate_ = getDefaultInstance().getRedemptionEndDate();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
* format.
*
*
* string redemption_end_date = 8;
* @param value The bytes for redemptionEndDate to set.
* @return This builder for chaining.
*/
public Builder setRedemptionEndDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
redemptionEndDate_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private int occasion_ = 0;
/**
*
* 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.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;
* @return The enum numeric value on the wire for occasion.
*/
@java.lang.Override public int getOccasionValue() {
return occasion_;
}
/**
*
* 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.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;
* @param value The enum numeric value on the wire for occasion to set.
* @return This builder for chaining.
*/
public Builder setOccasionValue(int value) {
occasion_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* 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.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;
* @return The occasion.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion getOccasion() {
com.google.ads.googleads.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion result = com.google.ads.googleads.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion.forNumber(occasion_);
return result == null ? com.google.ads.googleads.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion.UNRECOGNIZED : result;
}
/**
*
* 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.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;
* @param value The occasion to set.
* @return This builder for chaining.
*/
public Builder setOccasion(com.google.ads.googleads.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
occasion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* 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.v17.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;
* @return This builder for chaining.
*/
public Builder clearOccasion() {
bitField0_ = (bitField0_ & ~0x00000010);
occasion_ = 0;
onChanged();
return this;
}
private java.lang.Object languageCode_ = "";
/**
*
* The language of the promotion.
* Represented as BCP 47 language tag.
*
*
* string language_code = 10;
* @return The languageCode.
*/
public java.lang.String getLanguageCode() {
java.lang.Object ref = languageCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
languageCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The language of the promotion.
* Represented as BCP 47 language tag.
*
*
* string language_code = 10;
* @return The bytes for languageCode.
*/
public com.google.protobuf.ByteString
getLanguageCodeBytes() {
java.lang.Object ref = languageCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
languageCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The language of the promotion.
* Represented as BCP 47 language tag.
*
*
* string language_code = 10;
* @param value The languageCode to set.
* @return This builder for chaining.
*/
public Builder setLanguageCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
languageCode_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The language of the promotion.
* Represented as BCP 47 language tag.
*
*
* string language_code = 10;
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
languageCode_ = getDefaultInstance().getLanguageCode();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* The language of the promotion.
* Represented as BCP 47 language tag.
*
*
* string language_code = 10;
* @param value The bytes for languageCode to set.
* @return This builder for chaining.
*/
public Builder setLanguageCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
languageCode_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object startDate_ = "";
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 11;
* @return The startDate.
*/
public java.lang.String getStartDate() {
java.lang.Object ref = startDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
startDate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 11;
* @return The bytes for startDate.
*/
public com.google.protobuf.ByteString
getStartDateBytes() {
java.lang.Object ref = startDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 11;
* @param value The startDate to set.
* @return This builder for chaining.
*/
public Builder setStartDate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
startDate_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 11;
* @return This builder for chaining.
*/
public Builder clearStartDate() {
startDate_ = getDefaultInstance().getStartDate();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 11;
* @param value The bytes for startDate to set.
* @return This builder for chaining.
*/
public Builder setStartDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
startDate_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object endDate_ = "";
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 12;
* @return The endDate.
*/
public java.lang.String getEndDate() {
java.lang.Object ref = endDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endDate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 12;
* @return The bytes for endDate.
*/
public com.google.protobuf.ByteString
getEndDateBytes() {
java.lang.Object ref = endDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 12;
* @param value The endDate to set.
* @return This builder for chaining.
*/
public Builder setEndDate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
endDate_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 12;
* @return This builder for chaining.
*/
public Builder clearEndDate() {
endDate_ = getDefaultInstance().getEndDate();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 12;
* @param value The bytes for endDate to set.
* @return This builder for chaining.
*/
public Builder setEndDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
endDate_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.util.List adScheduleTargets_ =
java.util.Collections.emptyList();
private void ensureAdScheduleTargetsIsMutable() {
if (!((bitField0_ & 0x00000100) != 0)) {
adScheduleTargets_ = new java.util.ArrayList(adScheduleTargets_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdScheduleInfo, com.google.ads.googleads.v17.common.AdScheduleInfo.Builder, com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder> adScheduleTargetsBuilder_;
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public java.util.List getAdScheduleTargetsList() {
if (adScheduleTargetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(adScheduleTargets_);
} else {
return adScheduleTargetsBuilder_.getMessageList();
}
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public int getAdScheduleTargetsCount() {
if (adScheduleTargetsBuilder_ == null) {
return adScheduleTargets_.size();
} else {
return adScheduleTargetsBuilder_.getCount();
}
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public com.google.ads.googleads.v17.common.AdScheduleInfo getAdScheduleTargets(int index) {
if (adScheduleTargetsBuilder_ == null) {
return adScheduleTargets_.get(index);
} else {
return adScheduleTargetsBuilder_.getMessage(index);
}
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public Builder setAdScheduleTargets(
int index, com.google.ads.googleads.v17.common.AdScheduleInfo value) {
if (adScheduleTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.set(index, value);
onChanged();
} else {
adScheduleTargetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public Builder setAdScheduleTargets(
int index, com.google.ads.googleads.v17.common.AdScheduleInfo.Builder builderForValue) {
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.set(index, builderForValue.build());
onChanged();
} else {
adScheduleTargetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public Builder addAdScheduleTargets(com.google.ads.googleads.v17.common.AdScheduleInfo value) {
if (adScheduleTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.add(value);
onChanged();
} else {
adScheduleTargetsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public Builder addAdScheduleTargets(
int index, com.google.ads.googleads.v17.common.AdScheduleInfo value) {
if (adScheduleTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.add(index, value);
onChanged();
} else {
adScheduleTargetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public Builder addAdScheduleTargets(
com.google.ads.googleads.v17.common.AdScheduleInfo.Builder builderForValue) {
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.add(builderForValue.build());
onChanged();
} else {
adScheduleTargetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public Builder addAdScheduleTargets(
int index, com.google.ads.googleads.v17.common.AdScheduleInfo.Builder builderForValue) {
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.add(index, builderForValue.build());
onChanged();
} else {
adScheduleTargetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public Builder addAllAdScheduleTargets(
java.lang.Iterable extends com.google.ads.googleads.v17.common.AdScheduleInfo> values) {
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, adScheduleTargets_);
onChanged();
} else {
adScheduleTargetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public Builder clearAdScheduleTargets() {
if (adScheduleTargetsBuilder_ == null) {
adScheduleTargets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
adScheduleTargetsBuilder_.clear();
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public Builder removeAdScheduleTargets(int index) {
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.remove(index);
onChanged();
} else {
adScheduleTargetsBuilder_.remove(index);
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public com.google.ads.googleads.v17.common.AdScheduleInfo.Builder getAdScheduleTargetsBuilder(
int index) {
return getAdScheduleTargetsFieldBuilder().getBuilder(index);
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder getAdScheduleTargetsOrBuilder(
int index) {
if (adScheduleTargetsBuilder_ == null) {
return adScheduleTargets_.get(index); } else {
return adScheduleTargetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public java.util.List extends com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder>
getAdScheduleTargetsOrBuilderList() {
if (adScheduleTargetsBuilder_ != null) {
return adScheduleTargetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(adScheduleTargets_);
}
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public com.google.ads.googleads.v17.common.AdScheduleInfo.Builder addAdScheduleTargetsBuilder() {
return getAdScheduleTargetsFieldBuilder().addBuilder(
com.google.ads.googleads.v17.common.AdScheduleInfo.getDefaultInstance());
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public com.google.ads.googleads.v17.common.AdScheduleInfo.Builder addAdScheduleTargetsBuilder(
int index) {
return getAdScheduleTargetsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.common.AdScheduleInfo.getDefaultInstance());
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 13;
*/
public java.util.List
getAdScheduleTargetsBuilderList() {
return getAdScheduleTargetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdScheduleInfo, com.google.ads.googleads.v17.common.AdScheduleInfo.Builder, com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder>
getAdScheduleTargetsFieldBuilder() {
if (adScheduleTargetsBuilder_ == null) {
adScheduleTargetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdScheduleInfo, com.google.ads.googleads.v17.common.AdScheduleInfo.Builder, com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder>(
adScheduleTargets_,
((bitField0_ & 0x00000100) != 0),
getParentForChildren(),
isClean());
adScheduleTargets_ = null;
}
return adScheduleTargetsBuilder_;
}
/**
*
* Percentage off discount in the promotion. 1,000,000 = 100%.
* Either this or money_amount_off is required.
*
*
* int64 percent_off = 3;
* @return Whether the percentOff field is set.
*/
public boolean hasPercentOff() {
return discountTypeCase_ == 3;
}
/**
*
* Percentage off discount in the promotion. 1,000,000 = 100%.
* Either this or money_amount_off is required.
*
*
* int64 percent_off = 3;
* @return The percentOff.
*/
public long getPercentOff() {
if (discountTypeCase_ == 3) {
return (java.lang.Long) discountType_;
}
return 0L;
}
/**
*
* Percentage off discount in the promotion. 1,000,000 = 100%.
* Either this or money_amount_off is required.
*
*
* int64 percent_off = 3;
* @param value The percentOff to set.
* @return This builder for chaining.
*/
public Builder setPercentOff(long value) {
discountTypeCase_ = 3;
discountType_ = value;
onChanged();
return this;
}
/**
*
* Percentage off discount in the promotion. 1,000,000 = 100%.
* Either this or money_amount_off is required.
*
*
* int64 percent_off = 3;
* @return This builder for chaining.
*/
public Builder clearPercentOff() {
if (discountTypeCase_ == 3) {
discountTypeCase_ = 0;
discountType_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.Money, com.google.ads.googleads.v17.common.Money.Builder, com.google.ads.googleads.v17.common.MoneyOrBuilder> moneyAmountOffBuilder_;
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
* @return Whether the moneyAmountOff field is set.
*/
@java.lang.Override
public boolean hasMoneyAmountOff() {
return discountTypeCase_ == 4;
}
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
* @return The moneyAmountOff.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.Money getMoneyAmountOff() {
if (moneyAmountOffBuilder_ == null) {
if (discountTypeCase_ == 4) {
return (com.google.ads.googleads.v17.common.Money) discountType_;
}
return com.google.ads.googleads.v17.common.Money.getDefaultInstance();
} else {
if (discountTypeCase_ == 4) {
return moneyAmountOffBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.Money.getDefaultInstance();
}
}
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
*/
public Builder setMoneyAmountOff(com.google.ads.googleads.v17.common.Money value) {
if (moneyAmountOffBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
discountType_ = value;
onChanged();
} else {
moneyAmountOffBuilder_.setMessage(value);
}
discountTypeCase_ = 4;
return this;
}
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
*/
public Builder setMoneyAmountOff(
com.google.ads.googleads.v17.common.Money.Builder builderForValue) {
if (moneyAmountOffBuilder_ == null) {
discountType_ = builderForValue.build();
onChanged();
} else {
moneyAmountOffBuilder_.setMessage(builderForValue.build());
}
discountTypeCase_ = 4;
return this;
}
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
*/
public Builder mergeMoneyAmountOff(com.google.ads.googleads.v17.common.Money value) {
if (moneyAmountOffBuilder_ == null) {
if (discountTypeCase_ == 4 &&
discountType_ != com.google.ads.googleads.v17.common.Money.getDefaultInstance()) {
discountType_ = com.google.ads.googleads.v17.common.Money.newBuilder((com.google.ads.googleads.v17.common.Money) discountType_)
.mergeFrom(value).buildPartial();
} else {
discountType_ = value;
}
onChanged();
} else {
if (discountTypeCase_ == 4) {
moneyAmountOffBuilder_.mergeFrom(value);
} else {
moneyAmountOffBuilder_.setMessage(value);
}
}
discountTypeCase_ = 4;
return this;
}
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
*/
public Builder clearMoneyAmountOff() {
if (moneyAmountOffBuilder_ == null) {
if (discountTypeCase_ == 4) {
discountTypeCase_ = 0;
discountType_ = null;
onChanged();
}
} else {
if (discountTypeCase_ == 4) {
discountTypeCase_ = 0;
discountType_ = null;
}
moneyAmountOffBuilder_.clear();
}
return this;
}
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
*/
public com.google.ads.googleads.v17.common.Money.Builder getMoneyAmountOffBuilder() {
return getMoneyAmountOffFieldBuilder().getBuilder();
}
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MoneyOrBuilder getMoneyAmountOffOrBuilder() {
if ((discountTypeCase_ == 4) && (moneyAmountOffBuilder_ != null)) {
return moneyAmountOffBuilder_.getMessageOrBuilder();
} else {
if (discountTypeCase_ == 4) {
return (com.google.ads.googleads.v17.common.Money) discountType_;
}
return com.google.ads.googleads.v17.common.Money.getDefaultInstance();
}
}
/**
*
* Money amount off for discount in the promotion.
* Either this or percent_off is required.
*
*
* .google.ads.googleads.v17.common.Money money_amount_off = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.Money, com.google.ads.googleads.v17.common.Money.Builder, com.google.ads.googleads.v17.common.MoneyOrBuilder>
getMoneyAmountOffFieldBuilder() {
if (moneyAmountOffBuilder_ == null) {
if (!(discountTypeCase_ == 4)) {
discountType_ = com.google.ads.googleads.v17.common.Money.getDefaultInstance();
}
moneyAmountOffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.Money, com.google.ads.googleads.v17.common.Money.Builder, com.google.ads.googleads.v17.common.MoneyOrBuilder>(
(com.google.ads.googleads.v17.common.Money) discountType_,
getParentForChildren(),
isClean());
discountType_ = null;
}
discountTypeCase_ = 4;
onChanged();
return moneyAmountOffBuilder_;
}
/**
*
* A code the user should use in order to be eligible for the promotion.
*
*
* string promotion_code = 5;
* @return Whether the promotionCode field is set.
*/
@java.lang.Override
public boolean hasPromotionCode() {
return promotionTriggerCase_ == 5;
}
/**
*
* A code the user should use in order to be eligible for the promotion.
*
*
* string promotion_code = 5;
* @return The promotionCode.
*/
@java.lang.Override
public java.lang.String getPromotionCode() {
java.lang.Object ref = "";
if (promotionTriggerCase_ == 5) {
ref = promotionTrigger_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (promotionTriggerCase_ == 5) {
promotionTrigger_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A code the user should use in order to be eligible for the promotion.
*
*
* string promotion_code = 5;
* @return The bytes for promotionCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPromotionCodeBytes() {
java.lang.Object ref = "";
if (promotionTriggerCase_ == 5) {
ref = promotionTrigger_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (promotionTriggerCase_ == 5) {
promotionTrigger_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A code the user should use in order to be eligible for the promotion.
*
*
* string promotion_code = 5;
* @param value The promotionCode to set.
* @return This builder for chaining.
*/
public Builder setPromotionCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
promotionTriggerCase_ = 5;
promotionTrigger_ = value;
onChanged();
return this;
}
/**
*
* A code the user should use in order to be eligible for the promotion.
*
*
* string promotion_code = 5;
* @return This builder for chaining.
*/
public Builder clearPromotionCode() {
if (promotionTriggerCase_ == 5) {
promotionTriggerCase_ = 0;
promotionTrigger_ = null;
onChanged();
}
return this;
}
/**
*
* A code the user should use in order to be eligible for the promotion.
*
*
* string promotion_code = 5;
* @param value The bytes for promotionCode to set.
* @return This builder for chaining.
*/
public Builder setPromotionCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
promotionTriggerCase_ = 5;
promotionTrigger_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.Money, com.google.ads.googleads.v17.common.Money.Builder, com.google.ads.googleads.v17.common.MoneyOrBuilder> ordersOverAmountBuilder_;
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
* @return Whether the ordersOverAmount field is set.
*/
@java.lang.Override
public boolean hasOrdersOverAmount() {
return promotionTriggerCase_ == 6;
}
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
* @return The ordersOverAmount.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.Money getOrdersOverAmount() {
if (ordersOverAmountBuilder_ == null) {
if (promotionTriggerCase_ == 6) {
return (com.google.ads.googleads.v17.common.Money) promotionTrigger_;
}
return com.google.ads.googleads.v17.common.Money.getDefaultInstance();
} else {
if (promotionTriggerCase_ == 6) {
return ordersOverAmountBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.Money.getDefaultInstance();
}
}
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
*/
public Builder setOrdersOverAmount(com.google.ads.googleads.v17.common.Money value) {
if (ordersOverAmountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
promotionTrigger_ = value;
onChanged();
} else {
ordersOverAmountBuilder_.setMessage(value);
}
promotionTriggerCase_ = 6;
return this;
}
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
*/
public Builder setOrdersOverAmount(
com.google.ads.googleads.v17.common.Money.Builder builderForValue) {
if (ordersOverAmountBuilder_ == null) {
promotionTrigger_ = builderForValue.build();
onChanged();
} else {
ordersOverAmountBuilder_.setMessage(builderForValue.build());
}
promotionTriggerCase_ = 6;
return this;
}
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
*/
public Builder mergeOrdersOverAmount(com.google.ads.googleads.v17.common.Money value) {
if (ordersOverAmountBuilder_ == null) {
if (promotionTriggerCase_ == 6 &&
promotionTrigger_ != com.google.ads.googleads.v17.common.Money.getDefaultInstance()) {
promotionTrigger_ = com.google.ads.googleads.v17.common.Money.newBuilder((com.google.ads.googleads.v17.common.Money) promotionTrigger_)
.mergeFrom(value).buildPartial();
} else {
promotionTrigger_ = value;
}
onChanged();
} else {
if (promotionTriggerCase_ == 6) {
ordersOverAmountBuilder_.mergeFrom(value);
} else {
ordersOverAmountBuilder_.setMessage(value);
}
}
promotionTriggerCase_ = 6;
return this;
}
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
*/
public Builder clearOrdersOverAmount() {
if (ordersOverAmountBuilder_ == null) {
if (promotionTriggerCase_ == 6) {
promotionTriggerCase_ = 0;
promotionTrigger_ = null;
onChanged();
}
} else {
if (promotionTriggerCase_ == 6) {
promotionTriggerCase_ = 0;
promotionTrigger_ = null;
}
ordersOverAmountBuilder_.clear();
}
return this;
}
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
*/
public com.google.ads.googleads.v17.common.Money.Builder getOrdersOverAmountBuilder() {
return getOrdersOverAmountFieldBuilder().getBuilder();
}
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MoneyOrBuilder getOrdersOverAmountOrBuilder() {
if ((promotionTriggerCase_ == 6) && (ordersOverAmountBuilder_ != null)) {
return ordersOverAmountBuilder_.getMessageOrBuilder();
} else {
if (promotionTriggerCase_ == 6) {
return (com.google.ads.googleads.v17.common.Money) promotionTrigger_;
}
return com.google.ads.googleads.v17.common.Money.getDefaultInstance();
}
}
/**
*
* The amount the total order needs to be for the user to be eligible for
* the promotion.
*
*
* .google.ads.googleads.v17.common.Money orders_over_amount = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.Money, com.google.ads.googleads.v17.common.Money.Builder, com.google.ads.googleads.v17.common.MoneyOrBuilder>
getOrdersOverAmountFieldBuilder() {
if (ordersOverAmountBuilder_ == null) {
if (!(promotionTriggerCase_ == 6)) {
promotionTrigger_ = com.google.ads.googleads.v17.common.Money.getDefaultInstance();
}
ordersOverAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.Money, com.google.ads.googleads.v17.common.Money.Builder, com.google.ads.googleads.v17.common.MoneyOrBuilder>(
(com.google.ads.googleads.v17.common.Money) promotionTrigger_,
getParentForChildren(),
isClean());
promotionTrigger_ = null;
}
promotionTriggerCase_ = 6;
onChanged();
return ordersOverAmountBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.PromotionAsset)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.PromotionAsset)
private static final com.google.ads.googleads.v17.common.PromotionAsset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.PromotionAsset();
}
public static com.google.ads.googleads.v17.common.PromotionAsset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PromotionAsset parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.PromotionAsset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy