com.passkit.grpc.SingleUseCoupons.Offer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK for the PassKit gRPC API that can be used to create, configure and manage Membership, Loyalty, Event Ticket, Coupon, Transit and Boarding Pass content for mobile wallet applications, including Apple Pay and Google Pay.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: io/single_use_coupons/offer.proto
package com.passkit.grpc.SingleUseCoupons;
public final class Offer {
private Offer() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code single_use_coupons.CouponExpiryType}
*/
public enum CouponExpiryType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* EXPIRY_DO_NOT_USE = 0;
*/
EXPIRY_DO_NOT_USE(0),
/**
*
* The system will set the coupon expiry based to the campaign end date (default).
*
*
* AUTO_EXPIRE_OFFER_END_DATE = 1;
*/
AUTO_EXPIRE_OFFER_END_DATE(1),
/**
*
* The system will set the coupon expiry based to the redemption end date.
*
*
* AUTO_EXPIRE_REDEMPTION_END_DATE = 2;
*/
AUTO_EXPIRE_REDEMPTION_END_DATE(2),
/**
*
* The system will calculate the expiry date based the number of days after the digital coupon is issued.
* The calculated date needs to be within range of the campaign date rules. For example, if issue date + EXPIRE_AFTER_X_DAYS is greater than the campaign end date, it will default to the campaign end date.
* The expiry date will be based on your timezone. The digital card will expire at 23:59:59 of set date in fixed timezone.
*
*
* EXPIRE_AFTER_X_DAYS = 3;
*/
EXPIRE_AFTER_X_DAYS(3),
/**
*
* If you want to set the expiry date for each individual coupon when the coupon is issued, you can use this expiry type.
* You can set expiry date and time in fixed timezone on the coupon record.
* The date needs to be within range of the campaign date rules, otherwise the system will return an error.
*
*
* EXPIRE_ON_VARIABLE_DATE_TIME = 4;
*/
EXPIRE_ON_VARIABLE_DATE_TIME(4),
UNRECOGNIZED(-1),
;
/**
* EXPIRY_DO_NOT_USE = 0;
*/
public static final int EXPIRY_DO_NOT_USE_VALUE = 0;
/**
*
* The system will set the coupon expiry based to the campaign end date (default).
*
*
* AUTO_EXPIRE_OFFER_END_DATE = 1;
*/
public static final int AUTO_EXPIRE_OFFER_END_DATE_VALUE = 1;
/**
*
* The system will set the coupon expiry based to the redemption end date.
*
*
* AUTO_EXPIRE_REDEMPTION_END_DATE = 2;
*/
public static final int AUTO_EXPIRE_REDEMPTION_END_DATE_VALUE = 2;
/**
*
* The system will calculate the expiry date based the number of days after the digital coupon is issued.
* The calculated date needs to be within range of the campaign date rules. For example, if issue date + EXPIRE_AFTER_X_DAYS is greater than the campaign end date, it will default to the campaign end date.
* The expiry date will be based on your timezone. The digital card will expire at 23:59:59 of set date in fixed timezone.
*
*
* EXPIRE_AFTER_X_DAYS = 3;
*/
public static final int EXPIRE_AFTER_X_DAYS_VALUE = 3;
/**
*
* If you want to set the expiry date for each individual coupon when the coupon is issued, you can use this expiry type.
* You can set expiry date and time in fixed timezone on the coupon record.
* The date needs to be within range of the campaign date rules, otherwise the system will return an error.
*
*
* EXPIRE_ON_VARIABLE_DATE_TIME = 4;
*/
public static final int EXPIRE_ON_VARIABLE_DATE_TIME_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CouponExpiryType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static CouponExpiryType forNumber(int value) {
switch (value) {
case 0: return EXPIRY_DO_NOT_USE;
case 1: return AUTO_EXPIRE_OFFER_END_DATE;
case 2: return AUTO_EXPIRE_REDEMPTION_END_DATE;
case 3: return EXPIRE_AFTER_X_DAYS;
case 4: return EXPIRE_ON_VARIABLE_DATE_TIME;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CouponExpiryType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CouponExpiryType findValueByNumber(int number) {
return CouponExpiryType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.getDescriptor().getEnumTypes().get(0);
}
private static final CouponExpiryType[] VALUES = values();
public static CouponExpiryType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CouponExpiryType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:single_use_coupons.CouponExpiryType)
}
/**
* Protobuf enum {@code single_use_coupons.RedemptionType}
*/
public enum RedemptionType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Zero index should not be used
*
*
* REDEMPTION_TYPE_DO_NOT_USE = 0;
*/
REDEMPTION_TYPE_DO_NOT_USE(0),
/**
*
* Coupons are always redeemed via API (default). This method is used by POS integrations, but is also be used by the PassKit scanning app.
*
*
* REDEMPTION_TYPE_API = 1;
*/
REDEMPTION_TYPE_API(1),
/**
*
* Coupons can be redeemed by the coupon holder (i.e. the customer) by visiting a redemption URL rendered on the coupon.
* The coupon will redeem upon the link being visited.
*
*
* REDEMPTION_TYPE_CUSTOMER_INITIATED = 2;
*/
REDEMPTION_TYPE_CUSTOMER_INITIATED(2),
/**
*
* This will present a fixed code to the customer after they visit the redemption URL, and then auto redeem the coupon. The customer can then present this fixed-code to a member of staff.
*
*
* REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED = 3;
*/
REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED(3),
/**
*
* After visiting the redemption URL, a member of staff provides the customer with a redemption-code they need to enter. After entering the code, the coupon with redeem.
*
*
* REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_PROVIDED_ON_REDEEM = 4;
*/
REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_PROVIDED_ON_REDEEM(4),
UNRECOGNIZED(-1),
;
/**
*
* Zero index should not be used
*
*
* REDEMPTION_TYPE_DO_NOT_USE = 0;
*/
public static final int REDEMPTION_TYPE_DO_NOT_USE_VALUE = 0;
/**
*
* Coupons are always redeemed via API (default). This method is used by POS integrations, but is also be used by the PassKit scanning app.
*
*
* REDEMPTION_TYPE_API = 1;
*/
public static final int REDEMPTION_TYPE_API_VALUE = 1;
/**
*
* Coupons can be redeemed by the coupon holder (i.e. the customer) by visiting a redemption URL rendered on the coupon.
* The coupon will redeem upon the link being visited.
*
*
* REDEMPTION_TYPE_CUSTOMER_INITIATED = 2;
*/
public static final int REDEMPTION_TYPE_CUSTOMER_INITIATED_VALUE = 2;
/**
*
* This will present a fixed code to the customer after they visit the redemption URL, and then auto redeem the coupon. The customer can then present this fixed-code to a member of staff.
*
*
* REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED = 3;
*/
public static final int REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED_VALUE = 3;
/**
*
* After visiting the redemption URL, a member of staff provides the customer with a redemption-code they need to enter. After entering the code, the coupon with redeem.
*
*
* REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_PROVIDED_ON_REDEEM = 4;
*/
public static final int REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_PROVIDED_ON_REDEEM_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RedemptionType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static RedemptionType forNumber(int value) {
switch (value) {
case 0: return REDEMPTION_TYPE_DO_NOT_USE;
case 1: return REDEMPTION_TYPE_API;
case 2: return REDEMPTION_TYPE_CUSTOMER_INITIATED;
case 3: return REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED;
case 4: return REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_PROVIDED_ON_REDEEM;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
RedemptionType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public RedemptionType findValueByNumber(int number) {
return RedemptionType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.getDescriptor().getEnumTypes().get(1);
}
private static final RedemptionType[] VALUES = values();
public static RedemptionType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private RedemptionType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:single_use_coupons.RedemptionType)
}
public interface CouponOfferOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.CouponOffer)
com.google.protobuf.MessageOrBuilder {
/**
*
* PassKit generated offer id (22 characters).
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* PassKit generated offer id (22 characters).
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* The offer title; will be shown on the enrolment page.
*
*
* string offerTitle = 2;
* @return The offerTitle.
*/
java.lang.String getOfferTitle();
/**
*
* The offer title; will be shown on the enrolment page.
*
*
* string offerTitle = 2;
* @return The bytes for offerTitle.
*/
com.google.protobuf.ByteString
getOfferTitleBytes();
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
* @return Whether the localizedOfferTitle field is set.
*/
boolean hasLocalizedOfferTitle();
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
* @return The localizedOfferTitle.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedOfferTitle();
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferTitleOrBuilder();
/**
*
* The offer short title.
*
*
* string offerShortTitle = 4;
* @return The offerShortTitle.
*/
java.lang.String getOfferShortTitle();
/**
*
* The offer short title.
*
*
* string offerShortTitle = 4;
* @return The bytes for offerShortTitle.
*/
com.google.protobuf.ByteString
getOfferShortTitleBytes();
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
* @return Whether the localizedOfferShortTitle field is set.
*/
boolean hasLocalizedOfferShortTitle();
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
* @return The localizedOfferShortTitle.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedOfferShortTitle();
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferShortTitleOrBuilder();
/**
*
* The offer details; will be shown on the enrolment page.
*
*
* string offerDetails = 6;
* @return The offerDetails.
*/
java.lang.String getOfferDetails();
/**
*
* The offer details; will be shown on the enrolment page.
*
*
* string offerDetails = 6;
* @return The bytes for offerDetails.
*/
com.google.protobuf.ByteString
getOfferDetailsBytes();
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
* @return Whether the localizedOfferDetails field is set.
*/
boolean hasLocalizedOfferDetails();
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
* @return The localizedOfferDetails.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedOfferDetails();
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferDetailsOrBuilder();
/**
*
* The offer fine print.
*
*
* string offerFinePrint = 8;
* @return The offerFinePrint.
*/
java.lang.String getOfferFinePrint();
/**
*
* The offer fine print.
*
*
* string offerFinePrint = 8;
* @return The bytes for offerFinePrint.
*/
com.google.protobuf.ByteString
getOfferFinePrintBytes();
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
* @return Whether the localizedOfferFinePrint field is set.
*/
boolean hasLocalizedOfferFinePrint();
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
* @return The localizedOfferFinePrint.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedOfferFinePrint();
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferFinePrintOrBuilder();
/**
*
* The pass template ID that coupons will use when in unredeemed state. All coupons for the offer are issued in unredeemed state.
*
*
* string beforeRedeemPassTemplateId = 10;
* @return The beforeRedeemPassTemplateId.
*/
java.lang.String getBeforeRedeemPassTemplateId();
/**
*
* The pass template ID that coupons will use when in unredeemed state. All coupons for the offer are issued in unredeemed state.
*
*
* string beforeRedeemPassTemplateId = 10;
* @return The bytes for beforeRedeemPassTemplateId.
*/
com.google.protobuf.ByteString
getBeforeRedeemPassTemplateIdBytes();
/**
*
* Optional pass template ID that coupons will use when switched to redeemed state.
*
*
* string afterRedeemPassTemplateId = 11;
* @return The afterRedeemPassTemplateId.
*/
java.lang.String getAfterRedeemPassTemplateId();
/**
*
* Optional pass template ID that coupons will use when switched to redeemed state.
*
*
* string afterRedeemPassTemplateId = 11;
* @return The bytes for afterRedeemPassTemplateId.
*/
com.google.protobuf.ByteString
getAfterRedeemPassTemplateIdBytes();
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
* @return Whether the quota field is set.
*/
boolean hasQuota();
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
* @return The quota.
*/
com.passkit.grpc.Billing.Quota getQuota();
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
*/
com.passkit.grpc.Billing.QuotaOrBuilder getQuotaOrBuilder();
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
* @return Whether the couponExpirySettings field is set.
*/
boolean hasCouponExpirySettings();
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
* @return The couponExpirySettings.
*/
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings getCouponExpirySettings();
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
*/
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettingsOrBuilder getCouponExpirySettingsOrBuilder();
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
* @return Whether the redemptionSettings field is set.
*/
boolean hasRedemptionSettings();
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
* @return The redemptionSettings.
*/
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings getRedemptionSettings();
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
*/
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettingsOrBuilder getRedemptionSettingsOrBuilder();
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
* @return Whether the issueStartDate field is set.
*/
boolean hasIssueStartDate();
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
* @return The issueStartDate.
*/
com.google.protobuf.Timestamp getIssueStartDate();
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
*/
com.google.protobuf.TimestampOrBuilder getIssueStartDateOrBuilder();
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
* @return Whether the issueEndDate field is set.
*/
boolean hasIssueEndDate();
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
* @return The issueEndDate.
*/
com.google.protobuf.Timestamp getIssueEndDate();
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
*/
com.google.protobuf.TimestampOrBuilder getIssueEndDateOrBuilder();
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
* @return Whether the created field is set.
*/
boolean hasCreated();
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
* @return The created.
*/
com.google.protobuf.Timestamp getCreated();
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
*/
com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder();
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
* @return Whether the updated field is set.
*/
boolean hasUpdated();
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
* @return The updated.
*/
com.google.protobuf.Timestamp getUpdated();
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
*/
com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder();
/**
*
* The campaign id that the offer belongs to (1 campaign can have multiple offers). This field cannot be changed once an offer is linked to a campaign.
*
*
* string campaignId = 19;
* @return The campaignId.
*/
java.lang.String getCampaignId();
/**
*
* The campaign id that the offer belongs to (1 campaign can have multiple offers). This field cannot be changed once an offer is linked to a campaign.
*
*
* string campaignId = 19;
* @return The bytes for campaignId.
*/
com.google.protobuf.ByteString
getCampaignIdBytes();
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
* @return Whether the distributionSettings field is set.
*/
boolean hasDistributionSettings();
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
* @return The distributionSettings.
*/
com.passkit.grpc.Distribution.DistributionSettings getDistributionSettings();
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
*/
com.passkit.grpc.Distribution.DistributionSettingsOrBuilder getDistributionSettingsOrBuilder();
/**
*
* The offer shortcode generated by the system. If the campaign is public, then this shortcode can be used to generate the coupon-create URL.
*
*
* string shortCode = 21;
* @return The shortCode.
*/
java.lang.String getShortCode();
/**
*
* The offer shortcode generated by the system. If the campaign is public, then this shortcode can be used to generate the coupon-create URL.
*
*
* string shortCode = 21;
* @return The bytes for shortCode.
*/
com.google.protobuf.ByteString
getShortCodeBytes();
/**
*
* The offer timezone.
*
*
* string ianaTimezone = 22;
* @return The ianaTimezone.
*/
java.lang.String getIanaTimezone();
/**
*
* The offer timezone.
*
*
* string ianaTimezone = 22;
* @return The bytes for ianaTimezone.
*/
com.google.protobuf.ByteString
getIanaTimezoneBytes();
/**
*
* Can be used to temporarily disable the coupon (i.e. if you ran out of your promotion item, you can temporarily disable all live coupons, and activate them again later on when your item is in stock again).
*
*
* bool disabled = 23;
* @return The disabled.
*/
boolean getDisabled();
}
/**
*
* The Coupon Offer Details.
*
*
* Protobuf type {@code single_use_coupons.CouponOffer}
*/
public static final class CouponOffer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.CouponOffer)
CouponOfferOrBuilder {
private static final long serialVersionUID = 0L;
// Use CouponOffer.newBuilder() to construct.
private CouponOffer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CouponOffer() {
id_ = "";
offerTitle_ = "";
offerShortTitle_ = "";
offerDetails_ = "";
offerFinePrint_ = "";
beforeRedeemPassTemplateId_ = "";
afterRedeemPassTemplateId_ = "";
campaignId_ = "";
shortCode_ = "";
ianaTimezone_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CouponOffer();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CouponOffer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
offerTitle_ = s;
break;
}
case 26: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedOfferTitle_ != null) {
subBuilder = localizedOfferTitle_.toBuilder();
}
localizedOfferTitle_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedOfferTitle_);
localizedOfferTitle_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
offerShortTitle_ = s;
break;
}
case 42: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedOfferShortTitle_ != null) {
subBuilder = localizedOfferShortTitle_.toBuilder();
}
localizedOfferShortTitle_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedOfferShortTitle_);
localizedOfferShortTitle_ = subBuilder.buildPartial();
}
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
offerDetails_ = s;
break;
}
case 58: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedOfferDetails_ != null) {
subBuilder = localizedOfferDetails_.toBuilder();
}
localizedOfferDetails_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedOfferDetails_);
localizedOfferDetails_ = subBuilder.buildPartial();
}
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
offerFinePrint_ = s;
break;
}
case 74: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedOfferFinePrint_ != null) {
subBuilder = localizedOfferFinePrint_.toBuilder();
}
localizedOfferFinePrint_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedOfferFinePrint_);
localizedOfferFinePrint_ = subBuilder.buildPartial();
}
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
beforeRedeemPassTemplateId_ = s;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
afterRedeemPassTemplateId_ = s;
break;
}
case 98: {
com.passkit.grpc.Billing.Quota.Builder subBuilder = null;
if (quota_ != null) {
subBuilder = quota_.toBuilder();
}
quota_ = input.readMessage(com.passkit.grpc.Billing.Quota.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(quota_);
quota_ = subBuilder.buildPartial();
}
break;
}
case 106: {
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.Builder subBuilder = null;
if (couponExpirySettings_ != null) {
subBuilder = couponExpirySettings_.toBuilder();
}
couponExpirySettings_ = input.readMessage(com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(couponExpirySettings_);
couponExpirySettings_ = subBuilder.buildPartial();
}
break;
}
case 114: {
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.Builder subBuilder = null;
if (redemptionSettings_ != null) {
subBuilder = redemptionSettings_.toBuilder();
}
redemptionSettings_ = input.readMessage(com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(redemptionSettings_);
redemptionSettings_ = subBuilder.buildPartial();
}
break;
}
case 122: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (issueStartDate_ != null) {
subBuilder = issueStartDate_.toBuilder();
}
issueStartDate_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(issueStartDate_);
issueStartDate_ = subBuilder.buildPartial();
}
break;
}
case 130: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (issueEndDate_ != null) {
subBuilder = issueEndDate_.toBuilder();
}
issueEndDate_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(issueEndDate_);
issueEndDate_ = subBuilder.buildPartial();
}
break;
}
case 138: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (created_ != null) {
subBuilder = created_.toBuilder();
}
created_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(created_);
created_ = subBuilder.buildPartial();
}
break;
}
case 146: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (updated_ != null) {
subBuilder = updated_.toBuilder();
}
updated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updated_);
updated_ = subBuilder.buildPartial();
}
break;
}
case 154: {
java.lang.String s = input.readStringRequireUtf8();
campaignId_ = s;
break;
}
case 162: {
com.passkit.grpc.Distribution.DistributionSettings.Builder subBuilder = null;
if (distributionSettings_ != null) {
subBuilder = distributionSettings_.toBuilder();
}
distributionSettings_ = input.readMessage(com.passkit.grpc.Distribution.DistributionSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(distributionSettings_);
distributionSettings_ = subBuilder.buildPartial();
}
break;
}
case 170: {
java.lang.String s = input.readStringRequireUtf8();
shortCode_ = s;
break;
}
case 178: {
java.lang.String s = input.readStringRequireUtf8();
ianaTimezone_ = s;
break;
}
case 184: {
disabled_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.class, com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* PassKit generated offer id (22 characters).
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
*
* PassKit generated offer id (22 characters).
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OFFERTITLE_FIELD_NUMBER = 2;
private volatile java.lang.Object offerTitle_;
/**
*
* The offer title; will be shown on the enrolment page.
*
*
* string offerTitle = 2;
* @return The offerTitle.
*/
@java.lang.Override
public java.lang.String getOfferTitle() {
java.lang.Object ref = offerTitle_;
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();
offerTitle_ = s;
return s;
}
}
/**
*
* The offer title; will be shown on the enrolment page.
*
*
* string offerTitle = 2;
* @return The bytes for offerTitle.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOfferTitleBytes() {
java.lang.Object ref = offerTitle_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offerTitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDOFFERTITLE_FIELD_NUMBER = 3;
private com.passkit.grpc.Localization.LocalizedString localizedOfferTitle_;
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
* @return Whether the localizedOfferTitle field is set.
*/
@java.lang.Override
public boolean hasLocalizedOfferTitle() {
return localizedOfferTitle_ != null;
}
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
* @return The localizedOfferTitle.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedOfferTitle() {
return localizedOfferTitle_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferTitle_;
}
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferTitleOrBuilder() {
return getLocalizedOfferTitle();
}
public static final int OFFERSHORTTITLE_FIELD_NUMBER = 4;
private volatile java.lang.Object offerShortTitle_;
/**
*
* The offer short title.
*
*
* string offerShortTitle = 4;
* @return The offerShortTitle.
*/
@java.lang.Override
public java.lang.String getOfferShortTitle() {
java.lang.Object ref = offerShortTitle_;
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();
offerShortTitle_ = s;
return s;
}
}
/**
*
* The offer short title.
*
*
* string offerShortTitle = 4;
* @return The bytes for offerShortTitle.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOfferShortTitleBytes() {
java.lang.Object ref = offerShortTitle_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offerShortTitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDOFFERSHORTTITLE_FIELD_NUMBER = 5;
private com.passkit.grpc.Localization.LocalizedString localizedOfferShortTitle_;
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
* @return Whether the localizedOfferShortTitle field is set.
*/
@java.lang.Override
public boolean hasLocalizedOfferShortTitle() {
return localizedOfferShortTitle_ != null;
}
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
* @return The localizedOfferShortTitle.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedOfferShortTitle() {
return localizedOfferShortTitle_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferShortTitle_;
}
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferShortTitleOrBuilder() {
return getLocalizedOfferShortTitle();
}
public static final int OFFERDETAILS_FIELD_NUMBER = 6;
private volatile java.lang.Object offerDetails_;
/**
*
* The offer details; will be shown on the enrolment page.
*
*
* string offerDetails = 6;
* @return The offerDetails.
*/
@java.lang.Override
public java.lang.String getOfferDetails() {
java.lang.Object ref = offerDetails_;
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();
offerDetails_ = s;
return s;
}
}
/**
*
* The offer details; will be shown on the enrolment page.
*
*
* string offerDetails = 6;
* @return The bytes for offerDetails.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOfferDetailsBytes() {
java.lang.Object ref = offerDetails_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offerDetails_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDOFFERDETAILS_FIELD_NUMBER = 7;
private com.passkit.grpc.Localization.LocalizedString localizedOfferDetails_;
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
* @return Whether the localizedOfferDetails field is set.
*/
@java.lang.Override
public boolean hasLocalizedOfferDetails() {
return localizedOfferDetails_ != null;
}
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
* @return The localizedOfferDetails.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedOfferDetails() {
return localizedOfferDetails_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferDetails_;
}
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferDetailsOrBuilder() {
return getLocalizedOfferDetails();
}
public static final int OFFERFINEPRINT_FIELD_NUMBER = 8;
private volatile java.lang.Object offerFinePrint_;
/**
*
* The offer fine print.
*
*
* string offerFinePrint = 8;
* @return The offerFinePrint.
*/
@java.lang.Override
public java.lang.String getOfferFinePrint() {
java.lang.Object ref = offerFinePrint_;
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();
offerFinePrint_ = s;
return s;
}
}
/**
*
* The offer fine print.
*
*
* string offerFinePrint = 8;
* @return The bytes for offerFinePrint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOfferFinePrintBytes() {
java.lang.Object ref = offerFinePrint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offerFinePrint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDOFFERFINEPRINT_FIELD_NUMBER = 9;
private com.passkit.grpc.Localization.LocalizedString localizedOfferFinePrint_;
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
* @return Whether the localizedOfferFinePrint field is set.
*/
@java.lang.Override
public boolean hasLocalizedOfferFinePrint() {
return localizedOfferFinePrint_ != null;
}
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
* @return The localizedOfferFinePrint.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedOfferFinePrint() {
return localizedOfferFinePrint_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferFinePrint_;
}
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferFinePrintOrBuilder() {
return getLocalizedOfferFinePrint();
}
public static final int BEFOREREDEEMPASSTEMPLATEID_FIELD_NUMBER = 10;
private volatile java.lang.Object beforeRedeemPassTemplateId_;
/**
*
* The pass template ID that coupons will use when in unredeemed state. All coupons for the offer are issued in unredeemed state.
*
*
* string beforeRedeemPassTemplateId = 10;
* @return The beforeRedeemPassTemplateId.
*/
@java.lang.Override
public java.lang.String getBeforeRedeemPassTemplateId() {
java.lang.Object ref = beforeRedeemPassTemplateId_;
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();
beforeRedeemPassTemplateId_ = s;
return s;
}
}
/**
*
* The pass template ID that coupons will use when in unredeemed state. All coupons for the offer are issued in unredeemed state.
*
*
* string beforeRedeemPassTemplateId = 10;
* @return The bytes for beforeRedeemPassTemplateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBeforeRedeemPassTemplateIdBytes() {
java.lang.Object ref = beforeRedeemPassTemplateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
beforeRedeemPassTemplateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AFTERREDEEMPASSTEMPLATEID_FIELD_NUMBER = 11;
private volatile java.lang.Object afterRedeemPassTemplateId_;
/**
*
* Optional pass template ID that coupons will use when switched to redeemed state.
*
*
* string afterRedeemPassTemplateId = 11;
* @return The afterRedeemPassTemplateId.
*/
@java.lang.Override
public java.lang.String getAfterRedeemPassTemplateId() {
java.lang.Object ref = afterRedeemPassTemplateId_;
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();
afterRedeemPassTemplateId_ = s;
return s;
}
}
/**
*
* Optional pass template ID that coupons will use when switched to redeemed state.
*
*
* string afterRedeemPassTemplateId = 11;
* @return The bytes for afterRedeemPassTemplateId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAfterRedeemPassTemplateIdBytes() {
java.lang.Object ref = afterRedeemPassTemplateId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
afterRedeemPassTemplateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUOTA_FIELD_NUMBER = 12;
private com.passkit.grpc.Billing.Quota quota_;
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
* @return Whether the quota field is set.
*/
@java.lang.Override
public boolean hasQuota() {
return quota_ != null;
}
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
* @return The quota.
*/
@java.lang.Override
public com.passkit.grpc.Billing.Quota getQuota() {
return quota_ == null ? com.passkit.grpc.Billing.Quota.getDefaultInstance() : quota_;
}
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
*/
@java.lang.Override
public com.passkit.grpc.Billing.QuotaOrBuilder getQuotaOrBuilder() {
return getQuota();
}
public static final int COUPONEXPIRYSETTINGS_FIELD_NUMBER = 13;
private com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings couponExpirySettings_;
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
* @return Whether the couponExpirySettings field is set.
*/
@java.lang.Override
public boolean hasCouponExpirySettings() {
return couponExpirySettings_ != null;
}
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
* @return The couponExpirySettings.
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings getCouponExpirySettings() {
return couponExpirySettings_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.getDefaultInstance() : couponExpirySettings_;
}
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettingsOrBuilder getCouponExpirySettingsOrBuilder() {
return getCouponExpirySettings();
}
public static final int REDEMPTIONSETTINGS_FIELD_NUMBER = 14;
private com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings redemptionSettings_;
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
* @return Whether the redemptionSettings field is set.
*/
@java.lang.Override
public boolean hasRedemptionSettings() {
return redemptionSettings_ != null;
}
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
* @return The redemptionSettings.
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings getRedemptionSettings() {
return redemptionSettings_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.getDefaultInstance() : redemptionSettings_;
}
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettingsOrBuilder getRedemptionSettingsOrBuilder() {
return getRedemptionSettings();
}
public static final int ISSUESTARTDATE_FIELD_NUMBER = 15;
private com.google.protobuf.Timestamp issueStartDate_;
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
* @return Whether the issueStartDate field is set.
*/
@java.lang.Override
public boolean hasIssueStartDate() {
return issueStartDate_ != null;
}
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
* @return The issueStartDate.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getIssueStartDate() {
return issueStartDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : issueStartDate_;
}
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getIssueStartDateOrBuilder() {
return getIssueStartDate();
}
public static final int ISSUEENDDATE_FIELD_NUMBER = 16;
private com.google.protobuf.Timestamp issueEndDate_;
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
* @return Whether the issueEndDate field is set.
*/
@java.lang.Override
public boolean hasIssueEndDate() {
return issueEndDate_ != null;
}
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
* @return The issueEndDate.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getIssueEndDate() {
return issueEndDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : issueEndDate_;
}
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getIssueEndDateOrBuilder() {
return getIssueEndDate();
}
public static final int CREATED_FIELD_NUMBER = 17;
private com.google.protobuf.Timestamp created_;
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
* @return Whether the created field is set.
*/
@java.lang.Override
public boolean hasCreated() {
return created_ != null;
}
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
* @return The created.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreated() {
return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;
}
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() {
return getCreated();
}
public static final int UPDATED_FIELD_NUMBER = 18;
private com.google.protobuf.Timestamp updated_;
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
* @return Whether the updated field is set.
*/
@java.lang.Override
public boolean hasUpdated() {
return updated_ != null;
}
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
* @return The updated.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdated() {
return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
}
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder() {
return getUpdated();
}
public static final int CAMPAIGNID_FIELD_NUMBER = 19;
private volatile java.lang.Object campaignId_;
/**
*
* The campaign id that the offer belongs to (1 campaign can have multiple offers). This field cannot be changed once an offer is linked to a campaign.
*
*
* string campaignId = 19;
* @return The campaignId.
*/
@java.lang.Override
public java.lang.String getCampaignId() {
java.lang.Object ref = campaignId_;
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();
campaignId_ = s;
return s;
}
}
/**
*
* The campaign id that the offer belongs to (1 campaign can have multiple offers). This field cannot be changed once an offer is linked to a campaign.
*
*
* string campaignId = 19;
* @return The bytes for campaignId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCampaignIdBytes() {
java.lang.Object ref = campaignId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaignId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISTRIBUTIONSETTINGS_FIELD_NUMBER = 20;
private com.passkit.grpc.Distribution.DistributionSettings distributionSettings_;
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
* @return Whether the distributionSettings field is set.
*/
@java.lang.Override
public boolean hasDistributionSettings() {
return distributionSettings_ != null;
}
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
* @return The distributionSettings.
*/
@java.lang.Override
public com.passkit.grpc.Distribution.DistributionSettings getDistributionSettings() {
return distributionSettings_ == null ? com.passkit.grpc.Distribution.DistributionSettings.getDefaultInstance() : distributionSettings_;
}
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
*/
@java.lang.Override
public com.passkit.grpc.Distribution.DistributionSettingsOrBuilder getDistributionSettingsOrBuilder() {
return getDistributionSettings();
}
public static final int SHORTCODE_FIELD_NUMBER = 21;
private volatile java.lang.Object shortCode_;
/**
*
* The offer shortcode generated by the system. If the campaign is public, then this shortcode can be used to generate the coupon-create URL.
*
*
* string shortCode = 21;
* @return The shortCode.
*/
@java.lang.Override
public java.lang.String getShortCode() {
java.lang.Object ref = shortCode_;
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();
shortCode_ = s;
return s;
}
}
/**
*
* The offer shortcode generated by the system. If the campaign is public, then this shortcode can be used to generate the coupon-create URL.
*
*
* string shortCode = 21;
* @return The bytes for shortCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getShortCodeBytes() {
java.lang.Object ref = shortCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shortCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IANATIMEZONE_FIELD_NUMBER = 22;
private volatile java.lang.Object ianaTimezone_;
/**
*
* The offer timezone.
*
*
* string ianaTimezone = 22;
* @return The ianaTimezone.
*/
@java.lang.Override
public java.lang.String getIanaTimezone() {
java.lang.Object ref = ianaTimezone_;
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();
ianaTimezone_ = s;
return s;
}
}
/**
*
* The offer timezone.
*
*
* string ianaTimezone = 22;
* @return The bytes for ianaTimezone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIanaTimezoneBytes() {
java.lang.Object ref = ianaTimezone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ianaTimezone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISABLED_FIELD_NUMBER = 23;
private boolean disabled_;
/**
*
* Can be used to temporarily disable the coupon (i.e. if you ran out of your promotion item, you can temporarily disable all live coupons, and activate them again later on when your item is in stock again).
*
*
* bool disabled = 23;
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
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 (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!getOfferTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, offerTitle_);
}
if (localizedOfferTitle_ != null) {
output.writeMessage(3, getLocalizedOfferTitle());
}
if (!getOfferShortTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, offerShortTitle_);
}
if (localizedOfferShortTitle_ != null) {
output.writeMessage(5, getLocalizedOfferShortTitle());
}
if (!getOfferDetailsBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, offerDetails_);
}
if (localizedOfferDetails_ != null) {
output.writeMessage(7, getLocalizedOfferDetails());
}
if (!getOfferFinePrintBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, offerFinePrint_);
}
if (localizedOfferFinePrint_ != null) {
output.writeMessage(9, getLocalizedOfferFinePrint());
}
if (!getBeforeRedeemPassTemplateIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, beforeRedeemPassTemplateId_);
}
if (!getAfterRedeemPassTemplateIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, afterRedeemPassTemplateId_);
}
if (quota_ != null) {
output.writeMessage(12, getQuota());
}
if (couponExpirySettings_ != null) {
output.writeMessage(13, getCouponExpirySettings());
}
if (redemptionSettings_ != null) {
output.writeMessage(14, getRedemptionSettings());
}
if (issueStartDate_ != null) {
output.writeMessage(15, getIssueStartDate());
}
if (issueEndDate_ != null) {
output.writeMessage(16, getIssueEndDate());
}
if (created_ != null) {
output.writeMessage(17, getCreated());
}
if (updated_ != null) {
output.writeMessage(18, getUpdated());
}
if (!getCampaignIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, campaignId_);
}
if (distributionSettings_ != null) {
output.writeMessage(20, getDistributionSettings());
}
if (!getShortCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 21, shortCode_);
}
if (!getIanaTimezoneBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, ianaTimezone_);
}
if (disabled_ != false) {
output.writeBool(23, disabled_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!getOfferTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, offerTitle_);
}
if (localizedOfferTitle_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLocalizedOfferTitle());
}
if (!getOfferShortTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, offerShortTitle_);
}
if (localizedOfferShortTitle_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getLocalizedOfferShortTitle());
}
if (!getOfferDetailsBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, offerDetails_);
}
if (localizedOfferDetails_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getLocalizedOfferDetails());
}
if (!getOfferFinePrintBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, offerFinePrint_);
}
if (localizedOfferFinePrint_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getLocalizedOfferFinePrint());
}
if (!getBeforeRedeemPassTemplateIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, beforeRedeemPassTemplateId_);
}
if (!getAfterRedeemPassTemplateIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, afterRedeemPassTemplateId_);
}
if (quota_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getQuota());
}
if (couponExpirySettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getCouponExpirySettings());
}
if (redemptionSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getRedemptionSettings());
}
if (issueStartDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getIssueStartDate());
}
if (issueEndDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getIssueEndDate());
}
if (created_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getCreated());
}
if (updated_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getUpdated());
}
if (!getCampaignIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, campaignId_);
}
if (distributionSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getDistributionSettings());
}
if (!getShortCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, shortCode_);
}
if (!getIanaTimezoneBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, ianaTimezone_);
}
if (disabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(23, disabled_);
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.CouponOffer)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer other = (com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getOfferTitle()
.equals(other.getOfferTitle())) return false;
if (hasLocalizedOfferTitle() != other.hasLocalizedOfferTitle()) return false;
if (hasLocalizedOfferTitle()) {
if (!getLocalizedOfferTitle()
.equals(other.getLocalizedOfferTitle())) return false;
}
if (!getOfferShortTitle()
.equals(other.getOfferShortTitle())) return false;
if (hasLocalizedOfferShortTitle() != other.hasLocalizedOfferShortTitle()) return false;
if (hasLocalizedOfferShortTitle()) {
if (!getLocalizedOfferShortTitle()
.equals(other.getLocalizedOfferShortTitle())) return false;
}
if (!getOfferDetails()
.equals(other.getOfferDetails())) return false;
if (hasLocalizedOfferDetails() != other.hasLocalizedOfferDetails()) return false;
if (hasLocalizedOfferDetails()) {
if (!getLocalizedOfferDetails()
.equals(other.getLocalizedOfferDetails())) return false;
}
if (!getOfferFinePrint()
.equals(other.getOfferFinePrint())) return false;
if (hasLocalizedOfferFinePrint() != other.hasLocalizedOfferFinePrint()) return false;
if (hasLocalizedOfferFinePrint()) {
if (!getLocalizedOfferFinePrint()
.equals(other.getLocalizedOfferFinePrint())) return false;
}
if (!getBeforeRedeemPassTemplateId()
.equals(other.getBeforeRedeemPassTemplateId())) return false;
if (!getAfterRedeemPassTemplateId()
.equals(other.getAfterRedeemPassTemplateId())) return false;
if (hasQuota() != other.hasQuota()) return false;
if (hasQuota()) {
if (!getQuota()
.equals(other.getQuota())) return false;
}
if (hasCouponExpirySettings() != other.hasCouponExpirySettings()) return false;
if (hasCouponExpirySettings()) {
if (!getCouponExpirySettings()
.equals(other.getCouponExpirySettings())) return false;
}
if (hasRedemptionSettings() != other.hasRedemptionSettings()) return false;
if (hasRedemptionSettings()) {
if (!getRedemptionSettings()
.equals(other.getRedemptionSettings())) return false;
}
if (hasIssueStartDate() != other.hasIssueStartDate()) return false;
if (hasIssueStartDate()) {
if (!getIssueStartDate()
.equals(other.getIssueStartDate())) return false;
}
if (hasIssueEndDate() != other.hasIssueEndDate()) return false;
if (hasIssueEndDate()) {
if (!getIssueEndDate()
.equals(other.getIssueEndDate())) return false;
}
if (hasCreated() != other.hasCreated()) return false;
if (hasCreated()) {
if (!getCreated()
.equals(other.getCreated())) return false;
}
if (hasUpdated() != other.hasUpdated()) return false;
if (hasUpdated()) {
if (!getUpdated()
.equals(other.getUpdated())) return false;
}
if (!getCampaignId()
.equals(other.getCampaignId())) return false;
if (hasDistributionSettings() != other.hasDistributionSettings()) return false;
if (hasDistributionSettings()) {
if (!getDistributionSettings()
.equals(other.getDistributionSettings())) return false;
}
if (!getShortCode()
.equals(other.getShortCode())) return false;
if (!getIanaTimezone()
.equals(other.getIanaTimezone())) return false;
if (getDisabled()
!= other.getDisabled()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + OFFERTITLE_FIELD_NUMBER;
hash = (53 * hash) + getOfferTitle().hashCode();
if (hasLocalizedOfferTitle()) {
hash = (37 * hash) + LOCALIZEDOFFERTITLE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedOfferTitle().hashCode();
}
hash = (37 * hash) + OFFERSHORTTITLE_FIELD_NUMBER;
hash = (53 * hash) + getOfferShortTitle().hashCode();
if (hasLocalizedOfferShortTitle()) {
hash = (37 * hash) + LOCALIZEDOFFERSHORTTITLE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedOfferShortTitle().hashCode();
}
hash = (37 * hash) + OFFERDETAILS_FIELD_NUMBER;
hash = (53 * hash) + getOfferDetails().hashCode();
if (hasLocalizedOfferDetails()) {
hash = (37 * hash) + LOCALIZEDOFFERDETAILS_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedOfferDetails().hashCode();
}
hash = (37 * hash) + OFFERFINEPRINT_FIELD_NUMBER;
hash = (53 * hash) + getOfferFinePrint().hashCode();
if (hasLocalizedOfferFinePrint()) {
hash = (37 * hash) + LOCALIZEDOFFERFINEPRINT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedOfferFinePrint().hashCode();
}
hash = (37 * hash) + BEFOREREDEEMPASSTEMPLATEID_FIELD_NUMBER;
hash = (53 * hash) + getBeforeRedeemPassTemplateId().hashCode();
hash = (37 * hash) + AFTERREDEEMPASSTEMPLATEID_FIELD_NUMBER;
hash = (53 * hash) + getAfterRedeemPassTemplateId().hashCode();
if (hasQuota()) {
hash = (37 * hash) + QUOTA_FIELD_NUMBER;
hash = (53 * hash) + getQuota().hashCode();
}
if (hasCouponExpirySettings()) {
hash = (37 * hash) + COUPONEXPIRYSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getCouponExpirySettings().hashCode();
}
if (hasRedemptionSettings()) {
hash = (37 * hash) + REDEMPTIONSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getRedemptionSettings().hashCode();
}
if (hasIssueStartDate()) {
hash = (37 * hash) + ISSUESTARTDATE_FIELD_NUMBER;
hash = (53 * hash) + getIssueStartDate().hashCode();
}
if (hasIssueEndDate()) {
hash = (37 * hash) + ISSUEENDDATE_FIELD_NUMBER;
hash = (53 * hash) + getIssueEndDate().hashCode();
}
if (hasCreated()) {
hash = (37 * hash) + CREATED_FIELD_NUMBER;
hash = (53 * hash) + getCreated().hashCode();
}
if (hasUpdated()) {
hash = (37 * hash) + UPDATED_FIELD_NUMBER;
hash = (53 * hash) + getUpdated().hashCode();
}
hash = (37 * hash) + CAMPAIGNID_FIELD_NUMBER;
hash = (53 * hash) + getCampaignId().hashCode();
if (hasDistributionSettings()) {
hash = (37 * hash) + DISTRIBUTIONSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getDistributionSettings().hashCode();
}
hash = (37 * hash) + SHORTCODE_FIELD_NUMBER;
hash = (53 * hash) + getShortCode().hashCode();
hash = (37 * hash) + IANATIMEZONE_FIELD_NUMBER;
hash = (53 * hash) + getIanaTimezone().hashCode();
hash = (37 * hash) + DISABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisabled());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer 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.passkit.grpc.SingleUseCoupons.Offer.CouponOffer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer 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.passkit.grpc.SingleUseCoupons.Offer.CouponOffer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer 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.passkit.grpc.SingleUseCoupons.Offer.CouponOffer 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;
}
/**
*
* The Coupon Offer Details.
*
*
* Protobuf type {@code single_use_coupons.CouponOffer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.CouponOffer)
com.passkit.grpc.SingleUseCoupons.Offer.CouponOfferOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.class, com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
offerTitle_ = "";
if (localizedOfferTitleBuilder_ == null) {
localizedOfferTitle_ = null;
} else {
localizedOfferTitle_ = null;
localizedOfferTitleBuilder_ = null;
}
offerShortTitle_ = "";
if (localizedOfferShortTitleBuilder_ == null) {
localizedOfferShortTitle_ = null;
} else {
localizedOfferShortTitle_ = null;
localizedOfferShortTitleBuilder_ = null;
}
offerDetails_ = "";
if (localizedOfferDetailsBuilder_ == null) {
localizedOfferDetails_ = null;
} else {
localizedOfferDetails_ = null;
localizedOfferDetailsBuilder_ = null;
}
offerFinePrint_ = "";
if (localizedOfferFinePrintBuilder_ == null) {
localizedOfferFinePrint_ = null;
} else {
localizedOfferFinePrint_ = null;
localizedOfferFinePrintBuilder_ = null;
}
beforeRedeemPassTemplateId_ = "";
afterRedeemPassTemplateId_ = "";
if (quotaBuilder_ == null) {
quota_ = null;
} else {
quota_ = null;
quotaBuilder_ = null;
}
if (couponExpirySettingsBuilder_ == null) {
couponExpirySettings_ = null;
} else {
couponExpirySettings_ = null;
couponExpirySettingsBuilder_ = null;
}
if (redemptionSettingsBuilder_ == null) {
redemptionSettings_ = null;
} else {
redemptionSettings_ = null;
redemptionSettingsBuilder_ = null;
}
if (issueStartDateBuilder_ == null) {
issueStartDate_ = null;
} else {
issueStartDate_ = null;
issueStartDateBuilder_ = null;
}
if (issueEndDateBuilder_ == null) {
issueEndDate_ = null;
} else {
issueEndDate_ = null;
issueEndDateBuilder_ = null;
}
if (createdBuilder_ == null) {
created_ = null;
} else {
created_ = null;
createdBuilder_ = null;
}
if (updatedBuilder_ == null) {
updated_ = null;
} else {
updated_ = null;
updatedBuilder_ = null;
}
campaignId_ = "";
if (distributionSettingsBuilder_ == null) {
distributionSettings_ = null;
} else {
distributionSettings_ = null;
distributionSettingsBuilder_ = null;
}
shortCode_ = "";
ianaTimezone_ = "";
disabled_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffer_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer build() {
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer result = new com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer(this);
result.id_ = id_;
result.offerTitle_ = offerTitle_;
if (localizedOfferTitleBuilder_ == null) {
result.localizedOfferTitle_ = localizedOfferTitle_;
} else {
result.localizedOfferTitle_ = localizedOfferTitleBuilder_.build();
}
result.offerShortTitle_ = offerShortTitle_;
if (localizedOfferShortTitleBuilder_ == null) {
result.localizedOfferShortTitle_ = localizedOfferShortTitle_;
} else {
result.localizedOfferShortTitle_ = localizedOfferShortTitleBuilder_.build();
}
result.offerDetails_ = offerDetails_;
if (localizedOfferDetailsBuilder_ == null) {
result.localizedOfferDetails_ = localizedOfferDetails_;
} else {
result.localizedOfferDetails_ = localizedOfferDetailsBuilder_.build();
}
result.offerFinePrint_ = offerFinePrint_;
if (localizedOfferFinePrintBuilder_ == null) {
result.localizedOfferFinePrint_ = localizedOfferFinePrint_;
} else {
result.localizedOfferFinePrint_ = localizedOfferFinePrintBuilder_.build();
}
result.beforeRedeemPassTemplateId_ = beforeRedeemPassTemplateId_;
result.afterRedeemPassTemplateId_ = afterRedeemPassTemplateId_;
if (quotaBuilder_ == null) {
result.quota_ = quota_;
} else {
result.quota_ = quotaBuilder_.build();
}
if (couponExpirySettingsBuilder_ == null) {
result.couponExpirySettings_ = couponExpirySettings_;
} else {
result.couponExpirySettings_ = couponExpirySettingsBuilder_.build();
}
if (redemptionSettingsBuilder_ == null) {
result.redemptionSettings_ = redemptionSettings_;
} else {
result.redemptionSettings_ = redemptionSettingsBuilder_.build();
}
if (issueStartDateBuilder_ == null) {
result.issueStartDate_ = issueStartDate_;
} else {
result.issueStartDate_ = issueStartDateBuilder_.build();
}
if (issueEndDateBuilder_ == null) {
result.issueEndDate_ = issueEndDate_;
} else {
result.issueEndDate_ = issueEndDateBuilder_.build();
}
if (createdBuilder_ == null) {
result.created_ = created_;
} else {
result.created_ = createdBuilder_.build();
}
if (updatedBuilder_ == null) {
result.updated_ = updated_;
} else {
result.updated_ = updatedBuilder_.build();
}
result.campaignId_ = campaignId_;
if (distributionSettingsBuilder_ == null) {
result.distributionSettings_ = distributionSettings_;
} else {
result.distributionSettings_ = distributionSettingsBuilder_.build();
}
result.shortCode_ = shortCode_;
result.ianaTimezone_ = ianaTimezone_;
result.disabled_ = disabled_;
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.CouponOffer) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getOfferTitle().isEmpty()) {
offerTitle_ = other.offerTitle_;
onChanged();
}
if (other.hasLocalizedOfferTitle()) {
mergeLocalizedOfferTitle(other.getLocalizedOfferTitle());
}
if (!other.getOfferShortTitle().isEmpty()) {
offerShortTitle_ = other.offerShortTitle_;
onChanged();
}
if (other.hasLocalizedOfferShortTitle()) {
mergeLocalizedOfferShortTitle(other.getLocalizedOfferShortTitle());
}
if (!other.getOfferDetails().isEmpty()) {
offerDetails_ = other.offerDetails_;
onChanged();
}
if (other.hasLocalizedOfferDetails()) {
mergeLocalizedOfferDetails(other.getLocalizedOfferDetails());
}
if (!other.getOfferFinePrint().isEmpty()) {
offerFinePrint_ = other.offerFinePrint_;
onChanged();
}
if (other.hasLocalizedOfferFinePrint()) {
mergeLocalizedOfferFinePrint(other.getLocalizedOfferFinePrint());
}
if (!other.getBeforeRedeemPassTemplateId().isEmpty()) {
beforeRedeemPassTemplateId_ = other.beforeRedeemPassTemplateId_;
onChanged();
}
if (!other.getAfterRedeemPassTemplateId().isEmpty()) {
afterRedeemPassTemplateId_ = other.afterRedeemPassTemplateId_;
onChanged();
}
if (other.hasQuota()) {
mergeQuota(other.getQuota());
}
if (other.hasCouponExpirySettings()) {
mergeCouponExpirySettings(other.getCouponExpirySettings());
}
if (other.hasRedemptionSettings()) {
mergeRedemptionSettings(other.getRedemptionSettings());
}
if (other.hasIssueStartDate()) {
mergeIssueStartDate(other.getIssueStartDate());
}
if (other.hasIssueEndDate()) {
mergeIssueEndDate(other.getIssueEndDate());
}
if (other.hasCreated()) {
mergeCreated(other.getCreated());
}
if (other.hasUpdated()) {
mergeUpdated(other.getUpdated());
}
if (!other.getCampaignId().isEmpty()) {
campaignId_ = other.campaignId_;
onChanged();
}
if (other.hasDistributionSettings()) {
mergeDistributionSettings(other.getDistributionSettings());
}
if (!other.getShortCode().isEmpty()) {
shortCode_ = other.shortCode_;
onChanged();
}
if (!other.getIanaTimezone().isEmpty()) {
ianaTimezone_ = other.ianaTimezone_;
onChanged();
}
if (other.getDisabled() != false) {
setDisabled(other.getDisabled());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* PassKit generated offer id (22 characters).
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* PassKit generated offer id (22 characters).
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* PassKit generated offer id (22 characters).
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* PassKit generated offer id (22 characters).
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* PassKit generated offer id (22 characters).
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object offerTitle_ = "";
/**
*
* The offer title; will be shown on the enrolment page.
*
*
* string offerTitle = 2;
* @return The offerTitle.
*/
public java.lang.String getOfferTitle() {
java.lang.Object ref = offerTitle_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offerTitle_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The offer title; will be shown on the enrolment page.
*
*
* string offerTitle = 2;
* @return The bytes for offerTitle.
*/
public com.google.protobuf.ByteString
getOfferTitleBytes() {
java.lang.Object ref = offerTitle_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offerTitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The offer title; will be shown on the enrolment page.
*
*
* string offerTitle = 2;
* @param value The offerTitle to set.
* @return This builder for chaining.
*/
public Builder setOfferTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
offerTitle_ = value;
onChanged();
return this;
}
/**
*
* The offer title; will be shown on the enrolment page.
*
*
* string offerTitle = 2;
* @return This builder for chaining.
*/
public Builder clearOfferTitle() {
offerTitle_ = getDefaultInstance().getOfferTitle();
onChanged();
return this;
}
/**
*
* The offer title; will be shown on the enrolment page.
*
*
* string offerTitle = 2;
* @param value The bytes for offerTitle to set.
* @return This builder for chaining.
*/
public Builder setOfferTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
offerTitle_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedOfferTitle_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedOfferTitleBuilder_;
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
* @return Whether the localizedOfferTitle field is set.
*/
public boolean hasLocalizedOfferTitle() {
return localizedOfferTitleBuilder_ != null || localizedOfferTitle_ != null;
}
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
* @return The localizedOfferTitle.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedOfferTitle() {
if (localizedOfferTitleBuilder_ == null) {
return localizedOfferTitle_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferTitle_;
} else {
return localizedOfferTitleBuilder_.getMessage();
}
}
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
*/
public Builder setLocalizedOfferTitle(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOfferTitleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedOfferTitle_ = value;
onChanged();
} else {
localizedOfferTitleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
*/
public Builder setLocalizedOfferTitle(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedOfferTitleBuilder_ == null) {
localizedOfferTitle_ = builderForValue.build();
onChanged();
} else {
localizedOfferTitleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
*/
public Builder mergeLocalizedOfferTitle(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOfferTitleBuilder_ == null) {
if (localizedOfferTitle_ != null) {
localizedOfferTitle_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedOfferTitle_).mergeFrom(value).buildPartial();
} else {
localizedOfferTitle_ = value;
}
onChanged();
} else {
localizedOfferTitleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
*/
public Builder clearLocalizedOfferTitle() {
if (localizedOfferTitleBuilder_ == null) {
localizedOfferTitle_ = null;
onChanged();
} else {
localizedOfferTitle_ = null;
localizedOfferTitleBuilder_ = null;
}
return this;
}
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedOfferTitleBuilder() {
onChanged();
return getLocalizedOfferTitleFieldBuilder().getBuilder();
}
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferTitleOrBuilder() {
if (localizedOfferTitleBuilder_ != null) {
return localizedOfferTitleBuilder_.getMessageOrBuilder();
} else {
return localizedOfferTitle_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferTitle_;
}
}
/**
*
* Localized offer title.
*
*
* .io.LocalizedString localizedOfferTitle = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedOfferTitleFieldBuilder() {
if (localizedOfferTitleBuilder_ == null) {
localizedOfferTitleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedOfferTitle(),
getParentForChildren(),
isClean());
localizedOfferTitle_ = null;
}
return localizedOfferTitleBuilder_;
}
private java.lang.Object offerShortTitle_ = "";
/**
*
* The offer short title.
*
*
* string offerShortTitle = 4;
* @return The offerShortTitle.
*/
public java.lang.String getOfferShortTitle() {
java.lang.Object ref = offerShortTitle_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offerShortTitle_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The offer short title.
*
*
* string offerShortTitle = 4;
* @return The bytes for offerShortTitle.
*/
public com.google.protobuf.ByteString
getOfferShortTitleBytes() {
java.lang.Object ref = offerShortTitle_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offerShortTitle_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The offer short title.
*
*
* string offerShortTitle = 4;
* @param value The offerShortTitle to set.
* @return This builder for chaining.
*/
public Builder setOfferShortTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
offerShortTitle_ = value;
onChanged();
return this;
}
/**
*
* The offer short title.
*
*
* string offerShortTitle = 4;
* @return This builder for chaining.
*/
public Builder clearOfferShortTitle() {
offerShortTitle_ = getDefaultInstance().getOfferShortTitle();
onChanged();
return this;
}
/**
*
* The offer short title.
*
*
* string offerShortTitle = 4;
* @param value The bytes for offerShortTitle to set.
* @return This builder for chaining.
*/
public Builder setOfferShortTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
offerShortTitle_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedOfferShortTitle_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedOfferShortTitleBuilder_;
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
* @return Whether the localizedOfferShortTitle field is set.
*/
public boolean hasLocalizedOfferShortTitle() {
return localizedOfferShortTitleBuilder_ != null || localizedOfferShortTitle_ != null;
}
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
* @return The localizedOfferShortTitle.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedOfferShortTitle() {
if (localizedOfferShortTitleBuilder_ == null) {
return localizedOfferShortTitle_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferShortTitle_;
} else {
return localizedOfferShortTitleBuilder_.getMessage();
}
}
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
*/
public Builder setLocalizedOfferShortTitle(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOfferShortTitleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedOfferShortTitle_ = value;
onChanged();
} else {
localizedOfferShortTitleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
*/
public Builder setLocalizedOfferShortTitle(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedOfferShortTitleBuilder_ == null) {
localizedOfferShortTitle_ = builderForValue.build();
onChanged();
} else {
localizedOfferShortTitleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
*/
public Builder mergeLocalizedOfferShortTitle(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOfferShortTitleBuilder_ == null) {
if (localizedOfferShortTitle_ != null) {
localizedOfferShortTitle_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedOfferShortTitle_).mergeFrom(value).buildPartial();
} else {
localizedOfferShortTitle_ = value;
}
onChanged();
} else {
localizedOfferShortTitleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
*/
public Builder clearLocalizedOfferShortTitle() {
if (localizedOfferShortTitleBuilder_ == null) {
localizedOfferShortTitle_ = null;
onChanged();
} else {
localizedOfferShortTitle_ = null;
localizedOfferShortTitleBuilder_ = null;
}
return this;
}
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedOfferShortTitleBuilder() {
onChanged();
return getLocalizedOfferShortTitleFieldBuilder().getBuilder();
}
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferShortTitleOrBuilder() {
if (localizedOfferShortTitleBuilder_ != null) {
return localizedOfferShortTitleBuilder_.getMessageOrBuilder();
} else {
return localizedOfferShortTitle_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferShortTitle_;
}
}
/**
*
* Localized offer short title.
*
*
* .io.LocalizedString localizedOfferShortTitle = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedOfferShortTitleFieldBuilder() {
if (localizedOfferShortTitleBuilder_ == null) {
localizedOfferShortTitleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedOfferShortTitle(),
getParentForChildren(),
isClean());
localizedOfferShortTitle_ = null;
}
return localizedOfferShortTitleBuilder_;
}
private java.lang.Object offerDetails_ = "";
/**
*
* The offer details; will be shown on the enrolment page.
*
*
* string offerDetails = 6;
* @return The offerDetails.
*/
public java.lang.String getOfferDetails() {
java.lang.Object ref = offerDetails_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offerDetails_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The offer details; will be shown on the enrolment page.
*
*
* string offerDetails = 6;
* @return The bytes for offerDetails.
*/
public com.google.protobuf.ByteString
getOfferDetailsBytes() {
java.lang.Object ref = offerDetails_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offerDetails_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The offer details; will be shown on the enrolment page.
*
*
* string offerDetails = 6;
* @param value The offerDetails to set.
* @return This builder for chaining.
*/
public Builder setOfferDetails(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
offerDetails_ = value;
onChanged();
return this;
}
/**
*
* The offer details; will be shown on the enrolment page.
*
*
* string offerDetails = 6;
* @return This builder for chaining.
*/
public Builder clearOfferDetails() {
offerDetails_ = getDefaultInstance().getOfferDetails();
onChanged();
return this;
}
/**
*
* The offer details; will be shown on the enrolment page.
*
*
* string offerDetails = 6;
* @param value The bytes for offerDetails to set.
* @return This builder for chaining.
*/
public Builder setOfferDetailsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
offerDetails_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedOfferDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedOfferDetailsBuilder_;
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
* @return Whether the localizedOfferDetails field is set.
*/
public boolean hasLocalizedOfferDetails() {
return localizedOfferDetailsBuilder_ != null || localizedOfferDetails_ != null;
}
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
* @return The localizedOfferDetails.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedOfferDetails() {
if (localizedOfferDetailsBuilder_ == null) {
return localizedOfferDetails_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferDetails_;
} else {
return localizedOfferDetailsBuilder_.getMessage();
}
}
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
*/
public Builder setLocalizedOfferDetails(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOfferDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedOfferDetails_ = value;
onChanged();
} else {
localizedOfferDetailsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
*/
public Builder setLocalizedOfferDetails(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedOfferDetailsBuilder_ == null) {
localizedOfferDetails_ = builderForValue.build();
onChanged();
} else {
localizedOfferDetailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
*/
public Builder mergeLocalizedOfferDetails(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOfferDetailsBuilder_ == null) {
if (localizedOfferDetails_ != null) {
localizedOfferDetails_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedOfferDetails_).mergeFrom(value).buildPartial();
} else {
localizedOfferDetails_ = value;
}
onChanged();
} else {
localizedOfferDetailsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
*/
public Builder clearLocalizedOfferDetails() {
if (localizedOfferDetailsBuilder_ == null) {
localizedOfferDetails_ = null;
onChanged();
} else {
localizedOfferDetails_ = null;
localizedOfferDetailsBuilder_ = null;
}
return this;
}
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedOfferDetailsBuilder() {
onChanged();
return getLocalizedOfferDetailsFieldBuilder().getBuilder();
}
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferDetailsOrBuilder() {
if (localizedOfferDetailsBuilder_ != null) {
return localizedOfferDetailsBuilder_.getMessageOrBuilder();
} else {
return localizedOfferDetails_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferDetails_;
}
}
/**
*
* Localized offer details.
*
*
* .io.LocalizedString localizedOfferDetails = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedOfferDetailsFieldBuilder() {
if (localizedOfferDetailsBuilder_ == null) {
localizedOfferDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedOfferDetails(),
getParentForChildren(),
isClean());
localizedOfferDetails_ = null;
}
return localizedOfferDetailsBuilder_;
}
private java.lang.Object offerFinePrint_ = "";
/**
*
* The offer fine print.
*
*
* string offerFinePrint = 8;
* @return The offerFinePrint.
*/
public java.lang.String getOfferFinePrint() {
java.lang.Object ref = offerFinePrint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offerFinePrint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The offer fine print.
*
*
* string offerFinePrint = 8;
* @return The bytes for offerFinePrint.
*/
public com.google.protobuf.ByteString
getOfferFinePrintBytes() {
java.lang.Object ref = offerFinePrint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offerFinePrint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The offer fine print.
*
*
* string offerFinePrint = 8;
* @param value The offerFinePrint to set.
* @return This builder for chaining.
*/
public Builder setOfferFinePrint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
offerFinePrint_ = value;
onChanged();
return this;
}
/**
*
* The offer fine print.
*
*
* string offerFinePrint = 8;
* @return This builder for chaining.
*/
public Builder clearOfferFinePrint() {
offerFinePrint_ = getDefaultInstance().getOfferFinePrint();
onChanged();
return this;
}
/**
*
* The offer fine print.
*
*
* string offerFinePrint = 8;
* @param value The bytes for offerFinePrint to set.
* @return This builder for chaining.
*/
public Builder setOfferFinePrintBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
offerFinePrint_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedOfferFinePrint_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedOfferFinePrintBuilder_;
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
* @return Whether the localizedOfferFinePrint field is set.
*/
public boolean hasLocalizedOfferFinePrint() {
return localizedOfferFinePrintBuilder_ != null || localizedOfferFinePrint_ != null;
}
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
* @return The localizedOfferFinePrint.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedOfferFinePrint() {
if (localizedOfferFinePrintBuilder_ == null) {
return localizedOfferFinePrint_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferFinePrint_;
} else {
return localizedOfferFinePrintBuilder_.getMessage();
}
}
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
*/
public Builder setLocalizedOfferFinePrint(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOfferFinePrintBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedOfferFinePrint_ = value;
onChanged();
} else {
localizedOfferFinePrintBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
*/
public Builder setLocalizedOfferFinePrint(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedOfferFinePrintBuilder_ == null) {
localizedOfferFinePrint_ = builderForValue.build();
onChanged();
} else {
localizedOfferFinePrintBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
*/
public Builder mergeLocalizedOfferFinePrint(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOfferFinePrintBuilder_ == null) {
if (localizedOfferFinePrint_ != null) {
localizedOfferFinePrint_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedOfferFinePrint_).mergeFrom(value).buildPartial();
} else {
localizedOfferFinePrint_ = value;
}
onChanged();
} else {
localizedOfferFinePrintBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
*/
public Builder clearLocalizedOfferFinePrint() {
if (localizedOfferFinePrintBuilder_ == null) {
localizedOfferFinePrint_ = null;
onChanged();
} else {
localizedOfferFinePrint_ = null;
localizedOfferFinePrintBuilder_ = null;
}
return this;
}
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedOfferFinePrintBuilder() {
onChanged();
return getLocalizedOfferFinePrintFieldBuilder().getBuilder();
}
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferFinePrintOrBuilder() {
if (localizedOfferFinePrintBuilder_ != null) {
return localizedOfferFinePrintBuilder_.getMessageOrBuilder();
} else {
return localizedOfferFinePrint_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferFinePrint_;
}
}
/**
*
* Localized offer fine print.
*
*
* .io.LocalizedString localizedOfferFinePrint = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedOfferFinePrintFieldBuilder() {
if (localizedOfferFinePrintBuilder_ == null) {
localizedOfferFinePrintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedOfferFinePrint(),
getParentForChildren(),
isClean());
localizedOfferFinePrint_ = null;
}
return localizedOfferFinePrintBuilder_;
}
private java.lang.Object beforeRedeemPassTemplateId_ = "";
/**
*
* The pass template ID that coupons will use when in unredeemed state. All coupons for the offer are issued in unredeemed state.
*
*
* string beforeRedeemPassTemplateId = 10;
* @return The beforeRedeemPassTemplateId.
*/
public java.lang.String getBeforeRedeemPassTemplateId() {
java.lang.Object ref = beforeRedeemPassTemplateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
beforeRedeemPassTemplateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The pass template ID that coupons will use when in unredeemed state. All coupons for the offer are issued in unredeemed state.
*
*
* string beforeRedeemPassTemplateId = 10;
* @return The bytes for beforeRedeemPassTemplateId.
*/
public com.google.protobuf.ByteString
getBeforeRedeemPassTemplateIdBytes() {
java.lang.Object ref = beforeRedeemPassTemplateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
beforeRedeemPassTemplateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The pass template ID that coupons will use when in unredeemed state. All coupons for the offer are issued in unredeemed state.
*
*
* string beforeRedeemPassTemplateId = 10;
* @param value The beforeRedeemPassTemplateId to set.
* @return This builder for chaining.
*/
public Builder setBeforeRedeemPassTemplateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
beforeRedeemPassTemplateId_ = value;
onChanged();
return this;
}
/**
*
* The pass template ID that coupons will use when in unredeemed state. All coupons for the offer are issued in unredeemed state.
*
*
* string beforeRedeemPassTemplateId = 10;
* @return This builder for chaining.
*/
public Builder clearBeforeRedeemPassTemplateId() {
beforeRedeemPassTemplateId_ = getDefaultInstance().getBeforeRedeemPassTemplateId();
onChanged();
return this;
}
/**
*
* The pass template ID that coupons will use when in unredeemed state. All coupons for the offer are issued in unredeemed state.
*
*
* string beforeRedeemPassTemplateId = 10;
* @param value The bytes for beforeRedeemPassTemplateId to set.
* @return This builder for chaining.
*/
public Builder setBeforeRedeemPassTemplateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
beforeRedeemPassTemplateId_ = value;
onChanged();
return this;
}
private java.lang.Object afterRedeemPassTemplateId_ = "";
/**
*
* Optional pass template ID that coupons will use when switched to redeemed state.
*
*
* string afterRedeemPassTemplateId = 11;
* @return The afterRedeemPassTemplateId.
*/
public java.lang.String getAfterRedeemPassTemplateId() {
java.lang.Object ref = afterRedeemPassTemplateId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
afterRedeemPassTemplateId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional pass template ID that coupons will use when switched to redeemed state.
*
*
* string afterRedeemPassTemplateId = 11;
* @return The bytes for afterRedeemPassTemplateId.
*/
public com.google.protobuf.ByteString
getAfterRedeemPassTemplateIdBytes() {
java.lang.Object ref = afterRedeemPassTemplateId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
afterRedeemPassTemplateId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional pass template ID that coupons will use when switched to redeemed state.
*
*
* string afterRedeemPassTemplateId = 11;
* @param value The afterRedeemPassTemplateId to set.
* @return This builder for chaining.
*/
public Builder setAfterRedeemPassTemplateId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
afterRedeemPassTemplateId_ = value;
onChanged();
return this;
}
/**
*
* Optional pass template ID that coupons will use when switched to redeemed state.
*
*
* string afterRedeemPassTemplateId = 11;
* @return This builder for chaining.
*/
public Builder clearAfterRedeemPassTemplateId() {
afterRedeemPassTemplateId_ = getDefaultInstance().getAfterRedeemPassTemplateId();
onChanged();
return this;
}
/**
*
* Optional pass template ID that coupons will use when switched to redeemed state.
*
*
* string afterRedeemPassTemplateId = 11;
* @param value The bytes for afterRedeemPassTemplateId to set.
* @return This builder for chaining.
*/
public Builder setAfterRedeemPassTemplateIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
afterRedeemPassTemplateId_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Billing.Quota quota_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Billing.Quota, com.passkit.grpc.Billing.Quota.Builder, com.passkit.grpc.Billing.QuotaOrBuilder> quotaBuilder_;
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
* @return Whether the quota field is set.
*/
public boolean hasQuota() {
return quotaBuilder_ != null || quota_ != null;
}
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
* @return The quota.
*/
public com.passkit.grpc.Billing.Quota getQuota() {
if (quotaBuilder_ == null) {
return quota_ == null ? com.passkit.grpc.Billing.Quota.getDefaultInstance() : quota_;
} else {
return quotaBuilder_.getMessage();
}
}
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
*/
public Builder setQuota(com.passkit.grpc.Billing.Quota value) {
if (quotaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
quota_ = value;
onChanged();
} else {
quotaBuilder_.setMessage(value);
}
return this;
}
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
*/
public Builder setQuota(
com.passkit.grpc.Billing.Quota.Builder builderForValue) {
if (quotaBuilder_ == null) {
quota_ = builderForValue.build();
onChanged();
} else {
quotaBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
*/
public Builder mergeQuota(com.passkit.grpc.Billing.Quota value) {
if (quotaBuilder_ == null) {
if (quota_ != null) {
quota_ =
com.passkit.grpc.Billing.Quota.newBuilder(quota_).mergeFrom(value).buildPartial();
} else {
quota_ = value;
}
onChanged();
} else {
quotaBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
*/
public Builder clearQuota() {
if (quotaBuilder_ == null) {
quota_ = null;
onChanged();
} else {
quota_ = null;
quotaBuilder_ = null;
}
return this;
}
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
*/
public com.passkit.grpc.Billing.Quota.Builder getQuotaBuilder() {
onChanged();
return getQuotaFieldBuilder().getBuilder();
}
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
*/
public com.passkit.grpc.Billing.QuotaOrBuilder getQuotaOrBuilder() {
if (quotaBuilder_ != null) {
return quotaBuilder_.getMessageOrBuilder();
} else {
return quota_ == null ?
com.passkit.grpc.Billing.Quota.getDefaultInstance() : quota_;
}
}
/**
*
* The quota for the campaign. If set to 0, then it is unlimited. If the quota is reached no new coupons can be issued.
*
*
* .io.Quota quota = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Billing.Quota, com.passkit.grpc.Billing.Quota.Builder, com.passkit.grpc.Billing.QuotaOrBuilder>
getQuotaFieldBuilder() {
if (quotaBuilder_ == null) {
quotaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Billing.Quota, com.passkit.grpc.Billing.Quota.Builder, com.passkit.grpc.Billing.QuotaOrBuilder>(
getQuota(),
getParentForChildren(),
isClean());
quota_ = null;
}
return quotaBuilder_;
}
private com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings couponExpirySettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings, com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettingsOrBuilder> couponExpirySettingsBuilder_;
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
* @return Whether the couponExpirySettings field is set.
*/
public boolean hasCouponExpirySettings() {
return couponExpirySettingsBuilder_ != null || couponExpirySettings_ != null;
}
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
* @return The couponExpirySettings.
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings getCouponExpirySettings() {
if (couponExpirySettingsBuilder_ == null) {
return couponExpirySettings_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.getDefaultInstance() : couponExpirySettings_;
} else {
return couponExpirySettingsBuilder_.getMessage();
}
}
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
*/
public Builder setCouponExpirySettings(com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings value) {
if (couponExpirySettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
couponExpirySettings_ = value;
onChanged();
} else {
couponExpirySettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
*/
public Builder setCouponExpirySettings(
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.Builder builderForValue) {
if (couponExpirySettingsBuilder_ == null) {
couponExpirySettings_ = builderForValue.build();
onChanged();
} else {
couponExpirySettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
*/
public Builder mergeCouponExpirySettings(com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings value) {
if (couponExpirySettingsBuilder_ == null) {
if (couponExpirySettings_ != null) {
couponExpirySettings_ =
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.newBuilder(couponExpirySettings_).mergeFrom(value).buildPartial();
} else {
couponExpirySettings_ = value;
}
onChanged();
} else {
couponExpirySettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
*/
public Builder clearCouponExpirySettings() {
if (couponExpirySettingsBuilder_ == null) {
couponExpirySettings_ = null;
onChanged();
} else {
couponExpirySettings_ = null;
couponExpirySettingsBuilder_ = null;
}
return this;
}
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.Builder getCouponExpirySettingsBuilder() {
onChanged();
return getCouponExpirySettingsFieldBuilder().getBuilder();
}
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettingsOrBuilder getCouponExpirySettingsOrBuilder() {
if (couponExpirySettingsBuilder_ != null) {
return couponExpirySettingsBuilder_.getMessageOrBuilder();
} else {
return couponExpirySettings_ == null ?
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.getDefaultInstance() : couponExpirySettings_;
}
}
/**
*
* Coupon expiry settings
*
*
* .single_use_coupons.CouponExpirySettings couponExpirySettings = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings, com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettingsOrBuilder>
getCouponExpirySettingsFieldBuilder() {
if (couponExpirySettingsBuilder_ == null) {
couponExpirySettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings, com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettingsOrBuilder>(
getCouponExpirySettings(),
getParentForChildren(),
isClean());
couponExpirySettings_ = null;
}
return couponExpirySettingsBuilder_;
}
private com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings redemptionSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettingsOrBuilder> redemptionSettingsBuilder_;
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
* @return Whether the redemptionSettings field is set.
*/
public boolean hasRedemptionSettings() {
return redemptionSettingsBuilder_ != null || redemptionSettings_ != null;
}
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
* @return The redemptionSettings.
*/
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings getRedemptionSettings() {
if (redemptionSettingsBuilder_ == null) {
return redemptionSettings_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.getDefaultInstance() : redemptionSettings_;
} else {
return redemptionSettingsBuilder_.getMessage();
}
}
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
*/
public Builder setRedemptionSettings(com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings value) {
if (redemptionSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
redemptionSettings_ = value;
onChanged();
} else {
redemptionSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
*/
public Builder setRedemptionSettings(
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.Builder builderForValue) {
if (redemptionSettingsBuilder_ == null) {
redemptionSettings_ = builderForValue.build();
onChanged();
} else {
redemptionSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
*/
public Builder mergeRedemptionSettings(com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings value) {
if (redemptionSettingsBuilder_ == null) {
if (redemptionSettings_ != null) {
redemptionSettings_ =
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.newBuilder(redemptionSettings_).mergeFrom(value).buildPartial();
} else {
redemptionSettings_ = value;
}
onChanged();
} else {
redemptionSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
*/
public Builder clearRedemptionSettings() {
if (redemptionSettingsBuilder_ == null) {
redemptionSettings_ = null;
onChanged();
} else {
redemptionSettings_ = null;
redemptionSettingsBuilder_ = null;
}
return this;
}
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.Builder getRedemptionSettingsBuilder() {
onChanged();
return getRedemptionSettingsFieldBuilder().getBuilder();
}
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettingsOrBuilder getRedemptionSettingsOrBuilder() {
if (redemptionSettingsBuilder_ != null) {
return redemptionSettingsBuilder_.getMessageOrBuilder();
} else {
return redemptionSettings_ == null ?
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.getDefaultInstance() : redemptionSettings_;
}
}
/**
*
* Optional redemption settings to give more control over redemption.
*
*
* .single_use_coupons.RedemptionSettings redemptionSettings = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettingsOrBuilder>
getRedemptionSettingsFieldBuilder() {
if (redemptionSettingsBuilder_ == null) {
redemptionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettingsOrBuilder>(
getRedemptionSettings(),
getParentForChildren(),
isClean());
redemptionSettings_ = null;
}
return redemptionSettingsBuilder_;
}
private com.google.protobuf.Timestamp issueStartDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> issueStartDateBuilder_;
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
* @return Whether the issueStartDate field is set.
*/
public boolean hasIssueStartDate() {
return issueStartDateBuilder_ != null || issueStartDate_ != null;
}
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
* @return The issueStartDate.
*/
public com.google.protobuf.Timestamp getIssueStartDate() {
if (issueStartDateBuilder_ == null) {
return issueStartDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : issueStartDate_;
} else {
return issueStartDateBuilder_.getMessage();
}
}
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
*/
public Builder setIssueStartDate(com.google.protobuf.Timestamp value) {
if (issueStartDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
issueStartDate_ = value;
onChanged();
} else {
issueStartDateBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
*/
public Builder setIssueStartDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (issueStartDateBuilder_ == null) {
issueStartDate_ = builderForValue.build();
onChanged();
} else {
issueStartDateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
*/
public Builder mergeIssueStartDate(com.google.protobuf.Timestamp value) {
if (issueStartDateBuilder_ == null) {
if (issueStartDate_ != null) {
issueStartDate_ =
com.google.protobuf.Timestamp.newBuilder(issueStartDate_).mergeFrom(value).buildPartial();
} else {
issueStartDate_ = value;
}
onChanged();
} else {
issueStartDateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
*/
public Builder clearIssueStartDate() {
if (issueStartDateBuilder_ == null) {
issueStartDate_ = null;
onChanged();
} else {
issueStartDate_ = null;
issueStartDateBuilder_ = null;
}
return this;
}
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
*/
public com.google.protobuf.Timestamp.Builder getIssueStartDateBuilder() {
onChanged();
return getIssueStartDateFieldBuilder().getBuilder();
}
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
*/
public com.google.protobuf.TimestampOrBuilder getIssueStartDateOrBuilder() {
if (issueStartDateBuilder_ != null) {
return issueStartDateBuilder_.getMessageOrBuilder();
} else {
return issueStartDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : issueStartDate_;
}
}
/**
*
* Optional date when coupons can start to be issued. Defaults to the campaign start date. Needs to be greater than / equal to the campaign start date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueStartDate = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getIssueStartDateFieldBuilder() {
if (issueStartDateBuilder_ == null) {
issueStartDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getIssueStartDate(),
getParentForChildren(),
isClean());
issueStartDate_ = null;
}
return issueStartDateBuilder_;
}
private com.google.protobuf.Timestamp issueEndDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> issueEndDateBuilder_;
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
* @return Whether the issueEndDate field is set.
*/
public boolean hasIssueEndDate() {
return issueEndDateBuilder_ != null || issueEndDate_ != null;
}
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
* @return The issueEndDate.
*/
public com.google.protobuf.Timestamp getIssueEndDate() {
if (issueEndDateBuilder_ == null) {
return issueEndDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : issueEndDate_;
} else {
return issueEndDateBuilder_.getMessage();
}
}
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
*/
public Builder setIssueEndDate(com.google.protobuf.Timestamp value) {
if (issueEndDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
issueEndDate_ = value;
onChanged();
} else {
issueEndDateBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
*/
public Builder setIssueEndDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (issueEndDateBuilder_ == null) {
issueEndDate_ = builderForValue.build();
onChanged();
} else {
issueEndDateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
*/
public Builder mergeIssueEndDate(com.google.protobuf.Timestamp value) {
if (issueEndDateBuilder_ == null) {
if (issueEndDate_ != null) {
issueEndDate_ =
com.google.protobuf.Timestamp.newBuilder(issueEndDate_).mergeFrom(value).buildPartial();
} else {
issueEndDate_ = value;
}
onChanged();
} else {
issueEndDateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
*/
public Builder clearIssueEndDate() {
if (issueEndDateBuilder_ == null) {
issueEndDate_ = null;
onChanged();
} else {
issueEndDate_ = null;
issueEndDateBuilder_ = null;
}
return this;
}
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
*/
public com.google.protobuf.Timestamp.Builder getIssueEndDateBuilder() {
onChanged();
return getIssueEndDateFieldBuilder().getBuilder();
}
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
*/
public com.google.protobuf.TimestampOrBuilder getIssueEndDateOrBuilder() {
if (issueEndDateBuilder_ != null) {
return issueEndDateBuilder_.getMessageOrBuilder();
} else {
return issueEndDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : issueEndDate_;
}
}
/**
*
* Optional date when coupons can no longer be issued. Defaults to the campaign end date. Needs to be less than / equal to the campaign end date.
*
*
* .google.protobuf.Timestamp issueEndDate = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getIssueEndDateFieldBuilder() {
if (issueEndDateBuilder_ == null) {
issueEndDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getIssueEndDate(),
getParentForChildren(),
isClean());
issueEndDate_ = null;
}
return issueEndDateBuilder_;
}
private com.google.protobuf.Timestamp created_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdBuilder_;
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
* @return Whether the created field is set.
*/
public boolean hasCreated() {
return createdBuilder_ != null || created_ != null;
}
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
* @return The created.
*/
public com.google.protobuf.Timestamp getCreated() {
if (createdBuilder_ == null) {
return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;
} else {
return createdBuilder_.getMessage();
}
}
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
*/
public Builder setCreated(com.google.protobuf.Timestamp value) {
if (createdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
created_ = value;
onChanged();
} else {
createdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
*/
public Builder setCreated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdBuilder_ == null) {
created_ = builderForValue.build();
onChanged();
} else {
createdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
*/
public Builder mergeCreated(com.google.protobuf.Timestamp value) {
if (createdBuilder_ == null) {
if (created_ != null) {
created_ =
com.google.protobuf.Timestamp.newBuilder(created_).mergeFrom(value).buildPartial();
} else {
created_ = value;
}
onChanged();
} else {
createdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
*/
public Builder clearCreated() {
if (createdBuilder_ == null) {
created_ = null;
onChanged();
} else {
created_ = null;
createdBuilder_ = null;
}
return this;
}
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
*/
public com.google.protobuf.Timestamp.Builder getCreatedBuilder() {
onChanged();
return getCreatedFieldBuilder().getBuilder();
}
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() {
if (createdBuilder_ != null) {
return createdBuilder_.getMessageOrBuilder();
} else {
return created_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : created_;
}
}
/**
*
* The date when the offer was created.
*
*
* .google.protobuf.Timestamp created = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedFieldBuilder() {
if (createdBuilder_ == null) {
createdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreated(),
getParentForChildren(),
isClean());
created_ = null;
}
return createdBuilder_;
}
private com.google.protobuf.Timestamp updated_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedBuilder_;
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
* @return Whether the updated field is set.
*/
public boolean hasUpdated() {
return updatedBuilder_ != null || updated_ != null;
}
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
* @return The updated.
*/
public com.google.protobuf.Timestamp getUpdated() {
if (updatedBuilder_ == null) {
return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
} else {
return updatedBuilder_.getMessage();
}
}
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
*/
public Builder setUpdated(com.google.protobuf.Timestamp value) {
if (updatedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updated_ = value;
onChanged();
} else {
updatedBuilder_.setMessage(value);
}
return this;
}
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
*/
public Builder setUpdated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (updatedBuilder_ == null) {
updated_ = builderForValue.build();
onChanged();
} else {
updatedBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
*/
public Builder mergeUpdated(com.google.protobuf.Timestamp value) {
if (updatedBuilder_ == null) {
if (updated_ != null) {
updated_ =
com.google.protobuf.Timestamp.newBuilder(updated_).mergeFrom(value).buildPartial();
} else {
updated_ = value;
}
onChanged();
} else {
updatedBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
*/
public Builder clearUpdated() {
if (updatedBuilder_ == null) {
updated_ = null;
onChanged();
} else {
updated_ = null;
updatedBuilder_ = null;
}
return this;
}
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
*/
public com.google.protobuf.Timestamp.Builder getUpdatedBuilder() {
onChanged();
return getUpdatedFieldBuilder().getBuilder();
}
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
*/
public com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder() {
if (updatedBuilder_ != null) {
return updatedBuilder_.getMessageOrBuilder();
} else {
return updated_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
}
}
/**
*
* The date the offer was last updated.
*
*
* .google.protobuf.Timestamp updated = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getUpdatedFieldBuilder() {
if (updatedBuilder_ == null) {
updatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getUpdated(),
getParentForChildren(),
isClean());
updated_ = null;
}
return updatedBuilder_;
}
private java.lang.Object campaignId_ = "";
/**
*
* The campaign id that the offer belongs to (1 campaign can have multiple offers). This field cannot be changed once an offer is linked to a campaign.
*
*
* string campaignId = 19;
* @return The campaignId.
*/
public java.lang.String getCampaignId() {
java.lang.Object ref = campaignId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
campaignId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The campaign id that the offer belongs to (1 campaign can have multiple offers). This field cannot be changed once an offer is linked to a campaign.
*
*
* string campaignId = 19;
* @return The bytes for campaignId.
*/
public com.google.protobuf.ByteString
getCampaignIdBytes() {
java.lang.Object ref = campaignId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaignId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The campaign id that the offer belongs to (1 campaign can have multiple offers). This field cannot be changed once an offer is linked to a campaign.
*
*
* string campaignId = 19;
* @param value The campaignId to set.
* @return This builder for chaining.
*/
public Builder setCampaignId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
campaignId_ = value;
onChanged();
return this;
}
/**
*
* The campaign id that the offer belongs to (1 campaign can have multiple offers). This field cannot be changed once an offer is linked to a campaign.
*
*
* string campaignId = 19;
* @return This builder for chaining.
*/
public Builder clearCampaignId() {
campaignId_ = getDefaultInstance().getCampaignId();
onChanged();
return this;
}
/**
*
* The campaign id that the offer belongs to (1 campaign can have multiple offers). This field cannot be changed once an offer is linked to a campaign.
*
*
* string campaignId = 19;
* @param value The bytes for campaignId to set.
* @return This builder for chaining.
*/
public Builder setCampaignIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
campaignId_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Distribution.DistributionSettings distributionSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Distribution.DistributionSettings, com.passkit.grpc.Distribution.DistributionSettings.Builder, com.passkit.grpc.Distribution.DistributionSettingsOrBuilder> distributionSettingsBuilder_;
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
* @return Whether the distributionSettings field is set.
*/
public boolean hasDistributionSettings() {
return distributionSettingsBuilder_ != null || distributionSettings_ != null;
}
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
* @return The distributionSettings.
*/
public com.passkit.grpc.Distribution.DistributionSettings getDistributionSettings() {
if (distributionSettingsBuilder_ == null) {
return distributionSettings_ == null ? com.passkit.grpc.Distribution.DistributionSettings.getDefaultInstance() : distributionSettings_;
} else {
return distributionSettingsBuilder_.getMessage();
}
}
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
*/
public Builder setDistributionSettings(com.passkit.grpc.Distribution.DistributionSettings value) {
if (distributionSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
distributionSettings_ = value;
onChanged();
} else {
distributionSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
*/
public Builder setDistributionSettings(
com.passkit.grpc.Distribution.DistributionSettings.Builder builderForValue) {
if (distributionSettingsBuilder_ == null) {
distributionSettings_ = builderForValue.build();
onChanged();
} else {
distributionSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
*/
public Builder mergeDistributionSettings(com.passkit.grpc.Distribution.DistributionSettings value) {
if (distributionSettingsBuilder_ == null) {
if (distributionSettings_ != null) {
distributionSettings_ =
com.passkit.grpc.Distribution.DistributionSettings.newBuilder(distributionSettings_).mergeFrom(value).buildPartial();
} else {
distributionSettings_ = value;
}
onChanged();
} else {
distributionSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
*/
public Builder clearDistributionSettings() {
if (distributionSettingsBuilder_ == null) {
distributionSettings_ = null;
onChanged();
} else {
distributionSettings_ = null;
distributionSettingsBuilder_ = null;
}
return this;
}
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
*/
public com.passkit.grpc.Distribution.DistributionSettings.Builder getDistributionSettingsBuilder() {
onChanged();
return getDistributionSettingsFieldBuilder().getBuilder();
}
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
*/
public com.passkit.grpc.Distribution.DistributionSettingsOrBuilder getDistributionSettingsOrBuilder() {
if (distributionSettingsBuilder_ != null) {
return distributionSettingsBuilder_.getMessageOrBuilder();
} else {
return distributionSettings_ == null ?
com.passkit.grpc.Distribution.DistributionSettings.getDefaultInstance() : distributionSettings_;
}
}
/**
*
* Contains the email & sms distribution settings for the offer.
*
*
* .io.DistributionSettings distributionSettings = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Distribution.DistributionSettings, com.passkit.grpc.Distribution.DistributionSettings.Builder, com.passkit.grpc.Distribution.DistributionSettingsOrBuilder>
getDistributionSettingsFieldBuilder() {
if (distributionSettingsBuilder_ == null) {
distributionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Distribution.DistributionSettings, com.passkit.grpc.Distribution.DistributionSettings.Builder, com.passkit.grpc.Distribution.DistributionSettingsOrBuilder>(
getDistributionSettings(),
getParentForChildren(),
isClean());
distributionSettings_ = null;
}
return distributionSettingsBuilder_;
}
private java.lang.Object shortCode_ = "";
/**
*
* The offer shortcode generated by the system. If the campaign is public, then this shortcode can be used to generate the coupon-create URL.
*
*
* string shortCode = 21;
* @return The shortCode.
*/
public java.lang.String getShortCode() {
java.lang.Object ref = shortCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
shortCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The offer shortcode generated by the system. If the campaign is public, then this shortcode can be used to generate the coupon-create URL.
*
*
* string shortCode = 21;
* @return The bytes for shortCode.
*/
public com.google.protobuf.ByteString
getShortCodeBytes() {
java.lang.Object ref = shortCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shortCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The offer shortcode generated by the system. If the campaign is public, then this shortcode can be used to generate the coupon-create URL.
*
*
* string shortCode = 21;
* @param value The shortCode to set.
* @return This builder for chaining.
*/
public Builder setShortCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
shortCode_ = value;
onChanged();
return this;
}
/**
*
* The offer shortcode generated by the system. If the campaign is public, then this shortcode can be used to generate the coupon-create URL.
*
*
* string shortCode = 21;
* @return This builder for chaining.
*/
public Builder clearShortCode() {
shortCode_ = getDefaultInstance().getShortCode();
onChanged();
return this;
}
/**
*
* The offer shortcode generated by the system. If the campaign is public, then this shortcode can be used to generate the coupon-create URL.
*
*
* string shortCode = 21;
* @param value The bytes for shortCode to set.
* @return This builder for chaining.
*/
public Builder setShortCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
shortCode_ = value;
onChanged();
return this;
}
private java.lang.Object ianaTimezone_ = "";
/**
*
* The offer timezone.
*
*
* string ianaTimezone = 22;
* @return The ianaTimezone.
*/
public java.lang.String getIanaTimezone() {
java.lang.Object ref = ianaTimezone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ianaTimezone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The offer timezone.
*
*
* string ianaTimezone = 22;
* @return The bytes for ianaTimezone.
*/
public com.google.protobuf.ByteString
getIanaTimezoneBytes() {
java.lang.Object ref = ianaTimezone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ianaTimezone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The offer timezone.
*
*
* string ianaTimezone = 22;
* @param value The ianaTimezone to set.
* @return This builder for chaining.
*/
public Builder setIanaTimezone(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ianaTimezone_ = value;
onChanged();
return this;
}
/**
*
* The offer timezone.
*
*
* string ianaTimezone = 22;
* @return This builder for chaining.
*/
public Builder clearIanaTimezone() {
ianaTimezone_ = getDefaultInstance().getIanaTimezone();
onChanged();
return this;
}
/**
*
* The offer timezone.
*
*
* string ianaTimezone = 22;
* @param value The bytes for ianaTimezone to set.
* @return This builder for chaining.
*/
public Builder setIanaTimezoneBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ianaTimezone_ = value;
onChanged();
return this;
}
private boolean disabled_ ;
/**
*
* Can be used to temporarily disable the coupon (i.e. if you ran out of your promotion item, you can temporarily disable all live coupons, and activate them again later on when your item is in stock again).
*
*
* bool disabled = 23;
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
/**
*
* Can be used to temporarily disable the coupon (i.e. if you ran out of your promotion item, you can temporarily disable all live coupons, and activate them again later on when your item is in stock again).
*
*
* bool disabled = 23;
* @param value The disabled to set.
* @return This builder for chaining.
*/
public Builder setDisabled(boolean value) {
disabled_ = value;
onChanged();
return this;
}
/**
*
* Can be used to temporarily disable the coupon (i.e. if you ran out of your promotion item, you can temporarily disable all live coupons, and activate them again later on when your item is in stock again).
*
*
* bool disabled = 23;
* @return This builder for chaining.
*/
public Builder clearDisabled() {
disabled_ = false;
onChanged();
return this;
}
@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:single_use_coupons.CouponOffer)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.CouponOffer)
private static final com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CouponOffer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CouponOffer(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.CouponOffer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CouponExpirySettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.CouponExpirySettings)
com.google.protobuf.MessageOrBuilder {
/**
* .single_use_coupons.CouponExpiryType couponExpiryType = 1;
* @return The enum numeric value on the wire for couponExpiryType.
*/
int getCouponExpiryTypeValue();
/**
* .single_use_coupons.CouponExpiryType couponExpiryType = 1;
* @return The couponExpiryType.
*/
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType getCouponExpiryType();
/**
*
* Number of days the coupon card is expired after the issue date.
* The expiry time is 23:59:59 of expiry day. Please set couponExpiryType as EXPIRE_AFTER_X_DAYS.
* Field can be omitted if using any of the other coupon expiry types.
*
*
* uint32 expireAfterXDays = 3;
* @return The expireAfterXDays.
*/
int getExpireAfterXDays();
}
/**
* Protobuf type {@code single_use_coupons.CouponExpirySettings}
*/
public static final class CouponExpirySettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.CouponExpirySettings)
CouponExpirySettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use CouponExpirySettings.newBuilder() to construct.
private CouponExpirySettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CouponExpirySettings() {
couponExpiryType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CouponExpirySettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CouponExpirySettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
couponExpiryType_ = rawValue;
break;
}
case 24: {
expireAfterXDays_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponExpirySettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponExpirySettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.class, com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.Builder.class);
}
public static final int COUPONEXPIRYTYPE_FIELD_NUMBER = 1;
private int couponExpiryType_;
/**
* .single_use_coupons.CouponExpiryType couponExpiryType = 1;
* @return The enum numeric value on the wire for couponExpiryType.
*/
@java.lang.Override public int getCouponExpiryTypeValue() {
return couponExpiryType_;
}
/**
* .single_use_coupons.CouponExpiryType couponExpiryType = 1;
* @return The couponExpiryType.
*/
@java.lang.Override public com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType getCouponExpiryType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType result = com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType.valueOf(couponExpiryType_);
return result == null ? com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType.UNRECOGNIZED : result;
}
public static final int EXPIREAFTERXDAYS_FIELD_NUMBER = 3;
private int expireAfterXDays_;
/**
*
* Number of days the coupon card is expired after the issue date.
* The expiry time is 23:59:59 of expiry day. Please set couponExpiryType as EXPIRE_AFTER_X_DAYS.
* Field can be omitted if using any of the other coupon expiry types.
*
*
* uint32 expireAfterXDays = 3;
* @return The expireAfterXDays.
*/
@java.lang.Override
public int getExpireAfterXDays() {
return expireAfterXDays_;
}
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 (couponExpiryType_ != com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType.EXPIRY_DO_NOT_USE.getNumber()) {
output.writeEnum(1, couponExpiryType_);
}
if (expireAfterXDays_ != 0) {
output.writeUInt32(3, expireAfterXDays_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (couponExpiryType_ != com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType.EXPIRY_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, couponExpiryType_);
}
if (expireAfterXDays_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, expireAfterXDays_);
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings other = (com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings) obj;
if (couponExpiryType_ != other.couponExpiryType_) return false;
if (getExpireAfterXDays()
!= other.getExpireAfterXDays()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + COUPONEXPIRYTYPE_FIELD_NUMBER;
hash = (53 * hash) + couponExpiryType_;
hash = (37 * hash) + EXPIREAFTERXDAYS_FIELD_NUMBER;
hash = (53 * hash) + getExpireAfterXDays();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings 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.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings 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.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings 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.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings 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;
}
/**
* Protobuf type {@code single_use_coupons.CouponExpirySettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.CouponExpirySettings)
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponExpirySettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponExpirySettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.class, com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
couponExpiryType_ = 0;
expireAfterXDays_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponExpirySettings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings build() {
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings result = new com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings(this);
result.couponExpiryType_ = couponExpiryType_;
result.expireAfterXDays_ = expireAfterXDays_;
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings.getDefaultInstance()) return this;
if (other.couponExpiryType_ != 0) {
setCouponExpiryTypeValue(other.getCouponExpiryTypeValue());
}
if (other.getExpireAfterXDays() != 0) {
setExpireAfterXDays(other.getExpireAfterXDays());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int couponExpiryType_ = 0;
/**
* .single_use_coupons.CouponExpiryType couponExpiryType = 1;
* @return The enum numeric value on the wire for couponExpiryType.
*/
@java.lang.Override public int getCouponExpiryTypeValue() {
return couponExpiryType_;
}
/**
* .single_use_coupons.CouponExpiryType couponExpiryType = 1;
* @param value The enum numeric value on the wire for couponExpiryType to set.
* @return This builder for chaining.
*/
public Builder setCouponExpiryTypeValue(int value) {
couponExpiryType_ = value;
onChanged();
return this;
}
/**
* .single_use_coupons.CouponExpiryType couponExpiryType = 1;
* @return The couponExpiryType.
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType getCouponExpiryType() {
@SuppressWarnings("deprecation")
com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType result = com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType.valueOf(couponExpiryType_);
return result == null ? com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType.UNRECOGNIZED : result;
}
/**
* .single_use_coupons.CouponExpiryType couponExpiryType = 1;
* @param value The couponExpiryType to set.
* @return This builder for chaining.
*/
public Builder setCouponExpiryType(com.passkit.grpc.SingleUseCoupons.Offer.CouponExpiryType value) {
if (value == null) {
throw new NullPointerException();
}
couponExpiryType_ = value.getNumber();
onChanged();
return this;
}
/**
* .single_use_coupons.CouponExpiryType couponExpiryType = 1;
* @return This builder for chaining.
*/
public Builder clearCouponExpiryType() {
couponExpiryType_ = 0;
onChanged();
return this;
}
private int expireAfterXDays_ ;
/**
*
* Number of days the coupon card is expired after the issue date.
* The expiry time is 23:59:59 of expiry day. Please set couponExpiryType as EXPIRE_AFTER_X_DAYS.
* Field can be omitted if using any of the other coupon expiry types.
*
*
* uint32 expireAfterXDays = 3;
* @return The expireAfterXDays.
*/
@java.lang.Override
public int getExpireAfterXDays() {
return expireAfterXDays_;
}
/**
*
* Number of days the coupon card is expired after the issue date.
* The expiry time is 23:59:59 of expiry day. Please set couponExpiryType as EXPIRE_AFTER_X_DAYS.
* Field can be omitted if using any of the other coupon expiry types.
*
*
* uint32 expireAfterXDays = 3;
* @param value The expireAfterXDays to set.
* @return This builder for chaining.
*/
public Builder setExpireAfterXDays(int value) {
expireAfterXDays_ = value;
onChanged();
return this;
}
/**
*
* Number of days the coupon card is expired after the issue date.
* The expiry time is 23:59:59 of expiry day. Please set couponExpiryType as EXPIRE_AFTER_X_DAYS.
* Field can be omitted if using any of the other coupon expiry types.
*
*
* uint32 expireAfterXDays = 3;
* @return This builder for chaining.
*/
public Builder clearExpireAfterXDays() {
expireAfterXDays_ = 0;
onChanged();
return this;
}
@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:single_use_coupons.CouponExpirySettings)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.CouponExpirySettings)
private static final com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CouponExpirySettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CouponExpirySettings(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.CouponExpirySettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RedemptionSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.RedemptionSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
* @return Whether the redemptionStartDate field is set.
*/
boolean hasRedemptionStartDate();
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
* @return The redemptionStartDate.
*/
com.google.protobuf.Timestamp getRedemptionStartDate();
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
*/
com.google.protobuf.TimestampOrBuilder getRedemptionStartDateOrBuilder();
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
* @return Whether the redemptionEndDate field is set.
*/
boolean hasRedemptionEndDate();
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
* @return The redemptionEndDate.
*/
com.google.protobuf.Timestamp getRedemptionEndDate();
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
*/
com.google.protobuf.TimestampOrBuilder getRedemptionEndDateOrBuilder();
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @return A list containing the redemptionType.
*/
java.util.List getRedemptionTypeList();
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @return The count of redemptionType.
*/
int getRedemptionTypeCount();
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param index The index of the element to return.
* @return The redemptionType at the given index.
*/
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType getRedemptionType(int index);
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @return A list containing the enum numeric values on the wire for redemptionType.
*/
java.util.List
getRedemptionTypeValueList();
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of redemptionType at the given index.
*/
int getRedemptionTypeValue(int index);
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
* @return Whether the codeProvidedOnRedeemSettings field is set.
*/
boolean hasCodeProvidedOnRedeemSettings();
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
* @return The codeProvidedOnRedeemSettings.
*/
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings getCodeProvidedOnRedeemSettings();
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
*/
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettingsOrBuilder getCodeProvidedOnRedeemSettingsOrBuilder();
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
* @return Whether the fixedCodeSettings field is set.
*/
boolean hasFixedCodeSettings();
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
* @return The fixedCodeSettings.
*/
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings getFixedCodeSettings();
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
*/
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettingsOrBuilder getFixedCodeSettingsOrBuilder();
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
* @return Whether the standardSettings field is set.
*/
boolean hasStandardSettings();
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
* @return The standardSettings.
*/
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage getStandardSettings();
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
*/
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPageOrBuilder getStandardSettingsOrBuilder();
}
/**
* Protobuf type {@code single_use_coupons.RedemptionSettings}
*/
public static final class RedemptionSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.RedemptionSettings)
RedemptionSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use RedemptionSettings.newBuilder() to construct.
private RedemptionSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RedemptionSettings() {
redemptionType_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RedemptionSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RedemptionSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (redemptionStartDate_ != null) {
subBuilder = redemptionStartDate_.toBuilder();
}
redemptionStartDate_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(redemptionStartDate_);
redemptionStartDate_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (redemptionEndDate_ != null) {
subBuilder = redemptionEndDate_.toBuilder();
}
redemptionEndDate_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(redemptionEndDate_);
redemptionEndDate_ = subBuilder.buildPartial();
}
break;
}
case 24: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
redemptionType_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
redemptionType_.add(rawValue);
break;
}
case 26: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
redemptionType_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
redemptionType_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 42: {
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.Builder subBuilder = null;
if (codeProvidedOnRedeemSettings_ != null) {
subBuilder = codeProvidedOnRedeemSettings_.toBuilder();
}
codeProvidedOnRedeemSettings_ = input.readMessage(com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(codeProvidedOnRedeemSettings_);
codeProvidedOnRedeemSettings_ = subBuilder.buildPartial();
}
break;
}
case 50: {
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.Builder subBuilder = null;
if (fixedCodeSettings_ != null) {
subBuilder = fixedCodeSettings_.toBuilder();
}
fixedCodeSettings_ = input.readMessage(com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fixedCodeSettings_);
fixedCodeSettings_ = subBuilder.buildPartial();
}
break;
}
case 58: {
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.Builder subBuilder = null;
if (standardSettings_ != null) {
subBuilder = standardSettings_.toBuilder();
}
standardSettings_ = input.readMessage(com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(standardSettings_);
standardSettings_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
redemptionType_ = java.util.Collections.unmodifiableList(redemptionType_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_RedemptionSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_RedemptionSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.class, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.Builder.class);
}
public static final int REDEMPTIONSTARTDATE_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp redemptionStartDate_;
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
* @return Whether the redemptionStartDate field is set.
*/
@java.lang.Override
public boolean hasRedemptionStartDate() {
return redemptionStartDate_ != null;
}
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
* @return The redemptionStartDate.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getRedemptionStartDate() {
return redemptionStartDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : redemptionStartDate_;
}
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getRedemptionStartDateOrBuilder() {
return getRedemptionStartDate();
}
public static final int REDEMPTIONENDDATE_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp redemptionEndDate_;
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
* @return Whether the redemptionEndDate field is set.
*/
@java.lang.Override
public boolean hasRedemptionEndDate() {
return redemptionEndDate_ != null;
}
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
* @return The redemptionEndDate.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getRedemptionEndDate() {
return redemptionEndDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : redemptionEndDate_;
}
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getRedemptionEndDateOrBuilder() {
return getRedemptionEndDate();
}
public static final int REDEMPTIONTYPE_FIELD_NUMBER = 3;
private java.util.List redemptionType_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType> redemptionType_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType>() {
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType result = com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType.valueOf(from);
return result == null ? com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType.UNRECOGNIZED : result;
}
};
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @return A list containing the redemptionType.
*/
@java.lang.Override
public java.util.List getRedemptionTypeList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType>(redemptionType_, redemptionType_converter_);
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @return The count of redemptionType.
*/
@java.lang.Override
public int getRedemptionTypeCount() {
return redemptionType_.size();
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param index The index of the element to return.
* @return The redemptionType at the given index.
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType getRedemptionType(int index) {
return redemptionType_converter_.convert(redemptionType_.get(index));
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @return A list containing the enum numeric values on the wire for redemptionType.
*/
@java.lang.Override
public java.util.List
getRedemptionTypeValueList() {
return redemptionType_;
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of redemptionType at the given index.
*/
@java.lang.Override
public int getRedemptionTypeValue(int index) {
return redemptionType_.get(index);
}
private int redemptionTypeMemoizedSerializedSize;
public static final int CODEPROVIDEDONREDEEMSETTINGS_FIELD_NUMBER = 5;
private com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings_;
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
* @return Whether the codeProvidedOnRedeemSettings field is set.
*/
@java.lang.Override
public boolean hasCodeProvidedOnRedeemSettings() {
return codeProvidedOnRedeemSettings_ != null;
}
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
* @return The codeProvidedOnRedeemSettings.
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings getCodeProvidedOnRedeemSettings() {
return codeProvidedOnRedeemSettings_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.getDefaultInstance() : codeProvidedOnRedeemSettings_;
}
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettingsOrBuilder getCodeProvidedOnRedeemSettingsOrBuilder() {
return getCodeProvidedOnRedeemSettings();
}
public static final int FIXEDCODESETTINGS_FIELD_NUMBER = 6;
private com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings fixedCodeSettings_;
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
* @return Whether the fixedCodeSettings field is set.
*/
@java.lang.Override
public boolean hasFixedCodeSettings() {
return fixedCodeSettings_ != null;
}
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
* @return The fixedCodeSettings.
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings getFixedCodeSettings() {
return fixedCodeSettings_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.getDefaultInstance() : fixedCodeSettings_;
}
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettingsOrBuilder getFixedCodeSettingsOrBuilder() {
return getFixedCodeSettings();
}
public static final int STANDARDSETTINGS_FIELD_NUMBER = 7;
private com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage standardSettings_;
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
* @return Whether the standardSettings field is set.
*/
@java.lang.Override
public boolean hasStandardSettings() {
return standardSettings_ != null;
}
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
* @return The standardSettings.
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage getStandardSettings() {
return standardSettings_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.getDefaultInstance() : standardSettings_;
}
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPageOrBuilder getStandardSettingsOrBuilder() {
return getStandardSettings();
}
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 {
getSerializedSize();
if (redemptionStartDate_ != null) {
output.writeMessage(1, getRedemptionStartDate());
}
if (redemptionEndDate_ != null) {
output.writeMessage(2, getRedemptionEndDate());
}
if (getRedemptionTypeList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(redemptionTypeMemoizedSerializedSize);
}
for (int i = 0; i < redemptionType_.size(); i++) {
output.writeEnumNoTag(redemptionType_.get(i));
}
if (codeProvidedOnRedeemSettings_ != null) {
output.writeMessage(5, getCodeProvidedOnRedeemSettings());
}
if (fixedCodeSettings_ != null) {
output.writeMessage(6, getFixedCodeSettings());
}
if (standardSettings_ != null) {
output.writeMessage(7, getStandardSettings());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (redemptionStartDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRedemptionStartDate());
}
if (redemptionEndDate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRedemptionEndDate());
}
{
int dataSize = 0;
for (int i = 0; i < redemptionType_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(redemptionType_.get(i));
}
size += dataSize;
if (!getRedemptionTypeList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}redemptionTypeMemoizedSerializedSize = dataSize;
}
if (codeProvidedOnRedeemSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCodeProvidedOnRedeemSettings());
}
if (fixedCodeSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getFixedCodeSettings());
}
if (standardSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getStandardSettings());
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings other = (com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings) obj;
if (hasRedemptionStartDate() != other.hasRedemptionStartDate()) return false;
if (hasRedemptionStartDate()) {
if (!getRedemptionStartDate()
.equals(other.getRedemptionStartDate())) return false;
}
if (hasRedemptionEndDate() != other.hasRedemptionEndDate()) return false;
if (hasRedemptionEndDate()) {
if (!getRedemptionEndDate()
.equals(other.getRedemptionEndDate())) return false;
}
if (!redemptionType_.equals(other.redemptionType_)) return false;
if (hasCodeProvidedOnRedeemSettings() != other.hasCodeProvidedOnRedeemSettings()) return false;
if (hasCodeProvidedOnRedeemSettings()) {
if (!getCodeProvidedOnRedeemSettings()
.equals(other.getCodeProvidedOnRedeemSettings())) return false;
}
if (hasFixedCodeSettings() != other.hasFixedCodeSettings()) return false;
if (hasFixedCodeSettings()) {
if (!getFixedCodeSettings()
.equals(other.getFixedCodeSettings())) return false;
}
if (hasStandardSettings() != other.hasStandardSettings()) return false;
if (hasStandardSettings()) {
if (!getStandardSettings()
.equals(other.getStandardSettings())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRedemptionStartDate()) {
hash = (37 * hash) + REDEMPTIONSTARTDATE_FIELD_NUMBER;
hash = (53 * hash) + getRedemptionStartDate().hashCode();
}
if (hasRedemptionEndDate()) {
hash = (37 * hash) + REDEMPTIONENDDATE_FIELD_NUMBER;
hash = (53 * hash) + getRedemptionEndDate().hashCode();
}
if (getRedemptionTypeCount() > 0) {
hash = (37 * hash) + REDEMPTIONTYPE_FIELD_NUMBER;
hash = (53 * hash) + redemptionType_.hashCode();
}
if (hasCodeProvidedOnRedeemSettings()) {
hash = (37 * hash) + CODEPROVIDEDONREDEEMSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getCodeProvidedOnRedeemSettings().hashCode();
}
if (hasFixedCodeSettings()) {
hash = (37 * hash) + FIXEDCODESETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getFixedCodeSettings().hashCode();
}
if (hasStandardSettings()) {
hash = (37 * hash) + STANDARDSETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getStandardSettings().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings 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.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings 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.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings 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.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings 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;
}
/**
* Protobuf type {@code single_use_coupons.RedemptionSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.RedemptionSettings)
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_RedemptionSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_RedemptionSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.class, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (redemptionStartDateBuilder_ == null) {
redemptionStartDate_ = null;
} else {
redemptionStartDate_ = null;
redemptionStartDateBuilder_ = null;
}
if (redemptionEndDateBuilder_ == null) {
redemptionEndDate_ = null;
} else {
redemptionEndDate_ = null;
redemptionEndDateBuilder_ = null;
}
redemptionType_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
if (codeProvidedOnRedeemSettingsBuilder_ == null) {
codeProvidedOnRedeemSettings_ = null;
} else {
codeProvidedOnRedeemSettings_ = null;
codeProvidedOnRedeemSettingsBuilder_ = null;
}
if (fixedCodeSettingsBuilder_ == null) {
fixedCodeSettings_ = null;
} else {
fixedCodeSettings_ = null;
fixedCodeSettingsBuilder_ = null;
}
if (standardSettingsBuilder_ == null) {
standardSettings_ = null;
} else {
standardSettings_ = null;
standardSettingsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_RedemptionSettings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings build() {
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings result = new com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings(this);
int from_bitField0_ = bitField0_;
if (redemptionStartDateBuilder_ == null) {
result.redemptionStartDate_ = redemptionStartDate_;
} else {
result.redemptionStartDate_ = redemptionStartDateBuilder_.build();
}
if (redemptionEndDateBuilder_ == null) {
result.redemptionEndDate_ = redemptionEndDate_;
} else {
result.redemptionEndDate_ = redemptionEndDateBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
redemptionType_ = java.util.Collections.unmodifiableList(redemptionType_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.redemptionType_ = redemptionType_;
if (codeProvidedOnRedeemSettingsBuilder_ == null) {
result.codeProvidedOnRedeemSettings_ = codeProvidedOnRedeemSettings_;
} else {
result.codeProvidedOnRedeemSettings_ = codeProvidedOnRedeemSettingsBuilder_.build();
}
if (fixedCodeSettingsBuilder_ == null) {
result.fixedCodeSettings_ = fixedCodeSettings_;
} else {
result.fixedCodeSettings_ = fixedCodeSettingsBuilder_.build();
}
if (standardSettingsBuilder_ == null) {
result.standardSettings_ = standardSettings_;
} else {
result.standardSettings_ = standardSettingsBuilder_.build();
}
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings.getDefaultInstance()) return this;
if (other.hasRedemptionStartDate()) {
mergeRedemptionStartDate(other.getRedemptionStartDate());
}
if (other.hasRedemptionEndDate()) {
mergeRedemptionEndDate(other.getRedemptionEndDate());
}
if (!other.redemptionType_.isEmpty()) {
if (redemptionType_.isEmpty()) {
redemptionType_ = other.redemptionType_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRedemptionTypeIsMutable();
redemptionType_.addAll(other.redemptionType_);
}
onChanged();
}
if (other.hasCodeProvidedOnRedeemSettings()) {
mergeCodeProvidedOnRedeemSettings(other.getCodeProvidedOnRedeemSettings());
}
if (other.hasFixedCodeSettings()) {
mergeFixedCodeSettings(other.getFixedCodeSettings());
}
if (other.hasStandardSettings()) {
mergeStandardSettings(other.getStandardSettings());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp redemptionStartDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> redemptionStartDateBuilder_;
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
* @return Whether the redemptionStartDate field is set.
*/
public boolean hasRedemptionStartDate() {
return redemptionStartDateBuilder_ != null || redemptionStartDate_ != null;
}
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
* @return The redemptionStartDate.
*/
public com.google.protobuf.Timestamp getRedemptionStartDate() {
if (redemptionStartDateBuilder_ == null) {
return redemptionStartDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : redemptionStartDate_;
} else {
return redemptionStartDateBuilder_.getMessage();
}
}
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
*/
public Builder setRedemptionStartDate(com.google.protobuf.Timestamp value) {
if (redemptionStartDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
redemptionStartDate_ = value;
onChanged();
} else {
redemptionStartDateBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
*/
public Builder setRedemptionStartDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (redemptionStartDateBuilder_ == null) {
redemptionStartDate_ = builderForValue.build();
onChanged();
} else {
redemptionStartDateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
*/
public Builder mergeRedemptionStartDate(com.google.protobuf.Timestamp value) {
if (redemptionStartDateBuilder_ == null) {
if (redemptionStartDate_ != null) {
redemptionStartDate_ =
com.google.protobuf.Timestamp.newBuilder(redemptionStartDate_).mergeFrom(value).buildPartial();
} else {
redemptionStartDate_ = value;
}
onChanged();
} else {
redemptionStartDateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
*/
public Builder clearRedemptionStartDate() {
if (redemptionStartDateBuilder_ == null) {
redemptionStartDate_ = null;
onChanged();
} else {
redemptionStartDate_ = null;
redemptionStartDateBuilder_ = null;
}
return this;
}
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
*/
public com.google.protobuf.Timestamp.Builder getRedemptionStartDateBuilder() {
onChanged();
return getRedemptionStartDateFieldBuilder().getBuilder();
}
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
*/
public com.google.protobuf.TimestampOrBuilder getRedemptionStartDateOrBuilder() {
if (redemptionStartDateBuilder_ != null) {
return redemptionStartDateBuilder_.getMessageOrBuilder();
} else {
return redemptionStartDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : redemptionStartDate_;
}
}
/**
*
* Optional field that can be set if offers can only be redeemed after a certain date. Defaults to the offer issue start date. Needs to be greater than / equal to the offer issue start date, and less than / equal to offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionStartDate = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getRedemptionStartDateFieldBuilder() {
if (redemptionStartDateBuilder_ == null) {
redemptionStartDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getRedemptionStartDate(),
getParentForChildren(),
isClean());
redemptionStartDate_ = null;
}
return redemptionStartDateBuilder_;
}
private com.google.protobuf.Timestamp redemptionEndDate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> redemptionEndDateBuilder_;
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
* @return Whether the redemptionEndDate field is set.
*/
public boolean hasRedemptionEndDate() {
return redemptionEndDateBuilder_ != null || redemptionEndDate_ != null;
}
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
* @return The redemptionEndDate.
*/
public com.google.protobuf.Timestamp getRedemptionEndDate() {
if (redemptionEndDateBuilder_ == null) {
return redemptionEndDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : redemptionEndDate_;
} else {
return redemptionEndDateBuilder_.getMessage();
}
}
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
*/
public Builder setRedemptionEndDate(com.google.protobuf.Timestamp value) {
if (redemptionEndDateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
redemptionEndDate_ = value;
onChanged();
} else {
redemptionEndDateBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
*/
public Builder setRedemptionEndDate(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (redemptionEndDateBuilder_ == null) {
redemptionEndDate_ = builderForValue.build();
onChanged();
} else {
redemptionEndDateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
*/
public Builder mergeRedemptionEndDate(com.google.protobuf.Timestamp value) {
if (redemptionEndDateBuilder_ == null) {
if (redemptionEndDate_ != null) {
redemptionEndDate_ =
com.google.protobuf.Timestamp.newBuilder(redemptionEndDate_).mergeFrom(value).buildPartial();
} else {
redemptionEndDate_ = value;
}
onChanged();
} else {
redemptionEndDateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
*/
public Builder clearRedemptionEndDate() {
if (redemptionEndDateBuilder_ == null) {
redemptionEndDate_ = null;
onChanged();
} else {
redemptionEndDate_ = null;
redemptionEndDateBuilder_ = null;
}
return this;
}
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
*/
public com.google.protobuf.Timestamp.Builder getRedemptionEndDateBuilder() {
onChanged();
return getRedemptionEndDateFieldBuilder().getBuilder();
}
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
*/
public com.google.protobuf.TimestampOrBuilder getRedemptionEndDateOrBuilder() {
if (redemptionEndDateBuilder_ != null) {
return redemptionEndDateBuilder_.getMessageOrBuilder();
} else {
return redemptionEndDate_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : redemptionEndDate_;
}
}
/**
*
* Optional field that can be set if offers can only be redeemed until a certain date. Defaults to the offer issue end date. Needs to be less than / equal to the offer issue end date.
*
*
* .google.protobuf.Timestamp redemptionEndDate = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getRedemptionEndDateFieldBuilder() {
if (redemptionEndDateBuilder_ == null) {
redemptionEndDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getRedemptionEndDate(),
getParentForChildren(),
isClean());
redemptionEndDate_ = null;
}
return redemptionEndDateBuilder_;
}
private java.util.List redemptionType_ =
java.util.Collections.emptyList();
private void ensureRedemptionTypeIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
redemptionType_ = new java.util.ArrayList(redemptionType_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @return A list containing the redemptionType.
*/
public java.util.List getRedemptionTypeList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType>(redemptionType_, redemptionType_converter_);
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @return The count of redemptionType.
*/
public int getRedemptionTypeCount() {
return redemptionType_.size();
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param index The index of the element to return.
* @return The redemptionType at the given index.
*/
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType getRedemptionType(int index) {
return redemptionType_converter_.convert(redemptionType_.get(index));
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param index The index to set the value at.
* @param value The redemptionType to set.
* @return This builder for chaining.
*/
public Builder setRedemptionType(
int index, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType value) {
if (value == null) {
throw new NullPointerException();
}
ensureRedemptionTypeIsMutable();
redemptionType_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param value The redemptionType to add.
* @return This builder for chaining.
*/
public Builder addRedemptionType(com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType value) {
if (value == null) {
throw new NullPointerException();
}
ensureRedemptionTypeIsMutable();
redemptionType_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param values The redemptionType to add.
* @return This builder for chaining.
*/
public Builder addAllRedemptionType(
java.lang.Iterable extends com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType> values) {
ensureRedemptionTypeIsMutable();
for (com.passkit.grpc.SingleUseCoupons.Offer.RedemptionType value : values) {
redemptionType_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @return This builder for chaining.
*/
public Builder clearRedemptionType() {
redemptionType_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @return A list containing the enum numeric values on the wire for redemptionType.
*/
public java.util.List
getRedemptionTypeValueList() {
return java.util.Collections.unmodifiableList(redemptionType_);
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of redemptionType at the given index.
*/
public int getRedemptionTypeValue(int index) {
return redemptionType_.get(index);
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of redemptionType at the given index.
* @return This builder for chaining.
*/
public Builder setRedemptionTypeValue(
int index, int value) {
ensureRedemptionTypeIsMutable();
redemptionType_.set(index, value);
onChanged();
return this;
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param value The enum numeric value on the wire for redemptionType to add.
* @return This builder for chaining.
*/
public Builder addRedemptionTypeValue(int value) {
ensureRedemptionTypeIsMutable();
redemptionType_.add(value);
onChanged();
return this;
}
/**
*
* Dictates redemption type; defaults to API.
*
*
* repeated .single_use_coupons.RedemptionType redemptionType = 3;
* @param values The enum numeric values on the wire for redemptionType to add.
* @return This builder for chaining.
*/
public Builder addAllRedemptionTypeValue(
java.lang.Iterable values) {
ensureRedemptionTypeIsMutable();
for (int value : values) {
redemptionType_.add(value);
}
onChanged();
return this;
}
private com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettingsOrBuilder> codeProvidedOnRedeemSettingsBuilder_;
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
* @return Whether the codeProvidedOnRedeemSettings field is set.
*/
public boolean hasCodeProvidedOnRedeemSettings() {
return codeProvidedOnRedeemSettingsBuilder_ != null || codeProvidedOnRedeemSettings_ != null;
}
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
* @return The codeProvidedOnRedeemSettings.
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings getCodeProvidedOnRedeemSettings() {
if (codeProvidedOnRedeemSettingsBuilder_ == null) {
return codeProvidedOnRedeemSettings_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.getDefaultInstance() : codeProvidedOnRedeemSettings_;
} else {
return codeProvidedOnRedeemSettingsBuilder_.getMessage();
}
}
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
*/
public Builder setCodeProvidedOnRedeemSettings(com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings value) {
if (codeProvidedOnRedeemSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
codeProvidedOnRedeemSettings_ = value;
onChanged();
} else {
codeProvidedOnRedeemSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
*/
public Builder setCodeProvidedOnRedeemSettings(
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.Builder builderForValue) {
if (codeProvidedOnRedeemSettingsBuilder_ == null) {
codeProvidedOnRedeemSettings_ = builderForValue.build();
onChanged();
} else {
codeProvidedOnRedeemSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
*/
public Builder mergeCodeProvidedOnRedeemSettings(com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings value) {
if (codeProvidedOnRedeemSettingsBuilder_ == null) {
if (codeProvidedOnRedeemSettings_ != null) {
codeProvidedOnRedeemSettings_ =
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.newBuilder(codeProvidedOnRedeemSettings_).mergeFrom(value).buildPartial();
} else {
codeProvidedOnRedeemSettings_ = value;
}
onChanged();
} else {
codeProvidedOnRedeemSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
*/
public Builder clearCodeProvidedOnRedeemSettings() {
if (codeProvidedOnRedeemSettingsBuilder_ == null) {
codeProvidedOnRedeemSettings_ = null;
onChanged();
} else {
codeProvidedOnRedeemSettings_ = null;
codeProvidedOnRedeemSettingsBuilder_ = null;
}
return this;
}
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.Builder getCodeProvidedOnRedeemSettingsBuilder() {
onChanged();
return getCodeProvidedOnRedeemSettingsFieldBuilder().getBuilder();
}
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettingsOrBuilder getCodeProvidedOnRedeemSettingsOrBuilder() {
if (codeProvidedOnRedeemSettingsBuilder_ != null) {
return codeProvidedOnRedeemSettingsBuilder_.getMessageOrBuilder();
} else {
return codeProvidedOnRedeemSettings_ == null ?
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.getDefaultInstance() : codeProvidedOnRedeemSettings_;
}
}
/**
*
* Settings for code provided on redemption; a list of valid codes and possible invalid-code error message needs to be provided.
*
*
* .single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings codeProvidedOnRedeemSettings = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettingsOrBuilder>
getCodeProvidedOnRedeemSettingsFieldBuilder() {
if (codeProvidedOnRedeemSettingsBuilder_ == null) {
codeProvidedOnRedeemSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettingsOrBuilder>(
getCodeProvidedOnRedeemSettings(),
getParentForChildren(),
isClean());
codeProvidedOnRedeemSettings_ = null;
}
return codeProvidedOnRedeemSettingsBuilder_;
}
private com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings fixedCodeSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettingsOrBuilder> fixedCodeSettingsBuilder_;
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
* @return Whether the fixedCodeSettings field is set.
*/
public boolean hasFixedCodeSettings() {
return fixedCodeSettingsBuilder_ != null || fixedCodeSettings_ != null;
}
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
* @return The fixedCodeSettings.
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings getFixedCodeSettings() {
if (fixedCodeSettingsBuilder_ == null) {
return fixedCodeSettings_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.getDefaultInstance() : fixedCodeSettings_;
} else {
return fixedCodeSettingsBuilder_.getMessage();
}
}
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
*/
public Builder setFixedCodeSettings(com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings value) {
if (fixedCodeSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fixedCodeSettings_ = value;
onChanged();
} else {
fixedCodeSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
*/
public Builder setFixedCodeSettings(
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.Builder builderForValue) {
if (fixedCodeSettingsBuilder_ == null) {
fixedCodeSettings_ = builderForValue.build();
onChanged();
} else {
fixedCodeSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
*/
public Builder mergeFixedCodeSettings(com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings value) {
if (fixedCodeSettingsBuilder_ == null) {
if (fixedCodeSettings_ != null) {
fixedCodeSettings_ =
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.newBuilder(fixedCodeSettings_).mergeFrom(value).buildPartial();
} else {
fixedCodeSettings_ = value;
}
onChanged();
} else {
fixedCodeSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
*/
public Builder clearFixedCodeSettings() {
if (fixedCodeSettingsBuilder_ == null) {
fixedCodeSettings_ = null;
onChanged();
} else {
fixedCodeSettings_ = null;
fixedCodeSettingsBuilder_ = null;
}
return this;
}
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.Builder getFixedCodeSettingsBuilder() {
onChanged();
return getFixedCodeSettingsFieldBuilder().getBuilder();
}
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettingsOrBuilder getFixedCodeSettingsOrBuilder() {
if (fixedCodeSettingsBuilder_ != null) {
return fixedCodeSettingsBuilder_.getMessageOrBuilder();
} else {
return fixedCodeSettings_ == null ?
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.getDefaultInstance() : fixedCodeSettings_;
}
}
/**
*
* Settings for fixed code redemption.
*
*
* .single_use_coupons.CustomerInitiatedFixedCodeSettings fixedCodeSettings = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettingsOrBuilder>
getFixedCodeSettingsFieldBuilder() {
if (fixedCodeSettingsBuilder_ == null) {
fixedCodeSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettingsOrBuilder>(
getFixedCodeSettings(),
getParentForChildren(),
isClean());
fixedCodeSettings_ = null;
}
return fixedCodeSettingsBuilder_;
}
private com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage standardSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage, com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.Builder, com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPageOrBuilder> standardSettingsBuilder_;
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
* @return Whether the standardSettings field is set.
*/
public boolean hasStandardSettings() {
return standardSettingsBuilder_ != null || standardSettings_ != null;
}
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
* @return The standardSettings.
*/
public com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage getStandardSettings() {
if (standardSettingsBuilder_ == null) {
return standardSettings_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.getDefaultInstance() : standardSettings_;
} else {
return standardSettingsBuilder_.getMessage();
}
}
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
*/
public Builder setStandardSettings(com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage value) {
if (standardSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
standardSettings_ = value;
onChanged();
} else {
standardSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
*/
public Builder setStandardSettings(
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.Builder builderForValue) {
if (standardSettingsBuilder_ == null) {
standardSettings_ = builderForValue.build();
onChanged();
} else {
standardSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
*/
public Builder mergeStandardSettings(com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage value) {
if (standardSettingsBuilder_ == null) {
if (standardSettings_ != null) {
standardSettings_ =
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.newBuilder(standardSettings_).mergeFrom(value).buildPartial();
} else {
standardSettings_ = value;
}
onChanged();
} else {
standardSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
*/
public Builder clearStandardSettings() {
if (standardSettingsBuilder_ == null) {
standardSettings_ = null;
onChanged();
} else {
standardSettings_ = null;
standardSettingsBuilder_ = null;
}
return this;
}
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.Builder getStandardSettingsBuilder() {
onChanged();
return getStandardSettingsFieldBuilder().getBuilder();
}
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPageOrBuilder getStandardSettingsOrBuilder() {
if (standardSettingsBuilder_ != null) {
return standardSettingsBuilder_.getMessageOrBuilder();
} else {
return standardSettings_ == null ?
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.getDefaultInstance() : standardSettings_;
}
}
/**
*
* Standard redemption page design, hosted by PassKit. Mandatory field if the type is any of the customer initiated redemptions.
*
*
* .single_use_coupons.StandardPassKitHostedPage standardSettings = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage, com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.Builder, com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPageOrBuilder>
getStandardSettingsFieldBuilder() {
if (standardSettingsBuilder_ == null) {
standardSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage, com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.Builder, com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPageOrBuilder>(
getStandardSettings(),
getParentForChildren(),
isClean());
standardSettings_ = null;
}
return standardSettingsBuilder_;
}
@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:single_use_coupons.RedemptionSettings)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.RedemptionSettings)
private static final com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RedemptionSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RedemptionSettings(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.RedemptionSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CustomerInitiatedFixedCodeSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.CustomerInitiatedFixedCodeSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* For fixed code customer initiated redemption; the fixed code to display needs to be set.
*
*
* string fixedCode = 1;
* @return The fixedCode.
*/
java.lang.String getFixedCode();
/**
*
* For fixed code customer initiated redemption; the fixed code to display needs to be set.
*
*
* string fixedCode = 1;
* @return The bytes for fixedCode.
*/
com.google.protobuf.ByteString
getFixedCodeBytes();
/**
*
* If set to true will use coupon.sku as the fixed code.
*
*
* bool useCouponSku = 2;
* @return The useCouponSku.
*/
boolean getUseCouponSku();
/**
*
* If set will render a barcode underneath the fixed code with as contents the fixed code.
*
*
* .io.BarcodeType barcode = 3;
* @return The enum numeric value on the wire for barcode.
*/
int getBarcodeValue();
/**
*
* If set will render a barcode underneath the fixed code with as contents the fixed code.
*
*
* .io.BarcodeType barcode = 3;
* @return The barcode.
*/
com.passkit.grpc.Template.BarcodeType getBarcode();
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
* @return Whether the redemptionTimer field is set.
*/
boolean hasRedemptionTimer();
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
* @return The redemptionTimer.
*/
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings getRedemptionTimer();
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
*/
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettingsOrBuilder getRedemptionTimerOrBuilder();
}
/**
* Protobuf type {@code single_use_coupons.CustomerInitiatedFixedCodeSettings}
*/
public static final class CustomerInitiatedFixedCodeSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.CustomerInitiatedFixedCodeSettings)
CustomerInitiatedFixedCodeSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomerInitiatedFixedCodeSettings.newBuilder() to construct.
private CustomerInitiatedFixedCodeSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomerInitiatedFixedCodeSettings() {
fixedCode_ = "";
barcode_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CustomerInitiatedFixedCodeSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CustomerInitiatedFixedCodeSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
fixedCode_ = s;
break;
}
case 16: {
useCouponSku_ = input.readBool();
break;
}
case 24: {
int rawValue = input.readEnum();
barcode_ = rawValue;
break;
}
case 34: {
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.Builder subBuilder = null;
if (redemptionTimer_ != null) {
subBuilder = redemptionTimer_.toBuilder();
}
redemptionTimer_ = input.readMessage(com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(redemptionTimer_);
redemptionTimer_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CustomerInitiatedFixedCodeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CustomerInitiatedFixedCodeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.class, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.Builder.class);
}
public static final int FIXEDCODE_FIELD_NUMBER = 1;
private volatile java.lang.Object fixedCode_;
/**
*
* For fixed code customer initiated redemption; the fixed code to display needs to be set.
*
*
* string fixedCode = 1;
* @return The fixedCode.
*/
@java.lang.Override
public java.lang.String getFixedCode() {
java.lang.Object ref = fixedCode_;
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();
fixedCode_ = s;
return s;
}
}
/**
*
* For fixed code customer initiated redemption; the fixed code to display needs to be set.
*
*
* string fixedCode = 1;
* @return The bytes for fixedCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFixedCodeBytes() {
java.lang.Object ref = fixedCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fixedCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USECOUPONSKU_FIELD_NUMBER = 2;
private boolean useCouponSku_;
/**
*
* If set to true will use coupon.sku as the fixed code.
*
*
* bool useCouponSku = 2;
* @return The useCouponSku.
*/
@java.lang.Override
public boolean getUseCouponSku() {
return useCouponSku_;
}
public static final int BARCODE_FIELD_NUMBER = 3;
private int barcode_;
/**
*
* If set will render a barcode underneath the fixed code with as contents the fixed code.
*
*
* .io.BarcodeType barcode = 3;
* @return The enum numeric value on the wire for barcode.
*/
@java.lang.Override public int getBarcodeValue() {
return barcode_;
}
/**
*
* If set will render a barcode underneath the fixed code with as contents the fixed code.
*
*
* .io.BarcodeType barcode = 3;
* @return The barcode.
*/
@java.lang.Override public com.passkit.grpc.Template.BarcodeType getBarcode() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.BarcodeType result = com.passkit.grpc.Template.BarcodeType.valueOf(barcode_);
return result == null ? com.passkit.grpc.Template.BarcodeType.UNRECOGNIZED : result;
}
public static final int REDEMPTIONTIMER_FIELD_NUMBER = 4;
private com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings redemptionTimer_;
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
* @return Whether the redemptionTimer field is set.
*/
@java.lang.Override
public boolean hasRedemptionTimer() {
return redemptionTimer_ != null;
}
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
* @return The redemptionTimer.
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings getRedemptionTimer() {
return redemptionTimer_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.getDefaultInstance() : redemptionTimer_;
}
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettingsOrBuilder getRedemptionTimerOrBuilder() {
return getRedemptionTimer();
}
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 (!getFixedCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fixedCode_);
}
if (useCouponSku_ != false) {
output.writeBool(2, useCouponSku_);
}
if (barcode_ != com.passkit.grpc.Template.BarcodeType.BARCODE_TYPE_DO_NOT_USE.getNumber()) {
output.writeEnum(3, barcode_);
}
if (redemptionTimer_ != null) {
output.writeMessage(4, getRedemptionTimer());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getFixedCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fixedCode_);
}
if (useCouponSku_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, useCouponSku_);
}
if (barcode_ != com.passkit.grpc.Template.BarcodeType.BARCODE_TYPE_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, barcode_);
}
if (redemptionTimer_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getRedemptionTimer());
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings other = (com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings) obj;
if (!getFixedCode()
.equals(other.getFixedCode())) return false;
if (getUseCouponSku()
!= other.getUseCouponSku()) return false;
if (barcode_ != other.barcode_) return false;
if (hasRedemptionTimer() != other.hasRedemptionTimer()) return false;
if (hasRedemptionTimer()) {
if (!getRedemptionTimer()
.equals(other.getRedemptionTimer())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + FIXEDCODE_FIELD_NUMBER;
hash = (53 * hash) + getFixedCode().hashCode();
hash = (37 * hash) + USECOUPONSKU_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUseCouponSku());
hash = (37 * hash) + BARCODE_FIELD_NUMBER;
hash = (53 * hash) + barcode_;
if (hasRedemptionTimer()) {
hash = (37 * hash) + REDEMPTIONTIMER_FIELD_NUMBER;
hash = (53 * hash) + getRedemptionTimer().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings 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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings 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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings 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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings 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;
}
/**
* Protobuf type {@code single_use_coupons.CustomerInitiatedFixedCodeSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.CustomerInitiatedFixedCodeSettings)
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CustomerInitiatedFixedCodeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CustomerInitiatedFixedCodeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.class, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
fixedCode_ = "";
useCouponSku_ = false;
barcode_ = 0;
if (redemptionTimerBuilder_ == null) {
redemptionTimer_ = null;
} else {
redemptionTimer_ = null;
redemptionTimerBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CustomerInitiatedFixedCodeSettings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings build() {
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings result = new com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings(this);
result.fixedCode_ = fixedCode_;
result.useCouponSku_ = useCouponSku_;
result.barcode_ = barcode_;
if (redemptionTimerBuilder_ == null) {
result.redemptionTimer_ = redemptionTimer_;
} else {
result.redemptionTimer_ = redemptionTimerBuilder_.build();
}
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings.getDefaultInstance()) return this;
if (!other.getFixedCode().isEmpty()) {
fixedCode_ = other.fixedCode_;
onChanged();
}
if (other.getUseCouponSku() != false) {
setUseCouponSku(other.getUseCouponSku());
}
if (other.barcode_ != 0) {
setBarcodeValue(other.getBarcodeValue());
}
if (other.hasRedemptionTimer()) {
mergeRedemptionTimer(other.getRedemptionTimer());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object fixedCode_ = "";
/**
*
* For fixed code customer initiated redemption; the fixed code to display needs to be set.
*
*
* string fixedCode = 1;
* @return The fixedCode.
*/
public java.lang.String getFixedCode() {
java.lang.Object ref = fixedCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fixedCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* For fixed code customer initiated redemption; the fixed code to display needs to be set.
*
*
* string fixedCode = 1;
* @return The bytes for fixedCode.
*/
public com.google.protobuf.ByteString
getFixedCodeBytes() {
java.lang.Object ref = fixedCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fixedCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* For fixed code customer initiated redemption; the fixed code to display needs to be set.
*
*
* string fixedCode = 1;
* @param value The fixedCode to set.
* @return This builder for chaining.
*/
public Builder setFixedCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fixedCode_ = value;
onChanged();
return this;
}
/**
*
* For fixed code customer initiated redemption; the fixed code to display needs to be set.
*
*
* string fixedCode = 1;
* @return This builder for chaining.
*/
public Builder clearFixedCode() {
fixedCode_ = getDefaultInstance().getFixedCode();
onChanged();
return this;
}
/**
*
* For fixed code customer initiated redemption; the fixed code to display needs to be set.
*
*
* string fixedCode = 1;
* @param value The bytes for fixedCode to set.
* @return This builder for chaining.
*/
public Builder setFixedCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fixedCode_ = value;
onChanged();
return this;
}
private boolean useCouponSku_ ;
/**
*
* If set to true will use coupon.sku as the fixed code.
*
*
* bool useCouponSku = 2;
* @return The useCouponSku.
*/
@java.lang.Override
public boolean getUseCouponSku() {
return useCouponSku_;
}
/**
*
* If set to true will use coupon.sku as the fixed code.
*
*
* bool useCouponSku = 2;
* @param value The useCouponSku to set.
* @return This builder for chaining.
*/
public Builder setUseCouponSku(boolean value) {
useCouponSku_ = value;
onChanged();
return this;
}
/**
*
* If set to true will use coupon.sku as the fixed code.
*
*
* bool useCouponSku = 2;
* @return This builder for chaining.
*/
public Builder clearUseCouponSku() {
useCouponSku_ = false;
onChanged();
return this;
}
private int barcode_ = 0;
/**
*
* If set will render a barcode underneath the fixed code with as contents the fixed code.
*
*
* .io.BarcodeType barcode = 3;
* @return The enum numeric value on the wire for barcode.
*/
@java.lang.Override public int getBarcodeValue() {
return barcode_;
}
/**
*
* If set will render a barcode underneath the fixed code with as contents the fixed code.
*
*
* .io.BarcodeType barcode = 3;
* @param value The enum numeric value on the wire for barcode to set.
* @return This builder for chaining.
*/
public Builder setBarcodeValue(int value) {
barcode_ = value;
onChanged();
return this;
}
/**
*
* If set will render a barcode underneath the fixed code with as contents the fixed code.
*
*
* .io.BarcodeType barcode = 3;
* @return The barcode.
*/
@java.lang.Override
public com.passkit.grpc.Template.BarcodeType getBarcode() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Template.BarcodeType result = com.passkit.grpc.Template.BarcodeType.valueOf(barcode_);
return result == null ? com.passkit.grpc.Template.BarcodeType.UNRECOGNIZED : result;
}
/**
*
* If set will render a barcode underneath the fixed code with as contents the fixed code.
*
*
* .io.BarcodeType barcode = 3;
* @param value The barcode to set.
* @return This builder for chaining.
*/
public Builder setBarcode(com.passkit.grpc.Template.BarcodeType value) {
if (value == null) {
throw new NullPointerException();
}
barcode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* If set will render a barcode underneath the fixed code with as contents the fixed code.
*
*
* .io.BarcodeType barcode = 3;
* @return This builder for chaining.
*/
public Builder clearBarcode() {
barcode_ = 0;
onChanged();
return this;
}
private com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings redemptionTimer_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettingsOrBuilder> redemptionTimerBuilder_;
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
* @return Whether the redemptionTimer field is set.
*/
public boolean hasRedemptionTimer() {
return redemptionTimerBuilder_ != null || redemptionTimer_ != null;
}
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
* @return The redemptionTimer.
*/
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings getRedemptionTimer() {
if (redemptionTimerBuilder_ == null) {
return redemptionTimer_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.getDefaultInstance() : redemptionTimer_;
} else {
return redemptionTimerBuilder_.getMessage();
}
}
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
*/
public Builder setRedemptionTimer(com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings value) {
if (redemptionTimerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
redemptionTimer_ = value;
onChanged();
} else {
redemptionTimerBuilder_.setMessage(value);
}
return this;
}
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
*/
public Builder setRedemptionTimer(
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.Builder builderForValue) {
if (redemptionTimerBuilder_ == null) {
redemptionTimer_ = builderForValue.build();
onChanged();
} else {
redemptionTimerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
*/
public Builder mergeRedemptionTimer(com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings value) {
if (redemptionTimerBuilder_ == null) {
if (redemptionTimer_ != null) {
redemptionTimer_ =
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.newBuilder(redemptionTimer_).mergeFrom(value).buildPartial();
} else {
redemptionTimer_ = value;
}
onChanged();
} else {
redemptionTimerBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
*/
public Builder clearRedemptionTimer() {
if (redemptionTimerBuilder_ == null) {
redemptionTimer_ = null;
onChanged();
} else {
redemptionTimer_ = null;
redemptionTimerBuilder_ = null;
}
return this;
}
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.Builder getRedemptionTimerBuilder() {
onChanged();
return getRedemptionTimerFieldBuilder().getBuilder();
}
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettingsOrBuilder getRedemptionTimerOrBuilder() {
if (redemptionTimerBuilder_ != null) {
return redemptionTimerBuilder_.getMessageOrBuilder();
} else {
return redemptionTimer_ == null ?
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.getDefaultInstance() : redemptionTimer_;
}
}
/**
*
* Count down timer for redemption.
*
*
* .single_use_coupons.RedemptionTimerSettings redemptionTimer = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettingsOrBuilder>
getRedemptionTimerFieldBuilder() {
if (redemptionTimerBuilder_ == null) {
redemptionTimerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.Builder, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettingsOrBuilder>(
getRedemptionTimer(),
getParentForChildren(),
isClean());
redemptionTimer_ = null;
}
return redemptionTimerBuilder_;
}
@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:single_use_coupons.CustomerInitiatedFixedCodeSettings)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.CustomerInitiatedFixedCodeSettings)
private static final com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomerInitiatedFixedCodeSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomerInitiatedFixedCodeSettings(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedFixedCodeSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RedemptionTimerSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.RedemptionTimerSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* The number of seconds the redemption page displays the redemption code. When the times runs out, the redemption page will show the 'redemption period expired' message.
*
*
* uint32 timeoutSeconds = 1;
* @return The timeoutSeconds.
*/
int getTimeoutSeconds();
/**
*
* Help text rendered above redemption timer.
*
*
* string timerHelpText = 2;
* @return The timerHelpText.
*/
java.lang.String getTimerHelpText();
/**
*
* Help text rendered above redemption timer.
*
*
* string timerHelpText = 2;
* @return The bytes for timerHelpText.
*/
com.google.protobuf.ByteString
getTimerHelpTextBytes();
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
* @return Whether the localizedTimeHelpText field is set.
*/
boolean hasLocalizedTimeHelpText();
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
* @return The localizedTimeHelpText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedTimeHelpText();
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTimeHelpTextOrBuilder();
}
/**
* Protobuf type {@code single_use_coupons.RedemptionTimerSettings}
*/
public static final class RedemptionTimerSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.RedemptionTimerSettings)
RedemptionTimerSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use RedemptionTimerSettings.newBuilder() to construct.
private RedemptionTimerSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RedemptionTimerSettings() {
timerHelpText_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RedemptionTimerSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RedemptionTimerSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
timeoutSeconds_ = input.readUInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
timerHelpText_ = s;
break;
}
case 26: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedTimeHelpText_ != null) {
subBuilder = localizedTimeHelpText_.toBuilder();
}
localizedTimeHelpText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedTimeHelpText_);
localizedTimeHelpText_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_RedemptionTimerSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_RedemptionTimerSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.class, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.Builder.class);
}
public static final int TIMEOUTSECONDS_FIELD_NUMBER = 1;
private int timeoutSeconds_;
/**
*
* The number of seconds the redemption page displays the redemption code. When the times runs out, the redemption page will show the 'redemption period expired' message.
*
*
* uint32 timeoutSeconds = 1;
* @return The timeoutSeconds.
*/
@java.lang.Override
public int getTimeoutSeconds() {
return timeoutSeconds_;
}
public static final int TIMERHELPTEXT_FIELD_NUMBER = 2;
private volatile java.lang.Object timerHelpText_;
/**
*
* Help text rendered above redemption timer.
*
*
* string timerHelpText = 2;
* @return The timerHelpText.
*/
@java.lang.Override
public java.lang.String getTimerHelpText() {
java.lang.Object ref = timerHelpText_;
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();
timerHelpText_ = s;
return s;
}
}
/**
*
* Help text rendered above redemption timer.
*
*
* string timerHelpText = 2;
* @return The bytes for timerHelpText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTimerHelpTextBytes() {
java.lang.Object ref = timerHelpText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timerHelpText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDTIMEHELPTEXT_FIELD_NUMBER = 3;
private com.passkit.grpc.Localization.LocalizedString localizedTimeHelpText_;
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
* @return Whether the localizedTimeHelpText field is set.
*/
@java.lang.Override
public boolean hasLocalizedTimeHelpText() {
return localizedTimeHelpText_ != null;
}
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
* @return The localizedTimeHelpText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedTimeHelpText() {
return localizedTimeHelpText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTimeHelpText_;
}
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTimeHelpTextOrBuilder() {
return getLocalizedTimeHelpText();
}
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 (timeoutSeconds_ != 0) {
output.writeUInt32(1, timeoutSeconds_);
}
if (!getTimerHelpTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, timerHelpText_);
}
if (localizedTimeHelpText_ != null) {
output.writeMessage(3, getLocalizedTimeHelpText());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timeoutSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, timeoutSeconds_);
}
if (!getTimerHelpTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, timerHelpText_);
}
if (localizedTimeHelpText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLocalizedTimeHelpText());
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings other = (com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings) obj;
if (getTimeoutSeconds()
!= other.getTimeoutSeconds()) return false;
if (!getTimerHelpText()
.equals(other.getTimerHelpText())) return false;
if (hasLocalizedTimeHelpText() != other.hasLocalizedTimeHelpText()) return false;
if (hasLocalizedTimeHelpText()) {
if (!getLocalizedTimeHelpText()
.equals(other.getLocalizedTimeHelpText())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + TIMEOUTSECONDS_FIELD_NUMBER;
hash = (53 * hash) + getTimeoutSeconds();
hash = (37 * hash) + TIMERHELPTEXT_FIELD_NUMBER;
hash = (53 * hash) + getTimerHelpText().hashCode();
if (hasLocalizedTimeHelpText()) {
hash = (37 * hash) + LOCALIZEDTIMEHELPTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedTimeHelpText().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings 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.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings 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.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings 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.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings 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;
}
/**
* Protobuf type {@code single_use_coupons.RedemptionTimerSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.RedemptionTimerSettings)
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_RedemptionTimerSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_RedemptionTimerSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.class, com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
timeoutSeconds_ = 0;
timerHelpText_ = "";
if (localizedTimeHelpTextBuilder_ == null) {
localizedTimeHelpText_ = null;
} else {
localizedTimeHelpText_ = null;
localizedTimeHelpTextBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_RedemptionTimerSettings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings build() {
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings result = new com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings(this);
result.timeoutSeconds_ = timeoutSeconds_;
result.timerHelpText_ = timerHelpText_;
if (localizedTimeHelpTextBuilder_ == null) {
result.localizedTimeHelpText_ = localizedTimeHelpText_;
} else {
result.localizedTimeHelpText_ = localizedTimeHelpTextBuilder_.build();
}
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings.getDefaultInstance()) return this;
if (other.getTimeoutSeconds() != 0) {
setTimeoutSeconds(other.getTimeoutSeconds());
}
if (!other.getTimerHelpText().isEmpty()) {
timerHelpText_ = other.timerHelpText_;
onChanged();
}
if (other.hasLocalizedTimeHelpText()) {
mergeLocalizedTimeHelpText(other.getLocalizedTimeHelpText());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int timeoutSeconds_ ;
/**
*
* The number of seconds the redemption page displays the redemption code. When the times runs out, the redemption page will show the 'redemption period expired' message.
*
*
* uint32 timeoutSeconds = 1;
* @return The timeoutSeconds.
*/
@java.lang.Override
public int getTimeoutSeconds() {
return timeoutSeconds_;
}
/**
*
* The number of seconds the redemption page displays the redemption code. When the times runs out, the redemption page will show the 'redemption period expired' message.
*
*
* uint32 timeoutSeconds = 1;
* @param value The timeoutSeconds to set.
* @return This builder for chaining.
*/
public Builder setTimeoutSeconds(int value) {
timeoutSeconds_ = value;
onChanged();
return this;
}
/**
*
* The number of seconds the redemption page displays the redemption code. When the times runs out, the redemption page will show the 'redemption period expired' message.
*
*
* uint32 timeoutSeconds = 1;
* @return This builder for chaining.
*/
public Builder clearTimeoutSeconds() {
timeoutSeconds_ = 0;
onChanged();
return this;
}
private java.lang.Object timerHelpText_ = "";
/**
*
* Help text rendered above redemption timer.
*
*
* string timerHelpText = 2;
* @return The timerHelpText.
*/
public java.lang.String getTimerHelpText() {
java.lang.Object ref = timerHelpText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timerHelpText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Help text rendered above redemption timer.
*
*
* string timerHelpText = 2;
* @return The bytes for timerHelpText.
*/
public com.google.protobuf.ByteString
getTimerHelpTextBytes() {
java.lang.Object ref = timerHelpText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timerHelpText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Help text rendered above redemption timer.
*
*
* string timerHelpText = 2;
* @param value The timerHelpText to set.
* @return This builder for chaining.
*/
public Builder setTimerHelpText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
timerHelpText_ = value;
onChanged();
return this;
}
/**
*
* Help text rendered above redemption timer.
*
*
* string timerHelpText = 2;
* @return This builder for chaining.
*/
public Builder clearTimerHelpText() {
timerHelpText_ = getDefaultInstance().getTimerHelpText();
onChanged();
return this;
}
/**
*
* Help text rendered above redemption timer.
*
*
* string timerHelpText = 2;
* @param value The bytes for timerHelpText to set.
* @return This builder for chaining.
*/
public Builder setTimerHelpTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
timerHelpText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedTimeHelpText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedTimeHelpTextBuilder_;
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
* @return Whether the localizedTimeHelpText field is set.
*/
public boolean hasLocalizedTimeHelpText() {
return localizedTimeHelpTextBuilder_ != null || localizedTimeHelpText_ != null;
}
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
* @return The localizedTimeHelpText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedTimeHelpText() {
if (localizedTimeHelpTextBuilder_ == null) {
return localizedTimeHelpText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTimeHelpText_;
} else {
return localizedTimeHelpTextBuilder_.getMessage();
}
}
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
*/
public Builder setLocalizedTimeHelpText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedTimeHelpTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedTimeHelpText_ = value;
onChanged();
} else {
localizedTimeHelpTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
*/
public Builder setLocalizedTimeHelpText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedTimeHelpTextBuilder_ == null) {
localizedTimeHelpText_ = builderForValue.build();
onChanged();
} else {
localizedTimeHelpTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
*/
public Builder mergeLocalizedTimeHelpText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedTimeHelpTextBuilder_ == null) {
if (localizedTimeHelpText_ != null) {
localizedTimeHelpText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedTimeHelpText_).mergeFrom(value).buildPartial();
} else {
localizedTimeHelpText_ = value;
}
onChanged();
} else {
localizedTimeHelpTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
*/
public Builder clearLocalizedTimeHelpText() {
if (localizedTimeHelpTextBuilder_ == null) {
localizedTimeHelpText_ = null;
onChanged();
} else {
localizedTimeHelpText_ = null;
localizedTimeHelpTextBuilder_ = null;
}
return this;
}
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedTimeHelpTextBuilder() {
onChanged();
return getLocalizedTimeHelpTextFieldBuilder().getBuilder();
}
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTimeHelpTextOrBuilder() {
if (localizedTimeHelpTextBuilder_ != null) {
return localizedTimeHelpTextBuilder_.getMessageOrBuilder();
} else {
return localizedTimeHelpText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTimeHelpText_;
}
}
/**
*
* Localized help text for redemption timer.
*
*
* .io.LocalizedString localizedTimeHelpText = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedTimeHelpTextFieldBuilder() {
if (localizedTimeHelpTextBuilder_ == null) {
localizedTimeHelpTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedTimeHelpText(),
getParentForChildren(),
isClean());
localizedTimeHelpText_ = null;
}
return localizedTimeHelpTextBuilder_;
}
@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:single_use_coupons.RedemptionTimerSettings)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.RedemptionTimerSettings)
private static final com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RedemptionTimerSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RedemptionTimerSettings(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.RedemptionTimerSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CustomerInitiatedCodeProvideOnRedeemSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @return A list containing the validCodes.
*/
java.util.List
getValidCodesList();
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @return The count of validCodes.
*/
int getValidCodesCount();
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @param index The index of the element to return.
* @return The validCodes at the given index.
*/
java.lang.String getValidCodes(int index);
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @param index The index of the value to return.
* @return The bytes of the validCodes at the given index.
*/
com.google.protobuf.ByteString
getValidCodesBytes(int index);
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
* @return Whether the redemptionCodeInput field is set.
*/
boolean hasRedemptionCodeInput();
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
* @return The redemptionCodeInput.
*/
com.passkit.grpc.SingleUseCoupons.Offer.InputField getRedemptionCodeInput();
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
*/
com.passkit.grpc.SingleUseCoupons.Offer.InputFieldOrBuilder getRedemptionCodeInputOrBuilder();
/**
*
* Submit button to confirm the validation code.
*
*
* string submitButtonText = 3;
* @return The submitButtonText.
*/
java.lang.String getSubmitButtonText();
/**
*
* Submit button to confirm the validation code.
*
*
* string submitButtonText = 3;
* @return The bytes for submitButtonText.
*/
com.google.protobuf.ByteString
getSubmitButtonTextBytes();
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
* @return Whether the localizedSubmitButtonText field is set.
*/
boolean hasLocalizedSubmitButtonText();
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
* @return The localizedSubmitButtonText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedSubmitButtonText();
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSubmitButtonTextOrBuilder();
}
/**
* Protobuf type {@code single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings}
*/
public static final class CustomerInitiatedCodeProvideOnRedeemSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings)
CustomerInitiatedCodeProvideOnRedeemSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomerInitiatedCodeProvideOnRedeemSettings.newBuilder() to construct.
private CustomerInitiatedCodeProvideOnRedeemSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomerInitiatedCodeProvideOnRedeemSettings() {
validCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
submitButtonText_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CustomerInitiatedCodeProvideOnRedeemSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CustomerInitiatedCodeProvideOnRedeemSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
validCodes_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
validCodes_.add(s);
break;
}
case 18: {
com.passkit.grpc.SingleUseCoupons.Offer.InputField.Builder subBuilder = null;
if (redemptionCodeInput_ != null) {
subBuilder = redemptionCodeInput_.toBuilder();
}
redemptionCodeInput_ = input.readMessage(com.passkit.grpc.SingleUseCoupons.Offer.InputField.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(redemptionCodeInput_);
redemptionCodeInput_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
submitButtonText_ = s;
break;
}
case 34: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedSubmitButtonText_ != null) {
subBuilder = localizedSubmitButtonText_.toBuilder();
}
localizedSubmitButtonText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedSubmitButtonText_);
localizedSubmitButtonText_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
validCodes_ = validCodes_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CustomerInitiatedCodeProvideOnRedeemSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CustomerInitiatedCodeProvideOnRedeemSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.class, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.Builder.class);
}
public static final int VALIDCODES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList validCodes_;
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @return A list containing the validCodes.
*/
public com.google.protobuf.ProtocolStringList
getValidCodesList() {
return validCodes_;
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @return The count of validCodes.
*/
public int getValidCodesCount() {
return validCodes_.size();
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @param index The index of the element to return.
* @return The validCodes at the given index.
*/
public java.lang.String getValidCodes(int index) {
return validCodes_.get(index);
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @param index The index of the value to return.
* @return The bytes of the validCodes at the given index.
*/
public com.google.protobuf.ByteString
getValidCodesBytes(int index) {
return validCodes_.getByteString(index);
}
public static final int REDEMPTIONCODEINPUT_FIELD_NUMBER = 2;
private com.passkit.grpc.SingleUseCoupons.Offer.InputField redemptionCodeInput_;
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
* @return Whether the redemptionCodeInput field is set.
*/
@java.lang.Override
public boolean hasRedemptionCodeInput() {
return redemptionCodeInput_ != null;
}
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
* @return The redemptionCodeInput.
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.InputField getRedemptionCodeInput() {
return redemptionCodeInput_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.InputField.getDefaultInstance() : redemptionCodeInput_;
}
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.InputFieldOrBuilder getRedemptionCodeInputOrBuilder() {
return getRedemptionCodeInput();
}
public static final int SUBMITBUTTONTEXT_FIELD_NUMBER = 3;
private volatile java.lang.Object submitButtonText_;
/**
*
* Submit button to confirm the validation code.
*
*
* string submitButtonText = 3;
* @return The submitButtonText.
*/
@java.lang.Override
public java.lang.String getSubmitButtonText() {
java.lang.Object ref = submitButtonText_;
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();
submitButtonText_ = s;
return s;
}
}
/**
*
* Submit button to confirm the validation code.
*
*
* string submitButtonText = 3;
* @return The bytes for submitButtonText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubmitButtonTextBytes() {
java.lang.Object ref = submitButtonText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitButtonText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDSUBMITBUTTONTEXT_FIELD_NUMBER = 4;
private com.passkit.grpc.Localization.LocalizedString localizedSubmitButtonText_;
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
* @return Whether the localizedSubmitButtonText field is set.
*/
@java.lang.Override
public boolean hasLocalizedSubmitButtonText() {
return localizedSubmitButtonText_ != null;
}
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
* @return The localizedSubmitButtonText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedSubmitButtonText() {
return localizedSubmitButtonText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSubmitButtonText_;
}
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSubmitButtonTextOrBuilder() {
return getLocalizedSubmitButtonText();
}
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 {
for (int i = 0; i < validCodes_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validCodes_.getRaw(i));
}
if (redemptionCodeInput_ != null) {
output.writeMessage(2, getRedemptionCodeInput());
}
if (!getSubmitButtonTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, submitButtonText_);
}
if (localizedSubmitButtonText_ != null) {
output.writeMessage(4, getLocalizedSubmitButtonText());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < validCodes_.size(); i++) {
dataSize += computeStringSizeNoTag(validCodes_.getRaw(i));
}
size += dataSize;
size += 1 * getValidCodesList().size();
}
if (redemptionCodeInput_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRedemptionCodeInput());
}
if (!getSubmitButtonTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, submitButtonText_);
}
if (localizedSubmitButtonText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLocalizedSubmitButtonText());
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings other = (com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings) obj;
if (!getValidCodesList()
.equals(other.getValidCodesList())) return false;
if (hasRedemptionCodeInput() != other.hasRedemptionCodeInput()) return false;
if (hasRedemptionCodeInput()) {
if (!getRedemptionCodeInput()
.equals(other.getRedemptionCodeInput())) return false;
}
if (!getSubmitButtonText()
.equals(other.getSubmitButtonText())) return false;
if (hasLocalizedSubmitButtonText() != other.hasLocalizedSubmitButtonText()) return false;
if (hasLocalizedSubmitButtonText()) {
if (!getLocalizedSubmitButtonText()
.equals(other.getLocalizedSubmitButtonText())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValidCodesCount() > 0) {
hash = (37 * hash) + VALIDCODES_FIELD_NUMBER;
hash = (53 * hash) + getValidCodesList().hashCode();
}
if (hasRedemptionCodeInput()) {
hash = (37 * hash) + REDEMPTIONCODEINPUT_FIELD_NUMBER;
hash = (53 * hash) + getRedemptionCodeInput().hashCode();
}
hash = (37 * hash) + SUBMITBUTTONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getSubmitButtonText().hashCode();
if (hasLocalizedSubmitButtonText()) {
hash = (37 * hash) + LOCALIZEDSUBMITBUTTONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedSubmitButtonText().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings 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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings 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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings 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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings 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;
}
/**
* Protobuf type {@code single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings)
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CustomerInitiatedCodeProvideOnRedeemSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CustomerInitiatedCodeProvideOnRedeemSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.class, com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
validCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (redemptionCodeInputBuilder_ == null) {
redemptionCodeInput_ = null;
} else {
redemptionCodeInput_ = null;
redemptionCodeInputBuilder_ = null;
}
submitButtonText_ = "";
if (localizedSubmitButtonTextBuilder_ == null) {
localizedSubmitButtonText_ = null;
} else {
localizedSubmitButtonText_ = null;
localizedSubmitButtonTextBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CustomerInitiatedCodeProvideOnRedeemSettings_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings build() {
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings result = new com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
validCodes_ = validCodes_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.validCodes_ = validCodes_;
if (redemptionCodeInputBuilder_ == null) {
result.redemptionCodeInput_ = redemptionCodeInput_;
} else {
result.redemptionCodeInput_ = redemptionCodeInputBuilder_.build();
}
result.submitButtonText_ = submitButtonText_;
if (localizedSubmitButtonTextBuilder_ == null) {
result.localizedSubmitButtonText_ = localizedSubmitButtonText_;
} else {
result.localizedSubmitButtonText_ = localizedSubmitButtonTextBuilder_.build();
}
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings.getDefaultInstance()) return this;
if (!other.validCodes_.isEmpty()) {
if (validCodes_.isEmpty()) {
validCodes_ = other.validCodes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValidCodesIsMutable();
validCodes_.addAll(other.validCodes_);
}
onChanged();
}
if (other.hasRedemptionCodeInput()) {
mergeRedemptionCodeInput(other.getRedemptionCodeInput());
}
if (!other.getSubmitButtonText().isEmpty()) {
submitButtonText_ = other.submitButtonText_;
onChanged();
}
if (other.hasLocalizedSubmitButtonText()) {
mergeLocalizedSubmitButtonText(other.getLocalizedSubmitButtonText());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList validCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureValidCodesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
validCodes_ = new com.google.protobuf.LazyStringArrayList(validCodes_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @return A list containing the validCodes.
*/
public com.google.protobuf.ProtocolStringList
getValidCodesList() {
return validCodes_.getUnmodifiableView();
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @return The count of validCodes.
*/
public int getValidCodesCount() {
return validCodes_.size();
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @param index The index of the element to return.
* @return The validCodes at the given index.
*/
public java.lang.String getValidCodes(int index) {
return validCodes_.get(index);
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @param index The index of the value to return.
* @return The bytes of the validCodes at the given index.
*/
public com.google.protobuf.ByteString
getValidCodesBytes(int index) {
return validCodes_.getByteString(index);
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @param index The index to set the value at.
* @param value The validCodes to set.
* @return This builder for chaining.
*/
public Builder setValidCodes(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValidCodesIsMutable();
validCodes_.set(index, value);
onChanged();
return this;
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @param value The validCodes to add.
* @return This builder for chaining.
*/
public Builder addValidCodes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValidCodesIsMutable();
validCodes_.add(value);
onChanged();
return this;
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @param values The validCodes to add.
* @return This builder for chaining.
*/
public Builder addAllValidCodes(
java.lang.Iterable values) {
ensureValidCodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, validCodes_);
onChanged();
return this;
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @return This builder for chaining.
*/
public Builder clearValidCodes() {
validCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Optional array of valid codes that can be input on redemption.
*
*
* repeated string validCodes = 1;
* @param value The bytes of the validCodes to add.
* @return This builder for chaining.
*/
public Builder addValidCodesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureValidCodesIsMutable();
validCodes_.add(value);
onChanged();
return this;
}
private com.passkit.grpc.SingleUseCoupons.Offer.InputField redemptionCodeInput_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.InputField, com.passkit.grpc.SingleUseCoupons.Offer.InputField.Builder, com.passkit.grpc.SingleUseCoupons.Offer.InputFieldOrBuilder> redemptionCodeInputBuilder_;
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
* @return Whether the redemptionCodeInput field is set.
*/
public boolean hasRedemptionCodeInput() {
return redemptionCodeInputBuilder_ != null || redemptionCodeInput_ != null;
}
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
* @return The redemptionCodeInput.
*/
public com.passkit.grpc.SingleUseCoupons.Offer.InputField getRedemptionCodeInput() {
if (redemptionCodeInputBuilder_ == null) {
return redemptionCodeInput_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.InputField.getDefaultInstance() : redemptionCodeInput_;
} else {
return redemptionCodeInputBuilder_.getMessage();
}
}
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
*/
public Builder setRedemptionCodeInput(com.passkit.grpc.SingleUseCoupons.Offer.InputField value) {
if (redemptionCodeInputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
redemptionCodeInput_ = value;
onChanged();
} else {
redemptionCodeInputBuilder_.setMessage(value);
}
return this;
}
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
*/
public Builder setRedemptionCodeInput(
com.passkit.grpc.SingleUseCoupons.Offer.InputField.Builder builderForValue) {
if (redemptionCodeInputBuilder_ == null) {
redemptionCodeInput_ = builderForValue.build();
onChanged();
} else {
redemptionCodeInputBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
*/
public Builder mergeRedemptionCodeInput(com.passkit.grpc.SingleUseCoupons.Offer.InputField value) {
if (redemptionCodeInputBuilder_ == null) {
if (redemptionCodeInput_ != null) {
redemptionCodeInput_ =
com.passkit.grpc.SingleUseCoupons.Offer.InputField.newBuilder(redemptionCodeInput_).mergeFrom(value).buildPartial();
} else {
redemptionCodeInput_ = value;
}
onChanged();
} else {
redemptionCodeInputBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
*/
public Builder clearRedemptionCodeInput() {
if (redemptionCodeInputBuilder_ == null) {
redemptionCodeInput_ = null;
onChanged();
} else {
redemptionCodeInput_ = null;
redemptionCodeInputBuilder_ = null;
}
return this;
}
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.InputField.Builder getRedemptionCodeInputBuilder() {
onChanged();
return getRedemptionCodeInputFieldBuilder().getBuilder();
}
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.InputFieldOrBuilder getRedemptionCodeInputOrBuilder() {
if (redemptionCodeInputBuilder_ != null) {
return redemptionCodeInputBuilder_.getMessageOrBuilder();
} else {
return redemptionCodeInput_ == null ?
com.passkit.grpc.SingleUseCoupons.Offer.InputField.getDefaultInstance() : redemptionCodeInput_;
}
}
/**
*
* Input field box for entering the redemption code.
*
*
* .single_use_coupons.InputField redemptionCodeInput = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.InputField, com.passkit.grpc.SingleUseCoupons.Offer.InputField.Builder, com.passkit.grpc.SingleUseCoupons.Offer.InputFieldOrBuilder>
getRedemptionCodeInputFieldBuilder() {
if (redemptionCodeInputBuilder_ == null) {
redemptionCodeInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.InputField, com.passkit.grpc.SingleUseCoupons.Offer.InputField.Builder, com.passkit.grpc.SingleUseCoupons.Offer.InputFieldOrBuilder>(
getRedemptionCodeInput(),
getParentForChildren(),
isClean());
redemptionCodeInput_ = null;
}
return redemptionCodeInputBuilder_;
}
private java.lang.Object submitButtonText_ = "";
/**
*
* Submit button to confirm the validation code.
*
*
* string submitButtonText = 3;
* @return The submitButtonText.
*/
public java.lang.String getSubmitButtonText() {
java.lang.Object ref = submitButtonText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
submitButtonText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Submit button to confirm the validation code.
*
*
* string submitButtonText = 3;
* @return The bytes for submitButtonText.
*/
public com.google.protobuf.ByteString
getSubmitButtonTextBytes() {
java.lang.Object ref = submitButtonText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submitButtonText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Submit button to confirm the validation code.
*
*
* string submitButtonText = 3;
* @param value The submitButtonText to set.
* @return This builder for chaining.
*/
public Builder setSubmitButtonText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
submitButtonText_ = value;
onChanged();
return this;
}
/**
*
* Submit button to confirm the validation code.
*
*
* string submitButtonText = 3;
* @return This builder for chaining.
*/
public Builder clearSubmitButtonText() {
submitButtonText_ = getDefaultInstance().getSubmitButtonText();
onChanged();
return this;
}
/**
*
* Submit button to confirm the validation code.
*
*
* string submitButtonText = 3;
* @param value The bytes for submitButtonText to set.
* @return This builder for chaining.
*/
public Builder setSubmitButtonTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
submitButtonText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedSubmitButtonText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedSubmitButtonTextBuilder_;
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
* @return Whether the localizedSubmitButtonText field is set.
*/
public boolean hasLocalizedSubmitButtonText() {
return localizedSubmitButtonTextBuilder_ != null || localizedSubmitButtonText_ != null;
}
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
* @return The localizedSubmitButtonText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedSubmitButtonText() {
if (localizedSubmitButtonTextBuilder_ == null) {
return localizedSubmitButtonText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSubmitButtonText_;
} else {
return localizedSubmitButtonTextBuilder_.getMessage();
}
}
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
*/
public Builder setLocalizedSubmitButtonText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedSubmitButtonTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedSubmitButtonText_ = value;
onChanged();
} else {
localizedSubmitButtonTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
*/
public Builder setLocalizedSubmitButtonText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedSubmitButtonTextBuilder_ == null) {
localizedSubmitButtonText_ = builderForValue.build();
onChanged();
} else {
localizedSubmitButtonTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
*/
public Builder mergeLocalizedSubmitButtonText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedSubmitButtonTextBuilder_ == null) {
if (localizedSubmitButtonText_ != null) {
localizedSubmitButtonText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedSubmitButtonText_).mergeFrom(value).buildPartial();
} else {
localizedSubmitButtonText_ = value;
}
onChanged();
} else {
localizedSubmitButtonTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
*/
public Builder clearLocalizedSubmitButtonText() {
if (localizedSubmitButtonTextBuilder_ == null) {
localizedSubmitButtonText_ = null;
onChanged();
} else {
localizedSubmitButtonText_ = null;
localizedSubmitButtonTextBuilder_ = null;
}
return this;
}
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedSubmitButtonTextBuilder() {
onChanged();
return getLocalizedSubmitButtonTextFieldBuilder().getBuilder();
}
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSubmitButtonTextOrBuilder() {
if (localizedSubmitButtonTextBuilder_ != null) {
return localizedSubmitButtonTextBuilder_.getMessageOrBuilder();
} else {
return localizedSubmitButtonText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSubmitButtonText_;
}
}
/**
*
* Localized submit button text.
*
*
* .io.LocalizedString localizedSubmitButtonText = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedSubmitButtonTextFieldBuilder() {
if (localizedSubmitButtonTextBuilder_ == null) {
localizedSubmitButtonTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedSubmitButtonText(),
getParentForChildren(),
isClean());
localizedSubmitButtonText_ = null;
}
return localizedSubmitButtonTextBuilder_;
}
@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:single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings)
private static final com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomerInitiatedCodeProvideOnRedeemSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomerInitiatedCodeProvideOnRedeemSettings(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.CustomerInitiatedCodeProvideOnRedeemSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InputFieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.InputField)
com.google.protobuf.MessageOrBuilder {
/**
*
* The label of input field.
*
*
* string label = 1;
* @return The label.
*/
java.lang.String getLabel();
/**
*
* The label of input field.
*
*
* string label = 1;
* @return The bytes for label.
*/
com.google.protobuf.ByteString
getLabelBytes();
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
* @return Whether the localizedLabel field is set.
*/
boolean hasLocalizedLabel();
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
* @return The localizedLabel.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedLabel();
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLabelOrBuilder();
/**
*
* Help text shown below the input field.
*
*
* string helperText = 3;
* @return The helperText.
*/
java.lang.String getHelperText();
/**
*
* Help text shown below the input field.
*
*
* string helperText = 3;
* @return The bytes for helperText.
*/
com.google.protobuf.ByteString
getHelperTextBytes();
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
* @return Whether the localizedHelperText field is set.
*/
boolean hasLocalizedHelperText();
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
* @return The localizedHelperText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedHelperText();
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedHelperTextOrBuilder();
/**
*
* Optional message that is displayed if the user provides an invalid input value.
*
*
* string errorMessage = 5;
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
*
* Optional message that is displayed if the user provides an invalid input value.
*
*
* string errorMessage = 5;
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
* @return Whether the localizedErrorMessage field is set.
*/
boolean hasLocalizedErrorMessage();
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
* @return The localizedErrorMessage.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedErrorMessage();
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedErrorMessageOrBuilder();
/**
*
* Default input value.
*
*
* string defaultValue = 7;
* @return The defaultValue.
*/
java.lang.String getDefaultValue();
/**
*
* Default input value.
*
*
* string defaultValue = 7;
* @return The bytes for defaultValue.
*/
com.google.protobuf.ByteString
getDefaultValueBytes();
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
* @return Whether the localizedDefaultValue field is set.
*/
boolean hasLocalizedDefaultValue();
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
* @return The localizedDefaultValue.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedDefaultValue();
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDefaultValueOrBuilder();
/**
*
* Placeholder text for the input field.
*
*
* string placeholder = 9;
* @return The placeholder.
*/
java.lang.String getPlaceholder();
/**
*
* Placeholder text for the input field.
*
*
* string placeholder = 9;
* @return The bytes for placeholder.
*/
com.google.protobuf.ByteString
getPlaceholderBytes();
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
* @return Whether the localizedPlaceholder field is set.
*/
boolean hasLocalizedPlaceholder();
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
* @return The localizedPlaceholder.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedPlaceholder();
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedPlaceholderOrBuilder();
/**
*
* A regex which allows you to set custom validation rules for the input value.
*
*
* string validation = 11;
* @return The validation.
*/
java.lang.String getValidation();
/**
*
* A regex which allows you to set custom validation rules for the input value.
*
*
* string validation = 11;
* @return The bytes for validation.
*/
com.google.protobuf.ByteString
getValidationBytes();
}
/**
* Protobuf type {@code single_use_coupons.InputField}
*/
public static final class InputField extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.InputField)
InputFieldOrBuilder {
private static final long serialVersionUID = 0L;
// Use InputField.newBuilder() to construct.
private InputField(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InputField() {
label_ = "";
helperText_ = "";
errorMessage_ = "";
defaultValue_ = "";
placeholder_ = "";
validation_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InputField();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InputField(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
label_ = s;
break;
}
case 18: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedLabel_ != null) {
subBuilder = localizedLabel_.toBuilder();
}
localizedLabel_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedLabel_);
localizedLabel_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
helperText_ = s;
break;
}
case 34: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedHelperText_ != null) {
subBuilder = localizedHelperText_.toBuilder();
}
localizedHelperText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedHelperText_);
localizedHelperText_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
errorMessage_ = s;
break;
}
case 50: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedErrorMessage_ != null) {
subBuilder = localizedErrorMessage_.toBuilder();
}
localizedErrorMessage_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedErrorMessage_);
localizedErrorMessage_ = subBuilder.buildPartial();
}
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
defaultValue_ = s;
break;
}
case 66: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedDefaultValue_ != null) {
subBuilder = localizedDefaultValue_.toBuilder();
}
localizedDefaultValue_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedDefaultValue_);
localizedDefaultValue_ = subBuilder.buildPartial();
}
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
placeholder_ = s;
break;
}
case 82: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedPlaceholder_ != null) {
subBuilder = localizedPlaceholder_.toBuilder();
}
localizedPlaceholder_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedPlaceholder_);
localizedPlaceholder_ = subBuilder.buildPartial();
}
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
validation_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_InputField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_InputField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.InputField.class, com.passkit.grpc.SingleUseCoupons.Offer.InputField.Builder.class);
}
public static final int LABEL_FIELD_NUMBER = 1;
private volatile java.lang.Object label_;
/**
*
* The label of input field.
*
*
* string label = 1;
* @return The label.
*/
@java.lang.Override
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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();
label_ = s;
return s;
}
}
/**
*
* The label of input field.
*
*
* string label = 1;
* @return The bytes for label.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDLABEL_FIELD_NUMBER = 2;
private com.passkit.grpc.Localization.LocalizedString localizedLabel_;
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
* @return Whether the localizedLabel field is set.
*/
@java.lang.Override
public boolean hasLocalizedLabel() {
return localizedLabel_ != null;
}
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
* @return The localizedLabel.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedLabel() {
return localizedLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLabel_;
}
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLabelOrBuilder() {
return getLocalizedLabel();
}
public static final int HELPERTEXT_FIELD_NUMBER = 3;
private volatile java.lang.Object helperText_;
/**
*
* Help text shown below the input field.
*
*
* string helperText = 3;
* @return The helperText.
*/
@java.lang.Override
public java.lang.String getHelperText() {
java.lang.Object ref = helperText_;
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();
helperText_ = s;
return s;
}
}
/**
*
* Help text shown below the input field.
*
*
* string helperText = 3;
* @return The bytes for helperText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHelperTextBytes() {
java.lang.Object ref = helperText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
helperText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDHELPERTEXT_FIELD_NUMBER = 4;
private com.passkit.grpc.Localization.LocalizedString localizedHelperText_;
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
* @return Whether the localizedHelperText field is set.
*/
@java.lang.Override
public boolean hasLocalizedHelperText() {
return localizedHelperText_ != null;
}
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
* @return The localizedHelperText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedHelperText() {
return localizedHelperText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedHelperText_;
}
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedHelperTextOrBuilder() {
return getLocalizedHelperText();
}
public static final int ERRORMESSAGE_FIELD_NUMBER = 5;
private volatile java.lang.Object errorMessage_;
/**
*
* Optional message that is displayed if the user provides an invalid input value.
*
*
* string errorMessage = 5;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
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();
errorMessage_ = s;
return s;
}
}
/**
*
* Optional message that is displayed if the user provides an invalid input value.
*
*
* string errorMessage = 5;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDERRORMESSAGE_FIELD_NUMBER = 6;
private com.passkit.grpc.Localization.LocalizedString localizedErrorMessage_;
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
* @return Whether the localizedErrorMessage field is set.
*/
@java.lang.Override
public boolean hasLocalizedErrorMessage() {
return localizedErrorMessage_ != null;
}
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
* @return The localizedErrorMessage.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedErrorMessage() {
return localizedErrorMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedErrorMessage_;
}
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedErrorMessageOrBuilder() {
return getLocalizedErrorMessage();
}
public static final int DEFAULTVALUE_FIELD_NUMBER = 7;
private volatile java.lang.Object defaultValue_;
/**
*
* Default input value.
*
*
* string defaultValue = 7;
* @return The defaultValue.
*/
@java.lang.Override
public java.lang.String getDefaultValue() {
java.lang.Object ref = defaultValue_;
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();
defaultValue_ = s;
return s;
}
}
/**
*
* Default input value.
*
*
* string defaultValue = 7;
* @return The bytes for defaultValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultValueBytes() {
java.lang.Object ref = defaultValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDDEFAULTVALUE_FIELD_NUMBER = 8;
private com.passkit.grpc.Localization.LocalizedString localizedDefaultValue_;
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
* @return Whether the localizedDefaultValue field is set.
*/
@java.lang.Override
public boolean hasLocalizedDefaultValue() {
return localizedDefaultValue_ != null;
}
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
* @return The localizedDefaultValue.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedDefaultValue() {
return localizedDefaultValue_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDefaultValue_;
}
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDefaultValueOrBuilder() {
return getLocalizedDefaultValue();
}
public static final int PLACEHOLDER_FIELD_NUMBER = 9;
private volatile java.lang.Object placeholder_;
/**
*
* Placeholder text for the input field.
*
*
* string placeholder = 9;
* @return The placeholder.
*/
@java.lang.Override
public java.lang.String getPlaceholder() {
java.lang.Object ref = placeholder_;
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();
placeholder_ = s;
return s;
}
}
/**
*
* Placeholder text for the input field.
*
*
* string placeholder = 9;
* @return The bytes for placeholder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlaceholderBytes() {
java.lang.Object ref = placeholder_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
placeholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDPLACEHOLDER_FIELD_NUMBER = 10;
private com.passkit.grpc.Localization.LocalizedString localizedPlaceholder_;
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
* @return Whether the localizedPlaceholder field is set.
*/
@java.lang.Override
public boolean hasLocalizedPlaceholder() {
return localizedPlaceholder_ != null;
}
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
* @return The localizedPlaceholder.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedPlaceholder() {
return localizedPlaceholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedPlaceholder_;
}
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedPlaceholderOrBuilder() {
return getLocalizedPlaceholder();
}
public static final int VALIDATION_FIELD_NUMBER = 11;
private volatile java.lang.Object validation_;
/**
*
* A regex which allows you to set custom validation rules for the input value.
*
*
* string validation = 11;
* @return The validation.
*/
@java.lang.Override
public java.lang.String getValidation() {
java.lang.Object ref = validation_;
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();
validation_ = s;
return s;
}
}
/**
*
* A regex which allows you to set custom validation rules for the input value.
*
*
* string validation = 11;
* @return The bytes for validation.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValidationBytes() {
java.lang.Object ref = validation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_);
}
if (localizedLabel_ != null) {
output.writeMessage(2, getLocalizedLabel());
}
if (!getHelperTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, helperText_);
}
if (localizedHelperText_ != null) {
output.writeMessage(4, getLocalizedHelperText());
}
if (!getErrorMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, errorMessage_);
}
if (localizedErrorMessage_ != null) {
output.writeMessage(6, getLocalizedErrorMessage());
}
if (!getDefaultValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, defaultValue_);
}
if (localizedDefaultValue_ != null) {
output.writeMessage(8, getLocalizedDefaultValue());
}
if (!getPlaceholderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, placeholder_);
}
if (localizedPlaceholder_ != null) {
output.writeMessage(10, getLocalizedPlaceholder());
}
if (!getValidationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, validation_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_);
}
if (localizedLabel_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLocalizedLabel());
}
if (!getHelperTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, helperText_);
}
if (localizedHelperText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLocalizedHelperText());
}
if (!getErrorMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, errorMessage_);
}
if (localizedErrorMessage_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getLocalizedErrorMessage());
}
if (!getDefaultValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, defaultValue_);
}
if (localizedDefaultValue_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getLocalizedDefaultValue());
}
if (!getPlaceholderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, placeholder_);
}
if (localizedPlaceholder_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getLocalizedPlaceholder());
}
if (!getValidationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, validation_);
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.InputField)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.InputField other = (com.passkit.grpc.SingleUseCoupons.Offer.InputField) obj;
if (!getLabel()
.equals(other.getLabel())) return false;
if (hasLocalizedLabel() != other.hasLocalizedLabel()) return false;
if (hasLocalizedLabel()) {
if (!getLocalizedLabel()
.equals(other.getLocalizedLabel())) return false;
}
if (!getHelperText()
.equals(other.getHelperText())) return false;
if (hasLocalizedHelperText() != other.hasLocalizedHelperText()) return false;
if (hasLocalizedHelperText()) {
if (!getLocalizedHelperText()
.equals(other.getLocalizedHelperText())) return false;
}
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
if (hasLocalizedErrorMessage() != other.hasLocalizedErrorMessage()) return false;
if (hasLocalizedErrorMessage()) {
if (!getLocalizedErrorMessage()
.equals(other.getLocalizedErrorMessage())) return false;
}
if (!getDefaultValue()
.equals(other.getDefaultValue())) return false;
if (hasLocalizedDefaultValue() != other.hasLocalizedDefaultValue()) return false;
if (hasLocalizedDefaultValue()) {
if (!getLocalizedDefaultValue()
.equals(other.getLocalizedDefaultValue())) return false;
}
if (!getPlaceholder()
.equals(other.getPlaceholder())) return false;
if (hasLocalizedPlaceholder() != other.hasLocalizedPlaceholder()) return false;
if (hasLocalizedPlaceholder()) {
if (!getLocalizedPlaceholder()
.equals(other.getLocalizedPlaceholder())) return false;
}
if (!getValidation()
.equals(other.getValidation())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
if (hasLocalizedLabel()) {
hash = (37 * hash) + LOCALIZEDLABEL_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedLabel().hashCode();
}
hash = (37 * hash) + HELPERTEXT_FIELD_NUMBER;
hash = (53 * hash) + getHelperText().hashCode();
if (hasLocalizedHelperText()) {
hash = (37 * hash) + LOCALIZEDHELPERTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedHelperText().hashCode();
}
hash = (37 * hash) + ERRORMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
if (hasLocalizedErrorMessage()) {
hash = (37 * hash) + LOCALIZEDERRORMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedErrorMessage().hashCode();
}
hash = (37 * hash) + DEFAULTVALUE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultValue().hashCode();
if (hasLocalizedDefaultValue()) {
hash = (37 * hash) + LOCALIZEDDEFAULTVALUE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedDefaultValue().hashCode();
}
hash = (37 * hash) + PLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getPlaceholder().hashCode();
if (hasLocalizedPlaceholder()) {
hash = (37 * hash) + LOCALIZEDPLACEHOLDER_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedPlaceholder().hashCode();
}
hash = (37 * hash) + VALIDATION_FIELD_NUMBER;
hash = (53 * hash) + getValidation().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.InputField parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.InputField parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.InputField parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.InputField parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.InputField parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.InputField parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.InputField parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.InputField 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.passkit.grpc.SingleUseCoupons.Offer.InputField parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.InputField 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.passkit.grpc.SingleUseCoupons.Offer.InputField parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.InputField 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.passkit.grpc.SingleUseCoupons.Offer.InputField 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;
}
/**
* Protobuf type {@code single_use_coupons.InputField}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.InputField)
com.passkit.grpc.SingleUseCoupons.Offer.InputFieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_InputField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_InputField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.InputField.class, com.passkit.grpc.SingleUseCoupons.Offer.InputField.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.InputField.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
label_ = "";
if (localizedLabelBuilder_ == null) {
localizedLabel_ = null;
} else {
localizedLabel_ = null;
localizedLabelBuilder_ = null;
}
helperText_ = "";
if (localizedHelperTextBuilder_ == null) {
localizedHelperText_ = null;
} else {
localizedHelperText_ = null;
localizedHelperTextBuilder_ = null;
}
errorMessage_ = "";
if (localizedErrorMessageBuilder_ == null) {
localizedErrorMessage_ = null;
} else {
localizedErrorMessage_ = null;
localizedErrorMessageBuilder_ = null;
}
defaultValue_ = "";
if (localizedDefaultValueBuilder_ == null) {
localizedDefaultValue_ = null;
} else {
localizedDefaultValue_ = null;
localizedDefaultValueBuilder_ = null;
}
placeholder_ = "";
if (localizedPlaceholderBuilder_ == null) {
localizedPlaceholder_ = null;
} else {
localizedPlaceholder_ = null;
localizedPlaceholderBuilder_ = null;
}
validation_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_InputField_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.InputField getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.InputField.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.InputField build() {
com.passkit.grpc.SingleUseCoupons.Offer.InputField result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.InputField buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.InputField result = new com.passkit.grpc.SingleUseCoupons.Offer.InputField(this);
result.label_ = label_;
if (localizedLabelBuilder_ == null) {
result.localizedLabel_ = localizedLabel_;
} else {
result.localizedLabel_ = localizedLabelBuilder_.build();
}
result.helperText_ = helperText_;
if (localizedHelperTextBuilder_ == null) {
result.localizedHelperText_ = localizedHelperText_;
} else {
result.localizedHelperText_ = localizedHelperTextBuilder_.build();
}
result.errorMessage_ = errorMessage_;
if (localizedErrorMessageBuilder_ == null) {
result.localizedErrorMessage_ = localizedErrorMessage_;
} else {
result.localizedErrorMessage_ = localizedErrorMessageBuilder_.build();
}
result.defaultValue_ = defaultValue_;
if (localizedDefaultValueBuilder_ == null) {
result.localizedDefaultValue_ = localizedDefaultValue_;
} else {
result.localizedDefaultValue_ = localizedDefaultValueBuilder_.build();
}
result.placeholder_ = placeholder_;
if (localizedPlaceholderBuilder_ == null) {
result.localizedPlaceholder_ = localizedPlaceholder_;
} else {
result.localizedPlaceholder_ = localizedPlaceholderBuilder_.build();
}
result.validation_ = validation_;
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.InputField) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.InputField)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.InputField other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.InputField.getDefaultInstance()) return this;
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
if (other.hasLocalizedLabel()) {
mergeLocalizedLabel(other.getLocalizedLabel());
}
if (!other.getHelperText().isEmpty()) {
helperText_ = other.helperText_;
onChanged();
}
if (other.hasLocalizedHelperText()) {
mergeLocalizedHelperText(other.getLocalizedHelperText());
}
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
onChanged();
}
if (other.hasLocalizedErrorMessage()) {
mergeLocalizedErrorMessage(other.getLocalizedErrorMessage());
}
if (!other.getDefaultValue().isEmpty()) {
defaultValue_ = other.defaultValue_;
onChanged();
}
if (other.hasLocalizedDefaultValue()) {
mergeLocalizedDefaultValue(other.getLocalizedDefaultValue());
}
if (!other.getPlaceholder().isEmpty()) {
placeholder_ = other.placeholder_;
onChanged();
}
if (other.hasLocalizedPlaceholder()) {
mergeLocalizedPlaceholder(other.getLocalizedPlaceholder());
}
if (!other.getValidation().isEmpty()) {
validation_ = other.validation_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.InputField parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.InputField) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object label_ = "";
/**
*
* The label of input field.
*
*
* string label = 1;
* @return The label.
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The label of input field.
*
*
* string label = 1;
* @return The bytes for label.
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The label of input field.
*
*
* string label = 1;
* @param value The label to set.
* @return This builder for chaining.
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
onChanged();
return this;
}
/**
*
* The label of input field.
*
*
* string label = 1;
* @return This builder for chaining.
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
*
* The label of input field.
*
*
* string label = 1;
* @param value The bytes for label to set.
* @return This builder for chaining.
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedLabel_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedLabelBuilder_;
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
* @return Whether the localizedLabel field is set.
*/
public boolean hasLocalizedLabel() {
return localizedLabelBuilder_ != null || localizedLabel_ != null;
}
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
* @return The localizedLabel.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedLabel() {
if (localizedLabelBuilder_ == null) {
return localizedLabel_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLabel_;
} else {
return localizedLabelBuilder_.getMessage();
}
}
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
*/
public Builder setLocalizedLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLabelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedLabel_ = value;
onChanged();
} else {
localizedLabelBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
*/
public Builder setLocalizedLabel(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedLabelBuilder_ == null) {
localizedLabel_ = builderForValue.build();
onChanged();
} else {
localizedLabelBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
*/
public Builder mergeLocalizedLabel(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLabelBuilder_ == null) {
if (localizedLabel_ != null) {
localizedLabel_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedLabel_).mergeFrom(value).buildPartial();
} else {
localizedLabel_ = value;
}
onChanged();
} else {
localizedLabelBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
*/
public Builder clearLocalizedLabel() {
if (localizedLabelBuilder_ == null) {
localizedLabel_ = null;
onChanged();
} else {
localizedLabel_ = null;
localizedLabelBuilder_ = null;
}
return this;
}
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedLabelBuilder() {
onChanged();
return getLocalizedLabelFieldBuilder().getBuilder();
}
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLabelOrBuilder() {
if (localizedLabelBuilder_ != null) {
return localizedLabelBuilder_.getMessageOrBuilder();
} else {
return localizedLabel_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLabel_;
}
}
/**
*
* Localized label of input field.
*
*
* .io.LocalizedString localizedLabel = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedLabelFieldBuilder() {
if (localizedLabelBuilder_ == null) {
localizedLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedLabel(),
getParentForChildren(),
isClean());
localizedLabel_ = null;
}
return localizedLabelBuilder_;
}
private java.lang.Object helperText_ = "";
/**
*
* Help text shown below the input field.
*
*
* string helperText = 3;
* @return The helperText.
*/
public java.lang.String getHelperText() {
java.lang.Object ref = helperText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
helperText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Help text shown below the input field.
*
*
* string helperText = 3;
* @return The bytes for helperText.
*/
public com.google.protobuf.ByteString
getHelperTextBytes() {
java.lang.Object ref = helperText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
helperText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Help text shown below the input field.
*
*
* string helperText = 3;
* @param value The helperText to set.
* @return This builder for chaining.
*/
public Builder setHelperText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
helperText_ = value;
onChanged();
return this;
}
/**
*
* Help text shown below the input field.
*
*
* string helperText = 3;
* @return This builder for chaining.
*/
public Builder clearHelperText() {
helperText_ = getDefaultInstance().getHelperText();
onChanged();
return this;
}
/**
*
* Help text shown below the input field.
*
*
* string helperText = 3;
* @param value The bytes for helperText to set.
* @return This builder for chaining.
*/
public Builder setHelperTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
helperText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedHelperText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedHelperTextBuilder_;
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
* @return Whether the localizedHelperText field is set.
*/
public boolean hasLocalizedHelperText() {
return localizedHelperTextBuilder_ != null || localizedHelperText_ != null;
}
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
* @return The localizedHelperText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedHelperText() {
if (localizedHelperTextBuilder_ == null) {
return localizedHelperText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedHelperText_;
} else {
return localizedHelperTextBuilder_.getMessage();
}
}
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
*/
public Builder setLocalizedHelperText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedHelperTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedHelperText_ = value;
onChanged();
} else {
localizedHelperTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
*/
public Builder setLocalizedHelperText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedHelperTextBuilder_ == null) {
localizedHelperText_ = builderForValue.build();
onChanged();
} else {
localizedHelperTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
*/
public Builder mergeLocalizedHelperText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedHelperTextBuilder_ == null) {
if (localizedHelperText_ != null) {
localizedHelperText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedHelperText_).mergeFrom(value).buildPartial();
} else {
localizedHelperText_ = value;
}
onChanged();
} else {
localizedHelperTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
*/
public Builder clearLocalizedHelperText() {
if (localizedHelperTextBuilder_ == null) {
localizedHelperText_ = null;
onChanged();
} else {
localizedHelperText_ = null;
localizedHelperTextBuilder_ = null;
}
return this;
}
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedHelperTextBuilder() {
onChanged();
return getLocalizedHelperTextFieldBuilder().getBuilder();
}
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedHelperTextOrBuilder() {
if (localizedHelperTextBuilder_ != null) {
return localizedHelperTextBuilder_.getMessageOrBuilder();
} else {
return localizedHelperText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedHelperText_;
}
}
/**
*
* Localized help text shown below the input field.
*
*
* .io.LocalizedString localizedHelperText = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedHelperTextFieldBuilder() {
if (localizedHelperTextBuilder_ == null) {
localizedHelperTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedHelperText(),
getParentForChildren(),
isClean());
localizedHelperText_ = null;
}
return localizedHelperTextBuilder_;
}
private java.lang.Object errorMessage_ = "";
/**
*
* Optional message that is displayed if the user provides an invalid input value.
*
*
* string errorMessage = 5;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional message that is displayed if the user provides an invalid input value.
*
*
* string errorMessage = 5;
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional message that is displayed if the user provides an invalid input value.
*
*
* string errorMessage = 5;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
*
* Optional message that is displayed if the user provides an invalid input value.
*
*
* string errorMessage = 5;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
*
* Optional message that is displayed if the user provides an invalid input value.
*
*
* string errorMessage = 5;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedErrorMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedErrorMessageBuilder_;
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
* @return Whether the localizedErrorMessage field is set.
*/
public boolean hasLocalizedErrorMessage() {
return localizedErrorMessageBuilder_ != null || localizedErrorMessage_ != null;
}
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
* @return The localizedErrorMessage.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedErrorMessage() {
if (localizedErrorMessageBuilder_ == null) {
return localizedErrorMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedErrorMessage_;
} else {
return localizedErrorMessageBuilder_.getMessage();
}
}
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
*/
public Builder setLocalizedErrorMessage(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedErrorMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedErrorMessage_ = value;
onChanged();
} else {
localizedErrorMessageBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
*/
public Builder setLocalizedErrorMessage(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedErrorMessageBuilder_ == null) {
localizedErrorMessage_ = builderForValue.build();
onChanged();
} else {
localizedErrorMessageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
*/
public Builder mergeLocalizedErrorMessage(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedErrorMessageBuilder_ == null) {
if (localizedErrorMessage_ != null) {
localizedErrorMessage_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedErrorMessage_).mergeFrom(value).buildPartial();
} else {
localizedErrorMessage_ = value;
}
onChanged();
} else {
localizedErrorMessageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
*/
public Builder clearLocalizedErrorMessage() {
if (localizedErrorMessageBuilder_ == null) {
localizedErrorMessage_ = null;
onChanged();
} else {
localizedErrorMessage_ = null;
localizedErrorMessageBuilder_ = null;
}
return this;
}
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedErrorMessageBuilder() {
onChanged();
return getLocalizedErrorMessageFieldBuilder().getBuilder();
}
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedErrorMessageOrBuilder() {
if (localizedErrorMessageBuilder_ != null) {
return localizedErrorMessageBuilder_.getMessageOrBuilder();
} else {
return localizedErrorMessage_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedErrorMessage_;
}
}
/**
*
* Localized invalid code error message.
*
*
* .io.LocalizedString localizedErrorMessage = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedErrorMessageFieldBuilder() {
if (localizedErrorMessageBuilder_ == null) {
localizedErrorMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedErrorMessage(),
getParentForChildren(),
isClean());
localizedErrorMessage_ = null;
}
return localizedErrorMessageBuilder_;
}
private java.lang.Object defaultValue_ = "";
/**
*
* Default input value.
*
*
* string defaultValue = 7;
* @return The defaultValue.
*/
public java.lang.String getDefaultValue() {
java.lang.Object ref = defaultValue_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultValue_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Default input value.
*
*
* string defaultValue = 7;
* @return The bytes for defaultValue.
*/
public com.google.protobuf.ByteString
getDefaultValueBytes() {
java.lang.Object ref = defaultValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Default input value.
*
*
* string defaultValue = 7;
* @param value The defaultValue to set.
* @return This builder for chaining.
*/
public Builder setDefaultValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultValue_ = value;
onChanged();
return this;
}
/**
*
* Default input value.
*
*
* string defaultValue = 7;
* @return This builder for chaining.
*/
public Builder clearDefaultValue() {
defaultValue_ = getDefaultInstance().getDefaultValue();
onChanged();
return this;
}
/**
*
* Default input value.
*
*
* string defaultValue = 7;
* @param value The bytes for defaultValue to set.
* @return This builder for chaining.
*/
public Builder setDefaultValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultValue_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedDefaultValue_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedDefaultValueBuilder_;
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
* @return Whether the localizedDefaultValue field is set.
*/
public boolean hasLocalizedDefaultValue() {
return localizedDefaultValueBuilder_ != null || localizedDefaultValue_ != null;
}
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
* @return The localizedDefaultValue.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedDefaultValue() {
if (localizedDefaultValueBuilder_ == null) {
return localizedDefaultValue_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDefaultValue_;
} else {
return localizedDefaultValueBuilder_.getMessage();
}
}
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
*/
public Builder setLocalizedDefaultValue(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDefaultValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedDefaultValue_ = value;
onChanged();
} else {
localizedDefaultValueBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
*/
public Builder setLocalizedDefaultValue(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedDefaultValueBuilder_ == null) {
localizedDefaultValue_ = builderForValue.build();
onChanged();
} else {
localizedDefaultValueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
*/
public Builder mergeLocalizedDefaultValue(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedDefaultValueBuilder_ == null) {
if (localizedDefaultValue_ != null) {
localizedDefaultValue_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedDefaultValue_).mergeFrom(value).buildPartial();
} else {
localizedDefaultValue_ = value;
}
onChanged();
} else {
localizedDefaultValueBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
*/
public Builder clearLocalizedDefaultValue() {
if (localizedDefaultValueBuilder_ == null) {
localizedDefaultValue_ = null;
onChanged();
} else {
localizedDefaultValue_ = null;
localizedDefaultValueBuilder_ = null;
}
return this;
}
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedDefaultValueBuilder() {
onChanged();
return getLocalizedDefaultValueFieldBuilder().getBuilder();
}
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedDefaultValueOrBuilder() {
if (localizedDefaultValueBuilder_ != null) {
return localizedDefaultValueBuilder_.getMessageOrBuilder();
} else {
return localizedDefaultValue_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedDefaultValue_;
}
}
/**
*
* Localized default value.
*
*
* .io.LocalizedString localizedDefaultValue = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedDefaultValueFieldBuilder() {
if (localizedDefaultValueBuilder_ == null) {
localizedDefaultValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedDefaultValue(),
getParentForChildren(),
isClean());
localizedDefaultValue_ = null;
}
return localizedDefaultValueBuilder_;
}
private java.lang.Object placeholder_ = "";
/**
*
* Placeholder text for the input field.
*
*
* string placeholder = 9;
* @return The placeholder.
*/
public java.lang.String getPlaceholder() {
java.lang.Object ref = placeholder_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
placeholder_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Placeholder text for the input field.
*
*
* string placeholder = 9;
* @return The bytes for placeholder.
*/
public com.google.protobuf.ByteString
getPlaceholderBytes() {
java.lang.Object ref = placeholder_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
placeholder_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Placeholder text for the input field.
*
*
* string placeholder = 9;
* @param value The placeholder to set.
* @return This builder for chaining.
*/
public Builder setPlaceholder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
placeholder_ = value;
onChanged();
return this;
}
/**
*
* Placeholder text for the input field.
*
*
* string placeholder = 9;
* @return This builder for chaining.
*/
public Builder clearPlaceholder() {
placeholder_ = getDefaultInstance().getPlaceholder();
onChanged();
return this;
}
/**
*
* Placeholder text for the input field.
*
*
* string placeholder = 9;
* @param value The bytes for placeholder to set.
* @return This builder for chaining.
*/
public Builder setPlaceholderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
placeholder_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedPlaceholder_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedPlaceholderBuilder_;
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
* @return Whether the localizedPlaceholder field is set.
*/
public boolean hasLocalizedPlaceholder() {
return localizedPlaceholderBuilder_ != null || localizedPlaceholder_ != null;
}
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
* @return The localizedPlaceholder.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedPlaceholder() {
if (localizedPlaceholderBuilder_ == null) {
return localizedPlaceholder_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedPlaceholder_;
} else {
return localizedPlaceholderBuilder_.getMessage();
}
}
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
*/
public Builder setLocalizedPlaceholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedPlaceholderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedPlaceholder_ = value;
onChanged();
} else {
localizedPlaceholderBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
*/
public Builder setLocalizedPlaceholder(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedPlaceholderBuilder_ == null) {
localizedPlaceholder_ = builderForValue.build();
onChanged();
} else {
localizedPlaceholderBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
*/
public Builder mergeLocalizedPlaceholder(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedPlaceholderBuilder_ == null) {
if (localizedPlaceholder_ != null) {
localizedPlaceholder_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedPlaceholder_).mergeFrom(value).buildPartial();
} else {
localizedPlaceholder_ = value;
}
onChanged();
} else {
localizedPlaceholderBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
*/
public Builder clearLocalizedPlaceholder() {
if (localizedPlaceholderBuilder_ == null) {
localizedPlaceholder_ = null;
onChanged();
} else {
localizedPlaceholder_ = null;
localizedPlaceholderBuilder_ = null;
}
return this;
}
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedPlaceholderBuilder() {
onChanged();
return getLocalizedPlaceholderFieldBuilder().getBuilder();
}
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedPlaceholderOrBuilder() {
if (localizedPlaceholderBuilder_ != null) {
return localizedPlaceholderBuilder_.getMessageOrBuilder();
} else {
return localizedPlaceholder_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedPlaceholder_;
}
}
/**
*
* Localized placeholder text.
*
*
* .io.LocalizedString localizedPlaceholder = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedPlaceholderFieldBuilder() {
if (localizedPlaceholderBuilder_ == null) {
localizedPlaceholderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedPlaceholder(),
getParentForChildren(),
isClean());
localizedPlaceholder_ = null;
}
return localizedPlaceholderBuilder_;
}
private java.lang.Object validation_ = "";
/**
*
* A regex which allows you to set custom validation rules for the input value.
*
*
* string validation = 11;
* @return The validation.
*/
public java.lang.String getValidation() {
java.lang.Object ref = validation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
validation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A regex which allows you to set custom validation rules for the input value.
*
*
* string validation = 11;
* @return The bytes for validation.
*/
public com.google.protobuf.ByteString
getValidationBytes() {
java.lang.Object ref = validation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A regex which allows you to set custom validation rules for the input value.
*
*
* string validation = 11;
* @param value The validation to set.
* @return This builder for chaining.
*/
public Builder setValidation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
validation_ = value;
onChanged();
return this;
}
/**
*
* A regex which allows you to set custom validation rules for the input value.
*
*
* string validation = 11;
* @return This builder for chaining.
*/
public Builder clearValidation() {
validation_ = getDefaultInstance().getValidation();
onChanged();
return this;
}
/**
*
* A regex which allows you to set custom validation rules for the input value.
*
*
* string validation = 11;
* @param value The bytes for validation to set.
* @return This builder for chaining.
*/
public Builder setValidationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
validation_ = value;
onChanged();
return this;
}
@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:single_use_coupons.InputField)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.InputField)
private static final com.passkit.grpc.SingleUseCoupons.Offer.InputField DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.InputField();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.InputField getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InputField parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InputField(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.InputField getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StandardPassKitHostedPageOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.StandardPassKitHostedPage)
com.google.protobuf.MessageOrBuilder {
/**
*
* Title shown on the redemption page browser tab. If not set, offer title will be shown.
*
*
* string title = 1;
* @return The title.
*/
java.lang.String getTitle();
/**
*
* Title shown on the redemption page browser tab. If not set, offer title will be shown.
*
*
* string title = 1;
* @return The bytes for title.
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return Whether the localizedTitle field is set.
*/
boolean hasLocalizedTitle();
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return The localizedTitle.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedTitle();
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTitleOrBuilder();
/**
*
* Redemption instructions, show underneath the redemption banner image.
*
*
* string redemptionInstructions = 3;
* @return The redemptionInstructions.
*/
java.lang.String getRedemptionInstructions();
/**
*
* Redemption instructions, show underneath the redemption banner image.
*
*
* string redemptionInstructions = 3;
* @return The bytes for redemptionInstructions.
*/
com.google.protobuf.ByteString
getRedemptionInstructionsBytes();
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
* @return Whether the localizedRedemptionInstructions field is set.
*/
boolean hasLocalizedRedemptionInstructions();
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
* @return The localizedRedemptionInstructions.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedRedemptionInstructions();
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedRedemptionInstructionsOrBuilder();
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
* @return Whether the imageIds field is set.
*/
boolean hasImageIds();
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
* @return The imageIds.
*/
com.passkit.grpc.Image.ImageIds getImageIds();
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
*/
com.passkit.grpc.Image.ImageIdsOrBuilder getImageIdsOrBuilder();
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
* @return Whether the images field is set.
*/
boolean hasImages();
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
* @return The images.
*/
com.passkit.grpc.Image.ImageData getImages();
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
*/
com.passkit.grpc.Image.ImageDataOrBuilder getImagesOrBuilder();
/**
*
* Text shown at the footer of the page, underneath the redemption code / redemption code input.
*
*
* string footerText = 7;
* @return The footerText.
*/
java.lang.String getFooterText();
/**
*
* Text shown at the footer of the page, underneath the redemption code / redemption code input.
*
*
* string footerText = 7;
* @return The bytes for footerText.
*/
com.google.protobuf.ByteString
getFooterTextBytes();
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
* @return Whether the localizedFooterText field is set.
*/
boolean hasLocalizedFooterText();
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
* @return The localizedFooterText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedFooterText();
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterTextOrBuilder();
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
* @return Whether the responseTexts field is set.
*/
boolean hasResponseTexts();
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
* @return The responseTexts.
*/
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts getResponseTexts();
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
*/
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTextsOrBuilder getResponseTextsOrBuilder();
/**
*
* Date time showed with couponAlreadyRedeemedText. Date time is localized to browser preferred language.
*
*
* bool hideRedeemedDateTime = 10;
* @return The hideRedeemedDateTime.
*/
boolean getHideRedeemedDateTime();
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
* @return Whether the callToActionButton field is set.
*/
boolean hasCallToActionButton();
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
* @return The callToActionButton.
*/
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton getCallToActionButton();
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
*/
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButtonOrBuilder getCallToActionButtonOrBuilder();
/**
*
* Optional CSS overrides to ensure the page aligns with your brand guidelines.
*
*
* string cssOverrides = 12;
* @return The cssOverrides.
*/
java.lang.String getCssOverrides();
/**
*
* Optional CSS overrides to ensure the page aligns with your brand guidelines.
*
*
* string cssOverrides = 12;
* @return The bytes for cssOverrides.
*/
com.google.protobuf.ByteString
getCssOverridesBytes();
public com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.RedemptionImageAssetsCase getRedemptionImageAssetsCase();
}
/**
* Protobuf type {@code single_use_coupons.StandardPassKitHostedPage}
*/
public static final class StandardPassKitHostedPage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.StandardPassKitHostedPage)
StandardPassKitHostedPageOrBuilder {
private static final long serialVersionUID = 0L;
// Use StandardPassKitHostedPage.newBuilder() to construct.
private StandardPassKitHostedPage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StandardPassKitHostedPage() {
title_ = "";
redemptionInstructions_ = "";
footerText_ = "";
cssOverrides_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StandardPassKitHostedPage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StandardPassKitHostedPage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
title_ = s;
break;
}
case 18: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedTitle_ != null) {
subBuilder = localizedTitle_.toBuilder();
}
localizedTitle_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedTitle_);
localizedTitle_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
redemptionInstructions_ = s;
break;
}
case 34: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedRedemptionInstructions_ != null) {
subBuilder = localizedRedemptionInstructions_.toBuilder();
}
localizedRedemptionInstructions_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedRedemptionInstructions_);
localizedRedemptionInstructions_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.passkit.grpc.Image.ImageIds.Builder subBuilder = null;
if (redemptionImageAssetsCase_ == 5) {
subBuilder = ((com.passkit.grpc.Image.ImageIds) redemptionImageAssets_).toBuilder();
}
redemptionImageAssets_ =
input.readMessage(com.passkit.grpc.Image.ImageIds.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.passkit.grpc.Image.ImageIds) redemptionImageAssets_);
redemptionImageAssets_ = subBuilder.buildPartial();
}
redemptionImageAssetsCase_ = 5;
break;
}
case 50: {
com.passkit.grpc.Image.ImageData.Builder subBuilder = null;
if (redemptionImageAssetsCase_ == 6) {
subBuilder = ((com.passkit.grpc.Image.ImageData) redemptionImageAssets_).toBuilder();
}
redemptionImageAssets_ =
input.readMessage(com.passkit.grpc.Image.ImageData.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.passkit.grpc.Image.ImageData) redemptionImageAssets_);
redemptionImageAssets_ = subBuilder.buildPartial();
}
redemptionImageAssetsCase_ = 6;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
footerText_ = s;
break;
}
case 66: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedFooterText_ != null) {
subBuilder = localizedFooterText_.toBuilder();
}
localizedFooterText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedFooterText_);
localizedFooterText_ = subBuilder.buildPartial();
}
break;
}
case 74: {
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.Builder subBuilder = null;
if (responseTexts_ != null) {
subBuilder = responseTexts_.toBuilder();
}
responseTexts_ = input.readMessage(com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(responseTexts_);
responseTexts_ = subBuilder.buildPartial();
}
break;
}
case 80: {
hideRedeemedDateTime_ = input.readBool();
break;
}
case 90: {
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.Builder subBuilder = null;
if (callToActionButton_ != null) {
subBuilder = callToActionButton_.toBuilder();
}
callToActionButton_ = input.readMessage(com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callToActionButton_);
callToActionButton_ = subBuilder.buildPartial();
}
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
cssOverrides_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_StandardPassKitHostedPage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_StandardPassKitHostedPage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.class, com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.Builder.class);
}
private int redemptionImageAssetsCase_ = 0;
private java.lang.Object redemptionImageAssets_;
public enum RedemptionImageAssetsCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
IMAGEIDS(5),
IMAGES(6),
REDEMPTIONIMAGEASSETS_NOT_SET(0);
private final int value;
private RedemptionImageAssetsCase(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 RedemptionImageAssetsCase valueOf(int value) {
return forNumber(value);
}
public static RedemptionImageAssetsCase forNumber(int value) {
switch (value) {
case 5: return IMAGEIDS;
case 6: return IMAGES;
case 0: return REDEMPTIONIMAGEASSETS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public RedemptionImageAssetsCase
getRedemptionImageAssetsCase() {
return RedemptionImageAssetsCase.forNumber(
redemptionImageAssetsCase_);
}
public static final int TITLE_FIELD_NUMBER = 1;
private volatile java.lang.Object title_;
/**
*
* Title shown on the redemption page browser tab. If not set, offer title will be shown.
*
*
* string title = 1;
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
title_ = s;
return s;
}
}
/**
*
* Title shown on the redemption page browser tab. If not set, offer title will be shown.
*
*
* string title = 1;
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDTITLE_FIELD_NUMBER = 2;
private com.passkit.grpc.Localization.LocalizedString localizedTitle_;
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return Whether the localizedTitle field is set.
*/
@java.lang.Override
public boolean hasLocalizedTitle() {
return localizedTitle_ != null;
}
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return The localizedTitle.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedTitle() {
return localizedTitle_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTitle_;
}
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTitleOrBuilder() {
return getLocalizedTitle();
}
public static final int REDEMPTIONINSTRUCTIONS_FIELD_NUMBER = 3;
private volatile java.lang.Object redemptionInstructions_;
/**
*
* Redemption instructions, show underneath the redemption banner image.
*
*
* string redemptionInstructions = 3;
* @return The redemptionInstructions.
*/
@java.lang.Override
public java.lang.String getRedemptionInstructions() {
java.lang.Object ref = redemptionInstructions_;
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();
redemptionInstructions_ = s;
return s;
}
}
/**
*
* Redemption instructions, show underneath the redemption banner image.
*
*
* string redemptionInstructions = 3;
* @return The bytes for redemptionInstructions.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRedemptionInstructionsBytes() {
java.lang.Object ref = redemptionInstructions_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
redemptionInstructions_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDREDEMPTIONINSTRUCTIONS_FIELD_NUMBER = 4;
private com.passkit.grpc.Localization.LocalizedString localizedRedemptionInstructions_;
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
* @return Whether the localizedRedemptionInstructions field is set.
*/
@java.lang.Override
public boolean hasLocalizedRedemptionInstructions() {
return localizedRedemptionInstructions_ != null;
}
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
* @return The localizedRedemptionInstructions.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedRedemptionInstructions() {
return localizedRedemptionInstructions_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedRedemptionInstructions_;
}
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedRedemptionInstructionsOrBuilder() {
return getLocalizedRedemptionInstructions();
}
public static final int IMAGEIDS_FIELD_NUMBER = 5;
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
* @return Whether the imageIds field is set.
*/
@java.lang.Override
public boolean hasImageIds() {
return redemptionImageAssetsCase_ == 5;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
* @return The imageIds.
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageIds getImageIds() {
if (redemptionImageAssetsCase_ == 5) {
return (com.passkit.grpc.Image.ImageIds) redemptionImageAssets_;
}
return com.passkit.grpc.Image.ImageIds.getDefaultInstance();
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageIdsOrBuilder getImageIdsOrBuilder() {
if (redemptionImageAssetsCase_ == 5) {
return (com.passkit.grpc.Image.ImageIds) redemptionImageAssets_;
}
return com.passkit.grpc.Image.ImageIds.getDefaultInstance();
}
public static final int IMAGES_FIELD_NUMBER = 6;
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
* @return Whether the images field is set.
*/
@java.lang.Override
public boolean hasImages() {
return redemptionImageAssetsCase_ == 6;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
* @return The images.
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageData getImages() {
if (redemptionImageAssetsCase_ == 6) {
return (com.passkit.grpc.Image.ImageData) redemptionImageAssets_;
}
return com.passkit.grpc.Image.ImageData.getDefaultInstance();
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageDataOrBuilder getImagesOrBuilder() {
if (redemptionImageAssetsCase_ == 6) {
return (com.passkit.grpc.Image.ImageData) redemptionImageAssets_;
}
return com.passkit.grpc.Image.ImageData.getDefaultInstance();
}
public static final int FOOTERTEXT_FIELD_NUMBER = 7;
private volatile java.lang.Object footerText_;
/**
*
* Text shown at the footer of the page, underneath the redemption code / redemption code input.
*
*
* string footerText = 7;
* @return The footerText.
*/
@java.lang.Override
public java.lang.String getFooterText() {
java.lang.Object ref = footerText_;
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();
footerText_ = s;
return s;
}
}
/**
*
* Text shown at the footer of the page, underneath the redemption code / redemption code input.
*
*
* string footerText = 7;
* @return The bytes for footerText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFooterTextBytes() {
java.lang.Object ref = footerText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
footerText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDFOOTERTEXT_FIELD_NUMBER = 8;
private com.passkit.grpc.Localization.LocalizedString localizedFooterText_;
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
* @return Whether the localizedFooterText field is set.
*/
@java.lang.Override
public boolean hasLocalizedFooterText() {
return localizedFooterText_ != null;
}
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
* @return The localizedFooterText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedFooterText() {
return localizedFooterText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterText_;
}
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterTextOrBuilder() {
return getLocalizedFooterText();
}
public static final int RESPONSETEXTS_FIELD_NUMBER = 9;
private com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts responseTexts_;
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
* @return Whether the responseTexts field is set.
*/
@java.lang.Override
public boolean hasResponseTexts() {
return responseTexts_ != null;
}
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
* @return The responseTexts.
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts getResponseTexts() {
return responseTexts_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.getDefaultInstance() : responseTexts_;
}
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.ResponseTextsOrBuilder getResponseTextsOrBuilder() {
return getResponseTexts();
}
public static final int HIDEREDEEMEDDATETIME_FIELD_NUMBER = 10;
private boolean hideRedeemedDateTime_;
/**
*
* Date time showed with couponAlreadyRedeemedText. Date time is localized to browser preferred language.
*
*
* bool hideRedeemedDateTime = 10;
* @return The hideRedeemedDateTime.
*/
@java.lang.Override
public boolean getHideRedeemedDateTime() {
return hideRedeemedDateTime_;
}
public static final int CALLTOACTIONBUTTON_FIELD_NUMBER = 11;
private com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton callToActionButton_;
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
* @return Whether the callToActionButton field is set.
*/
@java.lang.Override
public boolean hasCallToActionButton() {
return callToActionButton_ != null;
}
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
* @return The callToActionButton.
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton getCallToActionButton() {
return callToActionButton_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.getDefaultInstance() : callToActionButton_;
}
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
*/
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButtonOrBuilder getCallToActionButtonOrBuilder() {
return getCallToActionButton();
}
public static final int CSSOVERRIDES_FIELD_NUMBER = 12;
private volatile java.lang.Object cssOverrides_;
/**
*
* Optional CSS overrides to ensure the page aligns with your brand guidelines.
*
*
* string cssOverrides = 12;
* @return The cssOverrides.
*/
@java.lang.Override
public java.lang.String getCssOverrides() {
java.lang.Object ref = cssOverrides_;
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();
cssOverrides_ = s;
return s;
}
}
/**
*
* Optional CSS overrides to ensure the page aligns with your brand guidelines.
*
*
* string cssOverrides = 12;
* @return The bytes for cssOverrides.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCssOverridesBytes() {
java.lang.Object ref = cssOverrides_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cssOverrides_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (localizedTitle_ != null) {
output.writeMessage(2, getLocalizedTitle());
}
if (!getRedemptionInstructionsBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, redemptionInstructions_);
}
if (localizedRedemptionInstructions_ != null) {
output.writeMessage(4, getLocalizedRedemptionInstructions());
}
if (redemptionImageAssetsCase_ == 5) {
output.writeMessage(5, (com.passkit.grpc.Image.ImageIds) redemptionImageAssets_);
}
if (redemptionImageAssetsCase_ == 6) {
output.writeMessage(6, (com.passkit.grpc.Image.ImageData) redemptionImageAssets_);
}
if (!getFooterTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, footerText_);
}
if (localizedFooterText_ != null) {
output.writeMessage(8, getLocalizedFooterText());
}
if (responseTexts_ != null) {
output.writeMessage(9, getResponseTexts());
}
if (hideRedeemedDateTime_ != false) {
output.writeBool(10, hideRedeemedDateTime_);
}
if (callToActionButton_ != null) {
output.writeMessage(11, getCallToActionButton());
}
if (!getCssOverridesBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, cssOverrides_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
}
if (localizedTitle_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLocalizedTitle());
}
if (!getRedemptionInstructionsBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, redemptionInstructions_);
}
if (localizedRedemptionInstructions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLocalizedRedemptionInstructions());
}
if (redemptionImageAssetsCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.passkit.grpc.Image.ImageIds) redemptionImageAssets_);
}
if (redemptionImageAssetsCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.passkit.grpc.Image.ImageData) redemptionImageAssets_);
}
if (!getFooterTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, footerText_);
}
if (localizedFooterText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getLocalizedFooterText());
}
if (responseTexts_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getResponseTexts());
}
if (hideRedeemedDateTime_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, hideRedeemedDateTime_);
}
if (callToActionButton_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getCallToActionButton());
}
if (!getCssOverridesBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, cssOverrides_);
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage other = (com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage) obj;
if (!getTitle()
.equals(other.getTitle())) return false;
if (hasLocalizedTitle() != other.hasLocalizedTitle()) return false;
if (hasLocalizedTitle()) {
if (!getLocalizedTitle()
.equals(other.getLocalizedTitle())) return false;
}
if (!getRedemptionInstructions()
.equals(other.getRedemptionInstructions())) return false;
if (hasLocalizedRedemptionInstructions() != other.hasLocalizedRedemptionInstructions()) return false;
if (hasLocalizedRedemptionInstructions()) {
if (!getLocalizedRedemptionInstructions()
.equals(other.getLocalizedRedemptionInstructions())) return false;
}
if (!getFooterText()
.equals(other.getFooterText())) return false;
if (hasLocalizedFooterText() != other.hasLocalizedFooterText()) return false;
if (hasLocalizedFooterText()) {
if (!getLocalizedFooterText()
.equals(other.getLocalizedFooterText())) return false;
}
if (hasResponseTexts() != other.hasResponseTexts()) return false;
if (hasResponseTexts()) {
if (!getResponseTexts()
.equals(other.getResponseTexts())) return false;
}
if (getHideRedeemedDateTime()
!= other.getHideRedeemedDateTime()) return false;
if (hasCallToActionButton() != other.hasCallToActionButton()) return false;
if (hasCallToActionButton()) {
if (!getCallToActionButton()
.equals(other.getCallToActionButton())) return false;
}
if (!getCssOverrides()
.equals(other.getCssOverrides())) return false;
if (!getRedemptionImageAssetsCase().equals(other.getRedemptionImageAssetsCase())) return false;
switch (redemptionImageAssetsCase_) {
case 5:
if (!getImageIds()
.equals(other.getImageIds())) return false;
break;
case 6:
if (!getImages()
.equals(other.getImages())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) 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) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
if (hasLocalizedTitle()) {
hash = (37 * hash) + LOCALIZEDTITLE_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedTitle().hashCode();
}
hash = (37 * hash) + REDEMPTIONINSTRUCTIONS_FIELD_NUMBER;
hash = (53 * hash) + getRedemptionInstructions().hashCode();
if (hasLocalizedRedemptionInstructions()) {
hash = (37 * hash) + LOCALIZEDREDEMPTIONINSTRUCTIONS_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedRedemptionInstructions().hashCode();
}
hash = (37 * hash) + FOOTERTEXT_FIELD_NUMBER;
hash = (53 * hash) + getFooterText().hashCode();
if (hasLocalizedFooterText()) {
hash = (37 * hash) + LOCALIZEDFOOTERTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedFooterText().hashCode();
}
if (hasResponseTexts()) {
hash = (37 * hash) + RESPONSETEXTS_FIELD_NUMBER;
hash = (53 * hash) + getResponseTexts().hashCode();
}
hash = (37 * hash) + HIDEREDEEMEDDATETIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHideRedeemedDateTime());
if (hasCallToActionButton()) {
hash = (37 * hash) + CALLTOACTIONBUTTON_FIELD_NUMBER;
hash = (53 * hash) + getCallToActionButton().hashCode();
}
hash = (37 * hash) + CSSOVERRIDES_FIELD_NUMBER;
hash = (53 * hash) + getCssOverrides().hashCode();
switch (redemptionImageAssetsCase_) {
case 5:
hash = (37 * hash) + IMAGEIDS_FIELD_NUMBER;
hash = (53 * hash) + getImageIds().hashCode();
break;
case 6:
hash = (37 * hash) + IMAGES_FIELD_NUMBER;
hash = (53 * hash) + getImages().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage 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.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage 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.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage 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.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage 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;
}
/**
* Protobuf type {@code single_use_coupons.StandardPassKitHostedPage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.StandardPassKitHostedPage)
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_StandardPassKitHostedPage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_StandardPassKitHostedPage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.class, com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
title_ = "";
if (localizedTitleBuilder_ == null) {
localizedTitle_ = null;
} else {
localizedTitle_ = null;
localizedTitleBuilder_ = null;
}
redemptionInstructions_ = "";
if (localizedRedemptionInstructionsBuilder_ == null) {
localizedRedemptionInstructions_ = null;
} else {
localizedRedemptionInstructions_ = null;
localizedRedemptionInstructionsBuilder_ = null;
}
footerText_ = "";
if (localizedFooterTextBuilder_ == null) {
localizedFooterText_ = null;
} else {
localizedFooterText_ = null;
localizedFooterTextBuilder_ = null;
}
if (responseTextsBuilder_ == null) {
responseTexts_ = null;
} else {
responseTexts_ = null;
responseTextsBuilder_ = null;
}
hideRedeemedDateTime_ = false;
if (callToActionButtonBuilder_ == null) {
callToActionButton_ = null;
} else {
callToActionButton_ = null;
callToActionButtonBuilder_ = null;
}
cssOverrides_ = "";
redemptionImageAssetsCase_ = 0;
redemptionImageAssets_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_StandardPassKitHostedPage_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage build() {
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage result = new com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage(this);
result.title_ = title_;
if (localizedTitleBuilder_ == null) {
result.localizedTitle_ = localizedTitle_;
} else {
result.localizedTitle_ = localizedTitleBuilder_.build();
}
result.redemptionInstructions_ = redemptionInstructions_;
if (localizedRedemptionInstructionsBuilder_ == null) {
result.localizedRedemptionInstructions_ = localizedRedemptionInstructions_;
} else {
result.localizedRedemptionInstructions_ = localizedRedemptionInstructionsBuilder_.build();
}
if (redemptionImageAssetsCase_ == 5) {
if (imageIdsBuilder_ == null) {
result.redemptionImageAssets_ = redemptionImageAssets_;
} else {
result.redemptionImageAssets_ = imageIdsBuilder_.build();
}
}
if (redemptionImageAssetsCase_ == 6) {
if (imagesBuilder_ == null) {
result.redemptionImageAssets_ = redemptionImageAssets_;
} else {
result.redemptionImageAssets_ = imagesBuilder_.build();
}
}
result.footerText_ = footerText_;
if (localizedFooterTextBuilder_ == null) {
result.localizedFooterText_ = localizedFooterText_;
} else {
result.localizedFooterText_ = localizedFooterTextBuilder_.build();
}
if (responseTextsBuilder_ == null) {
result.responseTexts_ = responseTexts_;
} else {
result.responseTexts_ = responseTextsBuilder_.build();
}
result.hideRedeemedDateTime_ = hideRedeemedDateTime_;
if (callToActionButtonBuilder_ == null) {
result.callToActionButton_ = callToActionButton_;
} else {
result.callToActionButton_ = callToActionButtonBuilder_.build();
}
result.cssOverrides_ = cssOverrides_;
result.redemptionImageAssetsCase_ = redemptionImageAssetsCase_;
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
onChanged();
}
if (other.hasLocalizedTitle()) {
mergeLocalizedTitle(other.getLocalizedTitle());
}
if (!other.getRedemptionInstructions().isEmpty()) {
redemptionInstructions_ = other.redemptionInstructions_;
onChanged();
}
if (other.hasLocalizedRedemptionInstructions()) {
mergeLocalizedRedemptionInstructions(other.getLocalizedRedemptionInstructions());
}
if (!other.getFooterText().isEmpty()) {
footerText_ = other.footerText_;
onChanged();
}
if (other.hasLocalizedFooterText()) {
mergeLocalizedFooterText(other.getLocalizedFooterText());
}
if (other.hasResponseTexts()) {
mergeResponseTexts(other.getResponseTexts());
}
if (other.getHideRedeemedDateTime() != false) {
setHideRedeemedDateTime(other.getHideRedeemedDateTime());
}
if (other.hasCallToActionButton()) {
mergeCallToActionButton(other.getCallToActionButton());
}
if (!other.getCssOverrides().isEmpty()) {
cssOverrides_ = other.cssOverrides_;
onChanged();
}
switch (other.getRedemptionImageAssetsCase()) {
case IMAGEIDS: {
mergeImageIds(other.getImageIds());
break;
}
case IMAGES: {
mergeImages(other.getImages());
break;
}
case REDEMPTIONIMAGEASSETS_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int redemptionImageAssetsCase_ = 0;
private java.lang.Object redemptionImageAssets_;
public RedemptionImageAssetsCase
getRedemptionImageAssetsCase() {
return RedemptionImageAssetsCase.forNumber(
redemptionImageAssetsCase_);
}
public Builder clearRedemptionImageAssets() {
redemptionImageAssetsCase_ = 0;
redemptionImageAssets_ = null;
onChanged();
return this;
}
private java.lang.Object title_ = "";
/**
*
* Title shown on the redemption page browser tab. If not set, offer title will be shown.
*
*
* string title = 1;
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Title shown on the redemption page browser tab. If not set, offer title will be shown.
*
*
* string title = 1;
* @return The bytes for title.
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Title shown on the redemption page browser tab. If not set, offer title will be shown.
*
*
* string title = 1;
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
title_ = value;
onChanged();
return this;
}
/**
*
* Title shown on the redemption page browser tab. If not set, offer title will be shown.
*
*
* string title = 1;
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
*
* Title shown on the redemption page browser tab. If not set, offer title will be shown.
*
*
* string title = 1;
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
title_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedTitle_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedTitleBuilder_;
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return Whether the localizedTitle field is set.
*/
public boolean hasLocalizedTitle() {
return localizedTitleBuilder_ != null || localizedTitle_ != null;
}
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
* @return The localizedTitle.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedTitle() {
if (localizedTitleBuilder_ == null) {
return localizedTitle_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTitle_;
} else {
return localizedTitleBuilder_.getMessage();
}
}
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public Builder setLocalizedTitle(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedTitleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedTitle_ = value;
onChanged();
} else {
localizedTitleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public Builder setLocalizedTitle(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedTitleBuilder_ == null) {
localizedTitle_ = builderForValue.build();
onChanged();
} else {
localizedTitleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public Builder mergeLocalizedTitle(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedTitleBuilder_ == null) {
if (localizedTitle_ != null) {
localizedTitle_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedTitle_).mergeFrom(value).buildPartial();
} else {
localizedTitle_ = value;
}
onChanged();
} else {
localizedTitleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public Builder clearLocalizedTitle() {
if (localizedTitleBuilder_ == null) {
localizedTitle_ = null;
onChanged();
} else {
localizedTitle_ = null;
localizedTitleBuilder_ = null;
}
return this;
}
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedTitleBuilder() {
onChanged();
return getLocalizedTitleFieldBuilder().getBuilder();
}
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTitleOrBuilder() {
if (localizedTitleBuilder_ != null) {
return localizedTitleBuilder_.getMessageOrBuilder();
} else {
return localizedTitle_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTitle_;
}
}
/**
*
* Localized title.
*
*
* .io.LocalizedString localizedTitle = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedTitleFieldBuilder() {
if (localizedTitleBuilder_ == null) {
localizedTitleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedTitle(),
getParentForChildren(),
isClean());
localizedTitle_ = null;
}
return localizedTitleBuilder_;
}
private java.lang.Object redemptionInstructions_ = "";
/**
*
* Redemption instructions, show underneath the redemption banner image.
*
*
* string redemptionInstructions = 3;
* @return The redemptionInstructions.
*/
public java.lang.String getRedemptionInstructions() {
java.lang.Object ref = redemptionInstructions_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
redemptionInstructions_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Redemption instructions, show underneath the redemption banner image.
*
*
* string redemptionInstructions = 3;
* @return The bytes for redemptionInstructions.
*/
public com.google.protobuf.ByteString
getRedemptionInstructionsBytes() {
java.lang.Object ref = redemptionInstructions_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
redemptionInstructions_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Redemption instructions, show underneath the redemption banner image.
*
*
* string redemptionInstructions = 3;
* @param value The redemptionInstructions to set.
* @return This builder for chaining.
*/
public Builder setRedemptionInstructions(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
redemptionInstructions_ = value;
onChanged();
return this;
}
/**
*
* Redemption instructions, show underneath the redemption banner image.
*
*
* string redemptionInstructions = 3;
* @return This builder for chaining.
*/
public Builder clearRedemptionInstructions() {
redemptionInstructions_ = getDefaultInstance().getRedemptionInstructions();
onChanged();
return this;
}
/**
*
* Redemption instructions, show underneath the redemption banner image.
*
*
* string redemptionInstructions = 3;
* @param value The bytes for redemptionInstructions to set.
* @return This builder for chaining.
*/
public Builder setRedemptionInstructionsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
redemptionInstructions_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedRedemptionInstructions_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedRedemptionInstructionsBuilder_;
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
* @return Whether the localizedRedemptionInstructions field is set.
*/
public boolean hasLocalizedRedemptionInstructions() {
return localizedRedemptionInstructionsBuilder_ != null || localizedRedemptionInstructions_ != null;
}
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
* @return The localizedRedemptionInstructions.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedRedemptionInstructions() {
if (localizedRedemptionInstructionsBuilder_ == null) {
return localizedRedemptionInstructions_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedRedemptionInstructions_;
} else {
return localizedRedemptionInstructionsBuilder_.getMessage();
}
}
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
*/
public Builder setLocalizedRedemptionInstructions(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedRedemptionInstructionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedRedemptionInstructions_ = value;
onChanged();
} else {
localizedRedemptionInstructionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
*/
public Builder setLocalizedRedemptionInstructions(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedRedemptionInstructionsBuilder_ == null) {
localizedRedemptionInstructions_ = builderForValue.build();
onChanged();
} else {
localizedRedemptionInstructionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
*/
public Builder mergeLocalizedRedemptionInstructions(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedRedemptionInstructionsBuilder_ == null) {
if (localizedRedemptionInstructions_ != null) {
localizedRedemptionInstructions_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedRedemptionInstructions_).mergeFrom(value).buildPartial();
} else {
localizedRedemptionInstructions_ = value;
}
onChanged();
} else {
localizedRedemptionInstructionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
*/
public Builder clearLocalizedRedemptionInstructions() {
if (localizedRedemptionInstructionsBuilder_ == null) {
localizedRedemptionInstructions_ = null;
onChanged();
} else {
localizedRedemptionInstructions_ = null;
localizedRedemptionInstructionsBuilder_ = null;
}
return this;
}
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedRedemptionInstructionsBuilder() {
onChanged();
return getLocalizedRedemptionInstructionsFieldBuilder().getBuilder();
}
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedRedemptionInstructionsOrBuilder() {
if (localizedRedemptionInstructionsBuilder_ != null) {
return localizedRedemptionInstructionsBuilder_.getMessageOrBuilder();
} else {
return localizedRedemptionInstructions_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedRedemptionInstructions_;
}
}
/**
*
* Localized redemption instructions.
*
*
* .io.LocalizedString localizedRedemptionInstructions = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedRedemptionInstructionsFieldBuilder() {
if (localizedRedemptionInstructionsBuilder_ == null) {
localizedRedemptionInstructionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedRedemptionInstructions(),
getParentForChildren(),
isClean());
localizedRedemptionInstructions_ = null;
}
return localizedRedemptionInstructionsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageIds, com.passkit.grpc.Image.ImageIds.Builder, com.passkit.grpc.Image.ImageIdsOrBuilder> imageIdsBuilder_;
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
* @return Whether the imageIds field is set.
*/
@java.lang.Override
public boolean hasImageIds() {
return redemptionImageAssetsCase_ == 5;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
* @return The imageIds.
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageIds getImageIds() {
if (imageIdsBuilder_ == null) {
if (redemptionImageAssetsCase_ == 5) {
return (com.passkit.grpc.Image.ImageIds) redemptionImageAssets_;
}
return com.passkit.grpc.Image.ImageIds.getDefaultInstance();
} else {
if (redemptionImageAssetsCase_ == 5) {
return imageIdsBuilder_.getMessage();
}
return com.passkit.grpc.Image.ImageIds.getDefaultInstance();
}
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
*/
public Builder setImageIds(com.passkit.grpc.Image.ImageIds value) {
if (imageIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
redemptionImageAssets_ = value;
onChanged();
} else {
imageIdsBuilder_.setMessage(value);
}
redemptionImageAssetsCase_ = 5;
return this;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
*/
public Builder setImageIds(
com.passkit.grpc.Image.ImageIds.Builder builderForValue) {
if (imageIdsBuilder_ == null) {
redemptionImageAssets_ = builderForValue.build();
onChanged();
} else {
imageIdsBuilder_.setMessage(builderForValue.build());
}
redemptionImageAssetsCase_ = 5;
return this;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
*/
public Builder mergeImageIds(com.passkit.grpc.Image.ImageIds value) {
if (imageIdsBuilder_ == null) {
if (redemptionImageAssetsCase_ == 5 &&
redemptionImageAssets_ != com.passkit.grpc.Image.ImageIds.getDefaultInstance()) {
redemptionImageAssets_ = com.passkit.grpc.Image.ImageIds.newBuilder((com.passkit.grpc.Image.ImageIds) redemptionImageAssets_)
.mergeFrom(value).buildPartial();
} else {
redemptionImageAssets_ = value;
}
onChanged();
} else {
if (redemptionImageAssetsCase_ == 5) {
imageIdsBuilder_.mergeFrom(value);
}
imageIdsBuilder_.setMessage(value);
}
redemptionImageAssetsCase_ = 5;
return this;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
*/
public Builder clearImageIds() {
if (imageIdsBuilder_ == null) {
if (redemptionImageAssetsCase_ == 5) {
redemptionImageAssetsCase_ = 0;
redemptionImageAssets_ = null;
onChanged();
}
} else {
if (redemptionImageAssetsCase_ == 5) {
redemptionImageAssetsCase_ = 0;
redemptionImageAssets_ = null;
}
imageIdsBuilder_.clear();
}
return this;
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
*/
public com.passkit.grpc.Image.ImageIds.Builder getImageIdsBuilder() {
return getImageIdsFieldBuilder().getBuilder();
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageIdsOrBuilder getImageIdsOrBuilder() {
if ((redemptionImageAssetsCase_ == 5) && (imageIdsBuilder_ != null)) {
return imageIdsBuilder_.getMessageOrBuilder();
} else {
if (redemptionImageAssetsCase_ == 5) {
return (com.passkit.grpc.Image.ImageIds) redemptionImageAssets_;
}
return com.passkit.grpc.Image.ImageIds.getDefaultInstance();
}
}
/**
*
* Image data defined by image ids.
*
*
* .io.ImageIds imageIds = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageIds, com.passkit.grpc.Image.ImageIds.Builder, com.passkit.grpc.Image.ImageIdsOrBuilder>
getImageIdsFieldBuilder() {
if (imageIdsBuilder_ == null) {
if (!(redemptionImageAssetsCase_ == 5)) {
redemptionImageAssets_ = com.passkit.grpc.Image.ImageIds.getDefaultInstance();
}
imageIdsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageIds, com.passkit.grpc.Image.ImageIds.Builder, com.passkit.grpc.Image.ImageIdsOrBuilder>(
(com.passkit.grpc.Image.ImageIds) redemptionImageAssets_,
getParentForChildren(),
isClean());
redemptionImageAssets_ = null;
}
redemptionImageAssetsCase_ = 5;
onChanged();;
return imageIdsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageData, com.passkit.grpc.Image.ImageData.Builder, com.passkit.grpc.Image.ImageDataOrBuilder> imagesBuilder_;
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
* @return Whether the images field is set.
*/
@java.lang.Override
public boolean hasImages() {
return redemptionImageAssetsCase_ == 6;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
* @return The images.
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageData getImages() {
if (imagesBuilder_ == null) {
if (redemptionImageAssetsCase_ == 6) {
return (com.passkit.grpc.Image.ImageData) redemptionImageAssets_;
}
return com.passkit.grpc.Image.ImageData.getDefaultInstance();
} else {
if (redemptionImageAssetsCase_ == 6) {
return imagesBuilder_.getMessage();
}
return com.passkit.grpc.Image.ImageData.getDefaultInstance();
}
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
*/
public Builder setImages(com.passkit.grpc.Image.ImageData value) {
if (imagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
redemptionImageAssets_ = value;
onChanged();
} else {
imagesBuilder_.setMessage(value);
}
redemptionImageAssetsCase_ = 6;
return this;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
*/
public Builder setImages(
com.passkit.grpc.Image.ImageData.Builder builderForValue) {
if (imagesBuilder_ == null) {
redemptionImageAssets_ = builderForValue.build();
onChanged();
} else {
imagesBuilder_.setMessage(builderForValue.build());
}
redemptionImageAssetsCase_ = 6;
return this;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
*/
public Builder mergeImages(com.passkit.grpc.Image.ImageData value) {
if (imagesBuilder_ == null) {
if (redemptionImageAssetsCase_ == 6 &&
redemptionImageAssets_ != com.passkit.grpc.Image.ImageData.getDefaultInstance()) {
redemptionImageAssets_ = com.passkit.grpc.Image.ImageData.newBuilder((com.passkit.grpc.Image.ImageData) redemptionImageAssets_)
.mergeFrom(value).buildPartial();
} else {
redemptionImageAssets_ = value;
}
onChanged();
} else {
if (redemptionImageAssetsCase_ == 6) {
imagesBuilder_.mergeFrom(value);
}
imagesBuilder_.setMessage(value);
}
redemptionImageAssetsCase_ = 6;
return this;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
*/
public Builder clearImages() {
if (imagesBuilder_ == null) {
if (redemptionImageAssetsCase_ == 6) {
redemptionImageAssetsCase_ = 0;
redemptionImageAssets_ = null;
onChanged();
}
} else {
if (redemptionImageAssetsCase_ == 6) {
redemptionImageAssetsCase_ = 0;
redemptionImageAssets_ = null;
}
imagesBuilder_.clear();
}
return this;
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
*/
public com.passkit.grpc.Image.ImageData.Builder getImagesBuilder() {
return getImagesFieldBuilder().getBuilder();
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
*/
@java.lang.Override
public com.passkit.grpc.Image.ImageDataOrBuilder getImagesOrBuilder() {
if ((redemptionImageAssetsCase_ == 6) && (imagesBuilder_ != null)) {
return imagesBuilder_.getMessageOrBuilder();
} else {
if (redemptionImageAssetsCase_ == 6) {
return (com.passkit.grpc.Image.ImageData) redemptionImageAssets_;
}
return com.passkit.grpc.Image.ImageData.getDefaultInstance();
}
}
/**
*
* Image data defined as image object.
*
*
* .io.ImageData images = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageData, com.passkit.grpc.Image.ImageData.Builder, com.passkit.grpc.Image.ImageDataOrBuilder>
getImagesFieldBuilder() {
if (imagesBuilder_ == null) {
if (!(redemptionImageAssetsCase_ == 6)) {
redemptionImageAssets_ = com.passkit.grpc.Image.ImageData.getDefaultInstance();
}
imagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Image.ImageData, com.passkit.grpc.Image.ImageData.Builder, com.passkit.grpc.Image.ImageDataOrBuilder>(
(com.passkit.grpc.Image.ImageData) redemptionImageAssets_,
getParentForChildren(),
isClean());
redemptionImageAssets_ = null;
}
redemptionImageAssetsCase_ = 6;
onChanged();;
return imagesBuilder_;
}
private java.lang.Object footerText_ = "";
/**
*
* Text shown at the footer of the page, underneath the redemption code / redemption code input.
*
*
* string footerText = 7;
* @return The footerText.
*/
public java.lang.String getFooterText() {
java.lang.Object ref = footerText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
footerText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Text shown at the footer of the page, underneath the redemption code / redemption code input.
*
*
* string footerText = 7;
* @return The bytes for footerText.
*/
public com.google.protobuf.ByteString
getFooterTextBytes() {
java.lang.Object ref = footerText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
footerText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Text shown at the footer of the page, underneath the redemption code / redemption code input.
*
*
* string footerText = 7;
* @param value The footerText to set.
* @return This builder for chaining.
*/
public Builder setFooterText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
footerText_ = value;
onChanged();
return this;
}
/**
*
* Text shown at the footer of the page, underneath the redemption code / redemption code input.
*
*
* string footerText = 7;
* @return This builder for chaining.
*/
public Builder clearFooterText() {
footerText_ = getDefaultInstance().getFooterText();
onChanged();
return this;
}
/**
*
* Text shown at the footer of the page, underneath the redemption code / redemption code input.
*
*
* string footerText = 7;
* @param value The bytes for footerText to set.
* @return This builder for chaining.
*/
public Builder setFooterTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
footerText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedFooterText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedFooterTextBuilder_;
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
* @return Whether the localizedFooterText field is set.
*/
public boolean hasLocalizedFooterText() {
return localizedFooterTextBuilder_ != null || localizedFooterText_ != null;
}
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
* @return The localizedFooterText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedFooterText() {
if (localizedFooterTextBuilder_ == null) {
return localizedFooterText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterText_;
} else {
return localizedFooterTextBuilder_.getMessage();
}
}
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
*/
public Builder setLocalizedFooterText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedFooterTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedFooterText_ = value;
onChanged();
} else {
localizedFooterTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
*/
public Builder setLocalizedFooterText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedFooterTextBuilder_ == null) {
localizedFooterText_ = builderForValue.build();
onChanged();
} else {
localizedFooterTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
*/
public Builder mergeLocalizedFooterText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedFooterTextBuilder_ == null) {
if (localizedFooterText_ != null) {
localizedFooterText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedFooterText_).mergeFrom(value).buildPartial();
} else {
localizedFooterText_ = value;
}
onChanged();
} else {
localizedFooterTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
*/
public Builder clearLocalizedFooterText() {
if (localizedFooterTextBuilder_ == null) {
localizedFooterText_ = null;
onChanged();
} else {
localizedFooterText_ = null;
localizedFooterTextBuilder_ = null;
}
return this;
}
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedFooterTextBuilder() {
onChanged();
return getLocalizedFooterTextFieldBuilder().getBuilder();
}
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterTextOrBuilder() {
if (localizedFooterTextBuilder_ != null) {
return localizedFooterTextBuilder_.getMessageOrBuilder();
} else {
return localizedFooterText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterText_;
}
}
/**
*
* Localized text shown at the footer of the page.
*
*
* .io.LocalizedString localizedFooterText = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedFooterTextFieldBuilder() {
if (localizedFooterTextBuilder_ == null) {
localizedFooterTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedFooterText(),
getParentForChildren(),
isClean());
localizedFooterText_ = null;
}
return localizedFooterTextBuilder_;
}
private com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts responseTexts_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts, com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.Builder, com.passkit.grpc.SingleUseCoupons.Offer.ResponseTextsOrBuilder> responseTextsBuilder_;
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
* @return Whether the responseTexts field is set.
*/
public boolean hasResponseTexts() {
return responseTextsBuilder_ != null || responseTexts_ != null;
}
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
* @return The responseTexts.
*/
public com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts getResponseTexts() {
if (responseTextsBuilder_ == null) {
return responseTexts_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.getDefaultInstance() : responseTexts_;
} else {
return responseTextsBuilder_.getMessage();
}
}
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
*/
public Builder setResponseTexts(com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts value) {
if (responseTextsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
responseTexts_ = value;
onChanged();
} else {
responseTextsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
*/
public Builder setResponseTexts(
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.Builder builderForValue) {
if (responseTextsBuilder_ == null) {
responseTexts_ = builderForValue.build();
onChanged();
} else {
responseTextsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
*/
public Builder mergeResponseTexts(com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts value) {
if (responseTextsBuilder_ == null) {
if (responseTexts_ != null) {
responseTexts_ =
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.newBuilder(responseTexts_).mergeFrom(value).buildPartial();
} else {
responseTexts_ = value;
}
onChanged();
} else {
responseTextsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
*/
public Builder clearResponseTexts() {
if (responseTextsBuilder_ == null) {
responseTexts_ = null;
onChanged();
} else {
responseTexts_ = null;
responseTextsBuilder_ = null;
}
return this;
}
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.Builder getResponseTextsBuilder() {
onChanged();
return getResponseTextsFieldBuilder().getBuilder();
}
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.ResponseTextsOrBuilder getResponseTextsOrBuilder() {
if (responseTextsBuilder_ != null) {
return responseTextsBuilder_.getMessageOrBuilder();
} else {
return responseTexts_ == null ?
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.getDefaultInstance() : responseTexts_;
}
}
/**
*
* Customize success or error messages shown on the page or error dialog box.
*
*
* .single_use_coupons.ResponseTexts responseTexts = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts, com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.Builder, com.passkit.grpc.SingleUseCoupons.Offer.ResponseTextsOrBuilder>
getResponseTextsFieldBuilder() {
if (responseTextsBuilder_ == null) {
responseTextsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts, com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.Builder, com.passkit.grpc.SingleUseCoupons.Offer.ResponseTextsOrBuilder>(
getResponseTexts(),
getParentForChildren(),
isClean());
responseTexts_ = null;
}
return responseTextsBuilder_;
}
private boolean hideRedeemedDateTime_ ;
/**
*
* Date time showed with couponAlreadyRedeemedText. Date time is localized to browser preferred language.
*
*
* bool hideRedeemedDateTime = 10;
* @return The hideRedeemedDateTime.
*/
@java.lang.Override
public boolean getHideRedeemedDateTime() {
return hideRedeemedDateTime_;
}
/**
*
* Date time showed with couponAlreadyRedeemedText. Date time is localized to browser preferred language.
*
*
* bool hideRedeemedDateTime = 10;
* @param value The hideRedeemedDateTime to set.
* @return This builder for chaining.
*/
public Builder setHideRedeemedDateTime(boolean value) {
hideRedeemedDateTime_ = value;
onChanged();
return this;
}
/**
*
* Date time showed with couponAlreadyRedeemedText. Date time is localized to browser preferred language.
*
*
* bool hideRedeemedDateTime = 10;
* @return This builder for chaining.
*/
public Builder clearHideRedeemedDateTime() {
hideRedeemedDateTime_ = false;
onChanged();
return this;
}
private com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton callToActionButton_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton, com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButtonOrBuilder> callToActionButtonBuilder_;
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
* @return Whether the callToActionButton field is set.
*/
public boolean hasCallToActionButton() {
return callToActionButtonBuilder_ != null || callToActionButton_ != null;
}
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
* @return The callToActionButton.
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton getCallToActionButton() {
if (callToActionButtonBuilder_ == null) {
return callToActionButton_ == null ? com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.getDefaultInstance() : callToActionButton_;
} else {
return callToActionButtonBuilder_.getMessage();
}
}
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
*/
public Builder setCallToActionButton(com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton value) {
if (callToActionButtonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
callToActionButton_ = value;
onChanged();
} else {
callToActionButtonBuilder_.setMessage(value);
}
return this;
}
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
*/
public Builder setCallToActionButton(
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.Builder builderForValue) {
if (callToActionButtonBuilder_ == null) {
callToActionButton_ = builderForValue.build();
onChanged();
} else {
callToActionButtonBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
*/
public Builder mergeCallToActionButton(com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton value) {
if (callToActionButtonBuilder_ == null) {
if (callToActionButton_ != null) {
callToActionButton_ =
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.newBuilder(callToActionButton_).mergeFrom(value).buildPartial();
} else {
callToActionButton_ = value;
}
onChanged();
} else {
callToActionButtonBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
*/
public Builder clearCallToActionButton() {
if (callToActionButtonBuilder_ == null) {
callToActionButton_ = null;
onChanged();
} else {
callToActionButton_ = null;
callToActionButtonBuilder_ = null;
}
return this;
}
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.Builder getCallToActionButtonBuilder() {
onChanged();
return getCallToActionButtonFieldBuilder().getBuilder();
}
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
*/
public com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButtonOrBuilder getCallToActionButtonOrBuilder() {
if (callToActionButtonBuilder_ != null) {
return callToActionButtonBuilder_.getMessageOrBuilder();
} else {
return callToActionButton_ == null ?
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.getDefaultInstance() : callToActionButton_;
}
}
/**
*
* Call to action button rendered on error page of coupon already redeemed to provide better customer experience.
*
*
* .single_use_coupons.CallToActionButton callToActionButton = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton, com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButtonOrBuilder>
getCallToActionButtonFieldBuilder() {
if (callToActionButtonBuilder_ == null) {
callToActionButtonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton, com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.Builder, com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButtonOrBuilder>(
getCallToActionButton(),
getParentForChildren(),
isClean());
callToActionButton_ = null;
}
return callToActionButtonBuilder_;
}
private java.lang.Object cssOverrides_ = "";
/**
*
* Optional CSS overrides to ensure the page aligns with your brand guidelines.
*
*
* string cssOverrides = 12;
* @return The cssOverrides.
*/
public java.lang.String getCssOverrides() {
java.lang.Object ref = cssOverrides_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cssOverrides_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional CSS overrides to ensure the page aligns with your brand guidelines.
*
*
* string cssOverrides = 12;
* @return The bytes for cssOverrides.
*/
public com.google.protobuf.ByteString
getCssOverridesBytes() {
java.lang.Object ref = cssOverrides_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cssOverrides_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional CSS overrides to ensure the page aligns with your brand guidelines.
*
*
* string cssOverrides = 12;
* @param value The cssOverrides to set.
* @return This builder for chaining.
*/
public Builder setCssOverrides(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cssOverrides_ = value;
onChanged();
return this;
}
/**
*
* Optional CSS overrides to ensure the page aligns with your brand guidelines.
*
*
* string cssOverrides = 12;
* @return This builder for chaining.
*/
public Builder clearCssOverrides() {
cssOverrides_ = getDefaultInstance().getCssOverrides();
onChanged();
return this;
}
/**
*
* Optional CSS overrides to ensure the page aligns with your brand guidelines.
*
*
* string cssOverrides = 12;
* @param value The bytes for cssOverrides to set.
* @return This builder for chaining.
*/
public Builder setCssOverridesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cssOverrides_ = value;
onChanged();
return this;
}
@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:single_use_coupons.StandardPassKitHostedPage)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.StandardPassKitHostedPage)
private static final com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StandardPassKitHostedPage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StandardPassKitHostedPage(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.StandardPassKitHostedPage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CallToActionButtonOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.CallToActionButton)
com.google.protobuf.MessageOrBuilder {
/**
*
* Set true to hide button.
*
*
* bool hideCallToActionButton = 1;
* @return The hideCallToActionButton.
*/
boolean getHideCallToActionButton();
/**
*
* Call-to-action text shown on the button.
*
*
* string buttonText = 2;
* @return The buttonText.
*/
java.lang.String getButtonText();
/**
*
* Call-to-action text shown on the button.
*
*
* string buttonText = 2;
* @return The bytes for buttonText.
*/
com.google.protobuf.ByteString
getButtonTextBytes();
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
* @return Whether the localizedButtonText field is set.
*/
boolean hasLocalizedButtonText();
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
* @return The localizedButtonText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedButtonText();
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedButtonTextOrBuilder();
/**
*
* Link that the button will open.
*
*
* string link = 4;
* @return The link.
*/
java.lang.String getLink();
/**
*
* Link that the button will open.
*
*
* string link = 4;
* @return The bytes for link.
*/
com.google.protobuf.ByteString
getLinkBytes();
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
* @return Whether the localizedLink field is set.
*/
boolean hasLocalizedLink();
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
* @return The localizedLink.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedLink();
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLinkOrBuilder();
}
/**
* Protobuf type {@code single_use_coupons.CallToActionButton}
*/
public static final class CallToActionButton extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.CallToActionButton)
CallToActionButtonOrBuilder {
private static final long serialVersionUID = 0L;
// Use CallToActionButton.newBuilder() to construct.
private CallToActionButton(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CallToActionButton() {
buttonText_ = "";
link_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CallToActionButton();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CallToActionButton(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
hideCallToActionButton_ = input.readBool();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
buttonText_ = s;
break;
}
case 26: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedButtonText_ != null) {
subBuilder = localizedButtonText_.toBuilder();
}
localizedButtonText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedButtonText_);
localizedButtonText_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
link_ = s;
break;
}
case 42: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedLink_ != null) {
subBuilder = localizedLink_.toBuilder();
}
localizedLink_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedLink_);
localizedLink_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CallToActionButton_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CallToActionButton_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.class, com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.Builder.class);
}
public static final int HIDECALLTOACTIONBUTTON_FIELD_NUMBER = 1;
private boolean hideCallToActionButton_;
/**
*
* Set true to hide button.
*
*
* bool hideCallToActionButton = 1;
* @return The hideCallToActionButton.
*/
@java.lang.Override
public boolean getHideCallToActionButton() {
return hideCallToActionButton_;
}
public static final int BUTTONTEXT_FIELD_NUMBER = 2;
private volatile java.lang.Object buttonText_;
/**
*
* Call-to-action text shown on the button.
*
*
* string buttonText = 2;
* @return The buttonText.
*/
@java.lang.Override
public java.lang.String getButtonText() {
java.lang.Object ref = buttonText_;
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();
buttonText_ = s;
return s;
}
}
/**
*
* Call-to-action text shown on the button.
*
*
* string buttonText = 2;
* @return The bytes for buttonText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getButtonTextBytes() {
java.lang.Object ref = buttonText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
buttonText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDBUTTONTEXT_FIELD_NUMBER = 3;
private com.passkit.grpc.Localization.LocalizedString localizedButtonText_;
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
* @return Whether the localizedButtonText field is set.
*/
@java.lang.Override
public boolean hasLocalizedButtonText() {
return localizedButtonText_ != null;
}
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
* @return The localizedButtonText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedButtonText() {
return localizedButtonText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedButtonText_;
}
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedButtonTextOrBuilder() {
return getLocalizedButtonText();
}
public static final int LINK_FIELD_NUMBER = 4;
private volatile java.lang.Object link_;
/**
*
* Link that the button will open.
*
*
* string link = 4;
* @return The link.
*/
@java.lang.Override
public java.lang.String getLink() {
java.lang.Object ref = link_;
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();
link_ = s;
return s;
}
}
/**
*
* Link that the button will open.
*
*
* string link = 4;
* @return The bytes for link.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLinkBytes() {
java.lang.Object ref = link_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
link_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDLINK_FIELD_NUMBER = 5;
private com.passkit.grpc.Localization.LocalizedString localizedLink_;
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
* @return Whether the localizedLink field is set.
*/
@java.lang.Override
public boolean hasLocalizedLink() {
return localizedLink_ != null;
}
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
* @return The localizedLink.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedLink() {
return localizedLink_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLink_;
}
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLinkOrBuilder() {
return getLocalizedLink();
}
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 (hideCallToActionButton_ != false) {
output.writeBool(1, hideCallToActionButton_);
}
if (!getButtonTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, buttonText_);
}
if (localizedButtonText_ != null) {
output.writeMessage(3, getLocalizedButtonText());
}
if (!getLinkBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, link_);
}
if (localizedLink_ != null) {
output.writeMessage(5, getLocalizedLink());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (hideCallToActionButton_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, hideCallToActionButton_);
}
if (!getButtonTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, buttonText_);
}
if (localizedButtonText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLocalizedButtonText());
}
if (!getLinkBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, link_);
}
if (localizedLink_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getLocalizedLink());
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton other = (com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton) obj;
if (getHideCallToActionButton()
!= other.getHideCallToActionButton()) return false;
if (!getButtonText()
.equals(other.getButtonText())) return false;
if (hasLocalizedButtonText() != other.hasLocalizedButtonText()) return false;
if (hasLocalizedButtonText()) {
if (!getLocalizedButtonText()
.equals(other.getLocalizedButtonText())) return false;
}
if (!getLink()
.equals(other.getLink())) return false;
if (hasLocalizedLink() != other.hasLocalizedLink()) return false;
if (hasLocalizedLink()) {
if (!getLocalizedLink()
.equals(other.getLocalizedLink())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + HIDECALLTOACTIONBUTTON_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHideCallToActionButton());
hash = (37 * hash) + BUTTONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getButtonText().hashCode();
if (hasLocalizedButtonText()) {
hash = (37 * hash) + LOCALIZEDBUTTONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedButtonText().hashCode();
}
hash = (37 * hash) + LINK_FIELD_NUMBER;
hash = (53 * hash) + getLink().hashCode();
if (hasLocalizedLink()) {
hash = (37 * hash) + LOCALIZEDLINK_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedLink().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton 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.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton 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.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton 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.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton 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;
}
/**
* Protobuf type {@code single_use_coupons.CallToActionButton}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.CallToActionButton)
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButtonOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CallToActionButton_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CallToActionButton_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.class, com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
hideCallToActionButton_ = false;
buttonText_ = "";
if (localizedButtonTextBuilder_ == null) {
localizedButtonText_ = null;
} else {
localizedButtonText_ = null;
localizedButtonTextBuilder_ = null;
}
link_ = "";
if (localizedLinkBuilder_ == null) {
localizedLink_ = null;
} else {
localizedLink_ = null;
localizedLinkBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CallToActionButton_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton build() {
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton result = new com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton(this);
result.hideCallToActionButton_ = hideCallToActionButton_;
result.buttonText_ = buttonText_;
if (localizedButtonTextBuilder_ == null) {
result.localizedButtonText_ = localizedButtonText_;
} else {
result.localizedButtonText_ = localizedButtonTextBuilder_.build();
}
result.link_ = link_;
if (localizedLinkBuilder_ == null) {
result.localizedLink_ = localizedLink_;
} else {
result.localizedLink_ = localizedLinkBuilder_.build();
}
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton.getDefaultInstance()) return this;
if (other.getHideCallToActionButton() != false) {
setHideCallToActionButton(other.getHideCallToActionButton());
}
if (!other.getButtonText().isEmpty()) {
buttonText_ = other.buttonText_;
onChanged();
}
if (other.hasLocalizedButtonText()) {
mergeLocalizedButtonText(other.getLocalizedButtonText());
}
if (!other.getLink().isEmpty()) {
link_ = other.link_;
onChanged();
}
if (other.hasLocalizedLink()) {
mergeLocalizedLink(other.getLocalizedLink());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean hideCallToActionButton_ ;
/**
*
* Set true to hide button.
*
*
* bool hideCallToActionButton = 1;
* @return The hideCallToActionButton.
*/
@java.lang.Override
public boolean getHideCallToActionButton() {
return hideCallToActionButton_;
}
/**
*
* Set true to hide button.
*
*
* bool hideCallToActionButton = 1;
* @param value The hideCallToActionButton to set.
* @return This builder for chaining.
*/
public Builder setHideCallToActionButton(boolean value) {
hideCallToActionButton_ = value;
onChanged();
return this;
}
/**
*
* Set true to hide button.
*
*
* bool hideCallToActionButton = 1;
* @return This builder for chaining.
*/
public Builder clearHideCallToActionButton() {
hideCallToActionButton_ = false;
onChanged();
return this;
}
private java.lang.Object buttonText_ = "";
/**
*
* Call-to-action text shown on the button.
*
*
* string buttonText = 2;
* @return The buttonText.
*/
public java.lang.String getButtonText() {
java.lang.Object ref = buttonText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
buttonText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Call-to-action text shown on the button.
*
*
* string buttonText = 2;
* @return The bytes for buttonText.
*/
public com.google.protobuf.ByteString
getButtonTextBytes() {
java.lang.Object ref = buttonText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
buttonText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Call-to-action text shown on the button.
*
*
* string buttonText = 2;
* @param value The buttonText to set.
* @return This builder for chaining.
*/
public Builder setButtonText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
buttonText_ = value;
onChanged();
return this;
}
/**
*
* Call-to-action text shown on the button.
*
*
* string buttonText = 2;
* @return This builder for chaining.
*/
public Builder clearButtonText() {
buttonText_ = getDefaultInstance().getButtonText();
onChanged();
return this;
}
/**
*
* Call-to-action text shown on the button.
*
*
* string buttonText = 2;
* @param value The bytes for buttonText to set.
* @return This builder for chaining.
*/
public Builder setButtonTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
buttonText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedButtonText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedButtonTextBuilder_;
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
* @return Whether the localizedButtonText field is set.
*/
public boolean hasLocalizedButtonText() {
return localizedButtonTextBuilder_ != null || localizedButtonText_ != null;
}
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
* @return The localizedButtonText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedButtonText() {
if (localizedButtonTextBuilder_ == null) {
return localizedButtonText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedButtonText_;
} else {
return localizedButtonTextBuilder_.getMessage();
}
}
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
*/
public Builder setLocalizedButtonText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedButtonTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedButtonText_ = value;
onChanged();
} else {
localizedButtonTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
*/
public Builder setLocalizedButtonText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedButtonTextBuilder_ == null) {
localizedButtonText_ = builderForValue.build();
onChanged();
} else {
localizedButtonTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
*/
public Builder mergeLocalizedButtonText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedButtonTextBuilder_ == null) {
if (localizedButtonText_ != null) {
localizedButtonText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedButtonText_).mergeFrom(value).buildPartial();
} else {
localizedButtonText_ = value;
}
onChanged();
} else {
localizedButtonTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
*/
public Builder clearLocalizedButtonText() {
if (localizedButtonTextBuilder_ == null) {
localizedButtonText_ = null;
onChanged();
} else {
localizedButtonText_ = null;
localizedButtonTextBuilder_ = null;
}
return this;
}
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedButtonTextBuilder() {
onChanged();
return getLocalizedButtonTextFieldBuilder().getBuilder();
}
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedButtonTextOrBuilder() {
if (localizedButtonTextBuilder_ != null) {
return localizedButtonTextBuilder_.getMessageOrBuilder();
} else {
return localizedButtonText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedButtonText_;
}
}
/**
*
* Localized button text.
*
*
* .io.LocalizedString localizedButtonText = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedButtonTextFieldBuilder() {
if (localizedButtonTextBuilder_ == null) {
localizedButtonTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedButtonText(),
getParentForChildren(),
isClean());
localizedButtonText_ = null;
}
return localizedButtonTextBuilder_;
}
private java.lang.Object link_ = "";
/**
*
* Link that the button will open.
*
*
* string link = 4;
* @return The link.
*/
public java.lang.String getLink() {
java.lang.Object ref = link_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
link_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Link that the button will open.
*
*
* string link = 4;
* @return The bytes for link.
*/
public com.google.protobuf.ByteString
getLinkBytes() {
java.lang.Object ref = link_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
link_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Link that the button will open.
*
*
* string link = 4;
* @param value The link to set.
* @return This builder for chaining.
*/
public Builder setLink(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
link_ = value;
onChanged();
return this;
}
/**
*
* Link that the button will open.
*
*
* string link = 4;
* @return This builder for chaining.
*/
public Builder clearLink() {
link_ = getDefaultInstance().getLink();
onChanged();
return this;
}
/**
*
* Link that the button will open.
*
*
* string link = 4;
* @param value The bytes for link to set.
* @return This builder for chaining.
*/
public Builder setLinkBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
link_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedLink_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedLinkBuilder_;
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
* @return Whether the localizedLink field is set.
*/
public boolean hasLocalizedLink() {
return localizedLinkBuilder_ != null || localizedLink_ != null;
}
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
* @return The localizedLink.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedLink() {
if (localizedLinkBuilder_ == null) {
return localizedLink_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLink_;
} else {
return localizedLinkBuilder_.getMessage();
}
}
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
*/
public Builder setLocalizedLink(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLinkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedLink_ = value;
onChanged();
} else {
localizedLinkBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
*/
public Builder setLocalizedLink(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedLinkBuilder_ == null) {
localizedLink_ = builderForValue.build();
onChanged();
} else {
localizedLinkBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
*/
public Builder mergeLocalizedLink(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedLinkBuilder_ == null) {
if (localizedLink_ != null) {
localizedLink_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedLink_).mergeFrom(value).buildPartial();
} else {
localizedLink_ = value;
}
onChanged();
} else {
localizedLinkBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
*/
public Builder clearLocalizedLink() {
if (localizedLinkBuilder_ == null) {
localizedLink_ = null;
onChanged();
} else {
localizedLink_ = null;
localizedLinkBuilder_ = null;
}
return this;
}
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedLinkBuilder() {
onChanged();
return getLocalizedLinkFieldBuilder().getBuilder();
}
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedLinkOrBuilder() {
if (localizedLinkBuilder_ != null) {
return localizedLinkBuilder_.getMessageOrBuilder();
} else {
return localizedLink_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedLink_;
}
}
/**
*
* Localized link that the button will open.
*
*
* .io.LocalizedString localizedLink = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedLinkFieldBuilder() {
if (localizedLinkBuilder_ == null) {
localizedLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedLink(),
getParentForChildren(),
isClean());
localizedLink_ = null;
}
return localizedLinkBuilder_;
}
@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:single_use_coupons.CallToActionButton)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.CallToActionButton)
private static final com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CallToActionButton parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CallToActionButton(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.CallToActionButton getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseTextsOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.ResponseTexts)
com.google.protobuf.MessageOrBuilder {
/**
*
* To be shown before redemption page is rendered. The dialogue box will have "Ok" and "Cancel" bottons.
* If visitor clicks "Ok", coupon will be redeemed and the redemption page will render fixed code.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string redeemConfirmationDialogBoxText = 1;
* @return The redeemConfirmationDialogBoxText.
*/
java.lang.String getRedeemConfirmationDialogBoxText();
/**
*
* To be shown before redemption page is rendered. The dialogue box will have "Ok" and "Cancel" bottons.
* If visitor clicks "Ok", coupon will be redeemed and the redemption page will render fixed code.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string redeemConfirmationDialogBoxText = 1;
* @return The bytes for redeemConfirmationDialogBoxText.
*/
com.google.protobuf.ByteString
getRedeemConfirmationDialogBoxTextBytes();
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
* @return Whether the localizedRedeemConfirmationDialogBoxText field is set.
*/
boolean hasLocalizedRedeemConfirmationDialogBoxText();
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
* @return The localizedRedeemConfirmationDialogBoxText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedRedeemConfirmationDialogBoxText();
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedRedeemConfirmationDialogBoxTextOrBuilder();
/**
*
* To be shown when visitor clicks "Cancel" and reject to redeem now.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string cancelRedeemText = 3;
* @return The cancelRedeemText.
*/
java.lang.String getCancelRedeemText();
/**
*
* To be shown when visitor clicks "Cancel" and reject to redeem now.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string cancelRedeemText = 3;
* @return The bytes for cancelRedeemText.
*/
com.google.protobuf.ByteString
getCancelRedeemTextBytes();
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
* @return Whether the localizedCancelRedeemText field is set.
*/
boolean hasLocalizedCancelRedeemText();
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
* @return The localizedCancelRedeemText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedCancelRedeemText();
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCancelRedeemTextOrBuilder();
/**
*
* To be shown when coupon has been redeemed.
*
*
* string afterRedeemText = 5;
* @return The afterRedeemText.
*/
java.lang.String getAfterRedeemText();
/**
*
* To be shown when coupon has been redeemed.
*
*
* string afterRedeemText = 5;
* @return The bytes for afterRedeemText.
*/
com.google.protobuf.ByteString
getAfterRedeemTextBytes();
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
* @return Whether the localizedAfterRedeemText field is set.
*/
boolean hasLocalizedAfterRedeemText();
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
* @return The localizedAfterRedeemText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedAfterRedeemText();
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAfterRedeemTextOrBuilder();
/**
*
* To be shown when the coupon was already redeemed.
*
*
* string couponAlreadyRedeemedText = 7;
* @return The couponAlreadyRedeemedText.
*/
java.lang.String getCouponAlreadyRedeemedText();
/**
*
* To be shown when the coupon was already redeemed.
*
*
* string couponAlreadyRedeemedText = 7;
* @return The bytes for couponAlreadyRedeemedText.
*/
com.google.protobuf.ByteString
getCouponAlreadyRedeemedTextBytes();
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
* @return Whether the localizedCouponAlreadyRedeemedText field is set.
*/
boolean hasLocalizedCouponAlreadyRedeemedText();
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
* @return The localizedCouponAlreadyRedeemedText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedCouponAlreadyRedeemedText();
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCouponAlreadyRedeemedTextOrBuilder();
/**
*
* To be shown when the offer period has ended.
*
*
* string offerExpiredText = 9;
* @return The offerExpiredText.
*/
java.lang.String getOfferExpiredText();
/**
*
* To be shown when the offer period has ended.
*
*
* string offerExpiredText = 9;
* @return The bytes for offerExpiredText.
*/
com.google.protobuf.ByteString
getOfferExpiredTextBytes();
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
* @return Whether the localizedOfferExpiredText field is set.
*/
boolean hasLocalizedOfferExpiredText();
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
* @return The localizedOfferExpiredText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedOfferExpiredText();
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferExpiredTextOrBuilder();
/**
*
* To be shown when the coupon expiry date / redemption end date has passed.
*
*
* string couponExpiredText = 11;
* @return The couponExpiredText.
*/
java.lang.String getCouponExpiredText();
/**
*
* To be shown when the coupon expiry date / redemption end date has passed.
*
*
* string couponExpiredText = 11;
* @return The bytes for couponExpiredText.
*/
com.google.protobuf.ByteString
getCouponExpiredTextBytes();
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
* @return Whether the localizedCouponExpiredText field is set.
*/
boolean hasLocalizedCouponExpiredText();
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
* @return The localizedCouponExpiredText.
*/
com.passkit.grpc.Localization.LocalizedString getLocalizedCouponExpiredText();
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
*/
com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCouponExpiredTextOrBuilder();
}
/**
* Protobuf type {@code single_use_coupons.ResponseTexts}
*/
public static final class ResponseTexts extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.ResponseTexts)
ResponseTextsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseTexts.newBuilder() to construct.
private ResponseTexts(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseTexts() {
redeemConfirmationDialogBoxText_ = "";
cancelRedeemText_ = "";
afterRedeemText_ = "";
couponAlreadyRedeemedText_ = "";
offerExpiredText_ = "";
couponExpiredText_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseTexts();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseTexts(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
redeemConfirmationDialogBoxText_ = s;
break;
}
case 18: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedRedeemConfirmationDialogBoxText_ != null) {
subBuilder = localizedRedeemConfirmationDialogBoxText_.toBuilder();
}
localizedRedeemConfirmationDialogBoxText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedRedeemConfirmationDialogBoxText_);
localizedRedeemConfirmationDialogBoxText_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
cancelRedeemText_ = s;
break;
}
case 34: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedCancelRedeemText_ != null) {
subBuilder = localizedCancelRedeemText_.toBuilder();
}
localizedCancelRedeemText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedCancelRedeemText_);
localizedCancelRedeemText_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
afterRedeemText_ = s;
break;
}
case 50: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedAfterRedeemText_ != null) {
subBuilder = localizedAfterRedeemText_.toBuilder();
}
localizedAfterRedeemText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedAfterRedeemText_);
localizedAfterRedeemText_ = subBuilder.buildPartial();
}
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
couponAlreadyRedeemedText_ = s;
break;
}
case 66: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedCouponAlreadyRedeemedText_ != null) {
subBuilder = localizedCouponAlreadyRedeemedText_.toBuilder();
}
localizedCouponAlreadyRedeemedText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedCouponAlreadyRedeemedText_);
localizedCouponAlreadyRedeemedText_ = subBuilder.buildPartial();
}
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
offerExpiredText_ = s;
break;
}
case 82: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedOfferExpiredText_ != null) {
subBuilder = localizedOfferExpiredText_.toBuilder();
}
localizedOfferExpiredText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedOfferExpiredText_);
localizedOfferExpiredText_ = subBuilder.buildPartial();
}
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
couponExpiredText_ = s;
break;
}
case 98: {
com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null;
if (localizedCouponExpiredText_ != null) {
subBuilder = localizedCouponExpiredText_.toBuilder();
}
localizedCouponExpiredText_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localizedCouponExpiredText_);
localizedCouponExpiredText_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_ResponseTexts_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_ResponseTexts_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.class, com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.Builder.class);
}
public static final int REDEEMCONFIRMATIONDIALOGBOXTEXT_FIELD_NUMBER = 1;
private volatile java.lang.Object redeemConfirmationDialogBoxText_;
/**
*
* To be shown before redemption page is rendered. The dialogue box will have "Ok" and "Cancel" bottons.
* If visitor clicks "Ok", coupon will be redeemed and the redemption page will render fixed code.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string redeemConfirmationDialogBoxText = 1;
* @return The redeemConfirmationDialogBoxText.
*/
@java.lang.Override
public java.lang.String getRedeemConfirmationDialogBoxText() {
java.lang.Object ref = redeemConfirmationDialogBoxText_;
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();
redeemConfirmationDialogBoxText_ = s;
return s;
}
}
/**
*
* To be shown before redemption page is rendered. The dialogue box will have "Ok" and "Cancel" bottons.
* If visitor clicks "Ok", coupon will be redeemed and the redemption page will render fixed code.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string redeemConfirmationDialogBoxText = 1;
* @return The bytes for redeemConfirmationDialogBoxText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRedeemConfirmationDialogBoxTextBytes() {
java.lang.Object ref = redeemConfirmationDialogBoxText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
redeemConfirmationDialogBoxText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDREDEEMCONFIRMATIONDIALOGBOXTEXT_FIELD_NUMBER = 2;
private com.passkit.grpc.Localization.LocalizedString localizedRedeemConfirmationDialogBoxText_;
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
* @return Whether the localizedRedeemConfirmationDialogBoxText field is set.
*/
@java.lang.Override
public boolean hasLocalizedRedeemConfirmationDialogBoxText() {
return localizedRedeemConfirmationDialogBoxText_ != null;
}
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
* @return The localizedRedeemConfirmationDialogBoxText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedRedeemConfirmationDialogBoxText() {
return localizedRedeemConfirmationDialogBoxText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedRedeemConfirmationDialogBoxText_;
}
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedRedeemConfirmationDialogBoxTextOrBuilder() {
return getLocalizedRedeemConfirmationDialogBoxText();
}
public static final int CANCELREDEEMTEXT_FIELD_NUMBER = 3;
private volatile java.lang.Object cancelRedeemText_;
/**
*
* To be shown when visitor clicks "Cancel" and reject to redeem now.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string cancelRedeemText = 3;
* @return The cancelRedeemText.
*/
@java.lang.Override
public java.lang.String getCancelRedeemText() {
java.lang.Object ref = cancelRedeemText_;
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();
cancelRedeemText_ = s;
return s;
}
}
/**
*
* To be shown when visitor clicks "Cancel" and reject to redeem now.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string cancelRedeemText = 3;
* @return The bytes for cancelRedeemText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCancelRedeemTextBytes() {
java.lang.Object ref = cancelRedeemText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cancelRedeemText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDCANCELREDEEMTEXT_FIELD_NUMBER = 4;
private com.passkit.grpc.Localization.LocalizedString localizedCancelRedeemText_;
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
* @return Whether the localizedCancelRedeemText field is set.
*/
@java.lang.Override
public boolean hasLocalizedCancelRedeemText() {
return localizedCancelRedeemText_ != null;
}
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
* @return The localizedCancelRedeemText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedCancelRedeemText() {
return localizedCancelRedeemText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCancelRedeemText_;
}
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCancelRedeemTextOrBuilder() {
return getLocalizedCancelRedeemText();
}
public static final int AFTERREDEEMTEXT_FIELD_NUMBER = 5;
private volatile java.lang.Object afterRedeemText_;
/**
*
* To be shown when coupon has been redeemed.
*
*
* string afterRedeemText = 5;
* @return The afterRedeemText.
*/
@java.lang.Override
public java.lang.String getAfterRedeemText() {
java.lang.Object ref = afterRedeemText_;
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();
afterRedeemText_ = s;
return s;
}
}
/**
*
* To be shown when coupon has been redeemed.
*
*
* string afterRedeemText = 5;
* @return The bytes for afterRedeemText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAfterRedeemTextBytes() {
java.lang.Object ref = afterRedeemText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
afterRedeemText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDAFTERREDEEMTEXT_FIELD_NUMBER = 6;
private com.passkit.grpc.Localization.LocalizedString localizedAfterRedeemText_;
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
* @return Whether the localizedAfterRedeemText field is set.
*/
@java.lang.Override
public boolean hasLocalizedAfterRedeemText() {
return localizedAfterRedeemText_ != null;
}
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
* @return The localizedAfterRedeemText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedAfterRedeemText() {
return localizedAfterRedeemText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAfterRedeemText_;
}
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAfterRedeemTextOrBuilder() {
return getLocalizedAfterRedeemText();
}
public static final int COUPONALREADYREDEEMEDTEXT_FIELD_NUMBER = 7;
private volatile java.lang.Object couponAlreadyRedeemedText_;
/**
*
* To be shown when the coupon was already redeemed.
*
*
* string couponAlreadyRedeemedText = 7;
* @return The couponAlreadyRedeemedText.
*/
@java.lang.Override
public java.lang.String getCouponAlreadyRedeemedText() {
java.lang.Object ref = couponAlreadyRedeemedText_;
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();
couponAlreadyRedeemedText_ = s;
return s;
}
}
/**
*
* To be shown when the coupon was already redeemed.
*
*
* string couponAlreadyRedeemedText = 7;
* @return The bytes for couponAlreadyRedeemedText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCouponAlreadyRedeemedTextBytes() {
java.lang.Object ref = couponAlreadyRedeemedText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
couponAlreadyRedeemedText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDCOUPONALREADYREDEEMEDTEXT_FIELD_NUMBER = 8;
private com.passkit.grpc.Localization.LocalizedString localizedCouponAlreadyRedeemedText_;
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
* @return Whether the localizedCouponAlreadyRedeemedText field is set.
*/
@java.lang.Override
public boolean hasLocalizedCouponAlreadyRedeemedText() {
return localizedCouponAlreadyRedeemedText_ != null;
}
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
* @return The localizedCouponAlreadyRedeemedText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedCouponAlreadyRedeemedText() {
return localizedCouponAlreadyRedeemedText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCouponAlreadyRedeemedText_;
}
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCouponAlreadyRedeemedTextOrBuilder() {
return getLocalizedCouponAlreadyRedeemedText();
}
public static final int OFFEREXPIREDTEXT_FIELD_NUMBER = 9;
private volatile java.lang.Object offerExpiredText_;
/**
*
* To be shown when the offer period has ended.
*
*
* string offerExpiredText = 9;
* @return The offerExpiredText.
*/
@java.lang.Override
public java.lang.String getOfferExpiredText() {
java.lang.Object ref = offerExpiredText_;
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();
offerExpiredText_ = s;
return s;
}
}
/**
*
* To be shown when the offer period has ended.
*
*
* string offerExpiredText = 9;
* @return The bytes for offerExpiredText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOfferExpiredTextBytes() {
java.lang.Object ref = offerExpiredText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offerExpiredText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDOFFEREXPIREDTEXT_FIELD_NUMBER = 10;
private com.passkit.grpc.Localization.LocalizedString localizedOfferExpiredText_;
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
* @return Whether the localizedOfferExpiredText field is set.
*/
@java.lang.Override
public boolean hasLocalizedOfferExpiredText() {
return localizedOfferExpiredText_ != null;
}
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
* @return The localizedOfferExpiredText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedOfferExpiredText() {
return localizedOfferExpiredText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferExpiredText_;
}
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferExpiredTextOrBuilder() {
return getLocalizedOfferExpiredText();
}
public static final int COUPONEXPIREDTEXT_FIELD_NUMBER = 11;
private volatile java.lang.Object couponExpiredText_;
/**
*
* To be shown when the coupon expiry date / redemption end date has passed.
*
*
* string couponExpiredText = 11;
* @return The couponExpiredText.
*/
@java.lang.Override
public java.lang.String getCouponExpiredText() {
java.lang.Object ref = couponExpiredText_;
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();
couponExpiredText_ = s;
return s;
}
}
/**
*
* To be shown when the coupon expiry date / redemption end date has passed.
*
*
* string couponExpiredText = 11;
* @return The bytes for couponExpiredText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCouponExpiredTextBytes() {
java.lang.Object ref = couponExpiredText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
couponExpiredText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALIZEDCOUPONEXPIREDTEXT_FIELD_NUMBER = 12;
private com.passkit.grpc.Localization.LocalizedString localizedCouponExpiredText_;
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
* @return Whether the localizedCouponExpiredText field is set.
*/
@java.lang.Override
public boolean hasLocalizedCouponExpiredText() {
return localizedCouponExpiredText_ != null;
}
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
* @return The localizedCouponExpiredText.
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedString getLocalizedCouponExpiredText() {
return localizedCouponExpiredText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCouponExpiredText_;
}
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
*/
@java.lang.Override
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCouponExpiredTextOrBuilder() {
return getLocalizedCouponExpiredText();
}
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 (!getRedeemConfirmationDialogBoxTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, redeemConfirmationDialogBoxText_);
}
if (localizedRedeemConfirmationDialogBoxText_ != null) {
output.writeMessage(2, getLocalizedRedeemConfirmationDialogBoxText());
}
if (!getCancelRedeemTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cancelRedeemText_);
}
if (localizedCancelRedeemText_ != null) {
output.writeMessage(4, getLocalizedCancelRedeemText());
}
if (!getAfterRedeemTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, afterRedeemText_);
}
if (localizedAfterRedeemText_ != null) {
output.writeMessage(6, getLocalizedAfterRedeemText());
}
if (!getCouponAlreadyRedeemedTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, couponAlreadyRedeemedText_);
}
if (localizedCouponAlreadyRedeemedText_ != null) {
output.writeMessage(8, getLocalizedCouponAlreadyRedeemedText());
}
if (!getOfferExpiredTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, offerExpiredText_);
}
if (localizedOfferExpiredText_ != null) {
output.writeMessage(10, getLocalizedOfferExpiredText());
}
if (!getCouponExpiredTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, couponExpiredText_);
}
if (localizedCouponExpiredText_ != null) {
output.writeMessage(12, getLocalizedCouponExpiredText());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getRedeemConfirmationDialogBoxTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, redeemConfirmationDialogBoxText_);
}
if (localizedRedeemConfirmationDialogBoxText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLocalizedRedeemConfirmationDialogBoxText());
}
if (!getCancelRedeemTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cancelRedeemText_);
}
if (localizedCancelRedeemText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLocalizedCancelRedeemText());
}
if (!getAfterRedeemTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, afterRedeemText_);
}
if (localizedAfterRedeemText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getLocalizedAfterRedeemText());
}
if (!getCouponAlreadyRedeemedTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, couponAlreadyRedeemedText_);
}
if (localizedCouponAlreadyRedeemedText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getLocalizedCouponAlreadyRedeemedText());
}
if (!getOfferExpiredTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, offerExpiredText_);
}
if (localizedOfferExpiredText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getLocalizedOfferExpiredText());
}
if (!getCouponExpiredTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, couponExpiredText_);
}
if (localizedCouponExpiredText_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getLocalizedCouponExpiredText());
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts other = (com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts) obj;
if (!getRedeemConfirmationDialogBoxText()
.equals(other.getRedeemConfirmationDialogBoxText())) return false;
if (hasLocalizedRedeemConfirmationDialogBoxText() != other.hasLocalizedRedeemConfirmationDialogBoxText()) return false;
if (hasLocalizedRedeemConfirmationDialogBoxText()) {
if (!getLocalizedRedeemConfirmationDialogBoxText()
.equals(other.getLocalizedRedeemConfirmationDialogBoxText())) return false;
}
if (!getCancelRedeemText()
.equals(other.getCancelRedeemText())) return false;
if (hasLocalizedCancelRedeemText() != other.hasLocalizedCancelRedeemText()) return false;
if (hasLocalizedCancelRedeemText()) {
if (!getLocalizedCancelRedeemText()
.equals(other.getLocalizedCancelRedeemText())) return false;
}
if (!getAfterRedeemText()
.equals(other.getAfterRedeemText())) return false;
if (hasLocalizedAfterRedeemText() != other.hasLocalizedAfterRedeemText()) return false;
if (hasLocalizedAfterRedeemText()) {
if (!getLocalizedAfterRedeemText()
.equals(other.getLocalizedAfterRedeemText())) return false;
}
if (!getCouponAlreadyRedeemedText()
.equals(other.getCouponAlreadyRedeemedText())) return false;
if (hasLocalizedCouponAlreadyRedeemedText() != other.hasLocalizedCouponAlreadyRedeemedText()) return false;
if (hasLocalizedCouponAlreadyRedeemedText()) {
if (!getLocalizedCouponAlreadyRedeemedText()
.equals(other.getLocalizedCouponAlreadyRedeemedText())) return false;
}
if (!getOfferExpiredText()
.equals(other.getOfferExpiredText())) return false;
if (hasLocalizedOfferExpiredText() != other.hasLocalizedOfferExpiredText()) return false;
if (hasLocalizedOfferExpiredText()) {
if (!getLocalizedOfferExpiredText()
.equals(other.getLocalizedOfferExpiredText())) return false;
}
if (!getCouponExpiredText()
.equals(other.getCouponExpiredText())) return false;
if (hasLocalizedCouponExpiredText() != other.hasLocalizedCouponExpiredText()) return false;
if (hasLocalizedCouponExpiredText()) {
if (!getLocalizedCouponExpiredText()
.equals(other.getLocalizedCouponExpiredText())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + REDEEMCONFIRMATIONDIALOGBOXTEXT_FIELD_NUMBER;
hash = (53 * hash) + getRedeemConfirmationDialogBoxText().hashCode();
if (hasLocalizedRedeemConfirmationDialogBoxText()) {
hash = (37 * hash) + LOCALIZEDREDEEMCONFIRMATIONDIALOGBOXTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedRedeemConfirmationDialogBoxText().hashCode();
}
hash = (37 * hash) + CANCELREDEEMTEXT_FIELD_NUMBER;
hash = (53 * hash) + getCancelRedeemText().hashCode();
if (hasLocalizedCancelRedeemText()) {
hash = (37 * hash) + LOCALIZEDCANCELREDEEMTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedCancelRedeemText().hashCode();
}
hash = (37 * hash) + AFTERREDEEMTEXT_FIELD_NUMBER;
hash = (53 * hash) + getAfterRedeemText().hashCode();
if (hasLocalizedAfterRedeemText()) {
hash = (37 * hash) + LOCALIZEDAFTERREDEEMTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedAfterRedeemText().hashCode();
}
hash = (37 * hash) + COUPONALREADYREDEEMEDTEXT_FIELD_NUMBER;
hash = (53 * hash) + getCouponAlreadyRedeemedText().hashCode();
if (hasLocalizedCouponAlreadyRedeemedText()) {
hash = (37 * hash) + LOCALIZEDCOUPONALREADYREDEEMEDTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedCouponAlreadyRedeemedText().hashCode();
}
hash = (37 * hash) + OFFEREXPIREDTEXT_FIELD_NUMBER;
hash = (53 * hash) + getOfferExpiredText().hashCode();
if (hasLocalizedOfferExpiredText()) {
hash = (37 * hash) + LOCALIZEDOFFEREXPIREDTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedOfferExpiredText().hashCode();
}
hash = (37 * hash) + COUPONEXPIREDTEXT_FIELD_NUMBER;
hash = (53 * hash) + getCouponExpiredText().hashCode();
if (hasLocalizedCouponExpiredText()) {
hash = (37 * hash) + LOCALIZEDCOUPONEXPIREDTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLocalizedCouponExpiredText().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts 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.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts 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.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts 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.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts 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;
}
/**
* Protobuf type {@code single_use_coupons.ResponseTexts}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.ResponseTexts)
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTextsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_ResponseTexts_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_ResponseTexts_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.class, com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
redeemConfirmationDialogBoxText_ = "";
if (localizedRedeemConfirmationDialogBoxTextBuilder_ == null) {
localizedRedeemConfirmationDialogBoxText_ = null;
} else {
localizedRedeemConfirmationDialogBoxText_ = null;
localizedRedeemConfirmationDialogBoxTextBuilder_ = null;
}
cancelRedeemText_ = "";
if (localizedCancelRedeemTextBuilder_ == null) {
localizedCancelRedeemText_ = null;
} else {
localizedCancelRedeemText_ = null;
localizedCancelRedeemTextBuilder_ = null;
}
afterRedeemText_ = "";
if (localizedAfterRedeemTextBuilder_ == null) {
localizedAfterRedeemText_ = null;
} else {
localizedAfterRedeemText_ = null;
localizedAfterRedeemTextBuilder_ = null;
}
couponAlreadyRedeemedText_ = "";
if (localizedCouponAlreadyRedeemedTextBuilder_ == null) {
localizedCouponAlreadyRedeemedText_ = null;
} else {
localizedCouponAlreadyRedeemedText_ = null;
localizedCouponAlreadyRedeemedTextBuilder_ = null;
}
offerExpiredText_ = "";
if (localizedOfferExpiredTextBuilder_ == null) {
localizedOfferExpiredText_ = null;
} else {
localizedOfferExpiredText_ = null;
localizedOfferExpiredTextBuilder_ = null;
}
couponExpiredText_ = "";
if (localizedCouponExpiredTextBuilder_ == null) {
localizedCouponExpiredText_ = null;
} else {
localizedCouponExpiredText_ = null;
localizedCouponExpiredTextBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_ResponseTexts_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts build() {
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts result = new com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts(this);
result.redeemConfirmationDialogBoxText_ = redeemConfirmationDialogBoxText_;
if (localizedRedeemConfirmationDialogBoxTextBuilder_ == null) {
result.localizedRedeemConfirmationDialogBoxText_ = localizedRedeemConfirmationDialogBoxText_;
} else {
result.localizedRedeemConfirmationDialogBoxText_ = localizedRedeemConfirmationDialogBoxTextBuilder_.build();
}
result.cancelRedeemText_ = cancelRedeemText_;
if (localizedCancelRedeemTextBuilder_ == null) {
result.localizedCancelRedeemText_ = localizedCancelRedeemText_;
} else {
result.localizedCancelRedeemText_ = localizedCancelRedeemTextBuilder_.build();
}
result.afterRedeemText_ = afterRedeemText_;
if (localizedAfterRedeemTextBuilder_ == null) {
result.localizedAfterRedeemText_ = localizedAfterRedeemText_;
} else {
result.localizedAfterRedeemText_ = localizedAfterRedeemTextBuilder_.build();
}
result.couponAlreadyRedeemedText_ = couponAlreadyRedeemedText_;
if (localizedCouponAlreadyRedeemedTextBuilder_ == null) {
result.localizedCouponAlreadyRedeemedText_ = localizedCouponAlreadyRedeemedText_;
} else {
result.localizedCouponAlreadyRedeemedText_ = localizedCouponAlreadyRedeemedTextBuilder_.build();
}
result.offerExpiredText_ = offerExpiredText_;
if (localizedOfferExpiredTextBuilder_ == null) {
result.localizedOfferExpiredText_ = localizedOfferExpiredText_;
} else {
result.localizedOfferExpiredText_ = localizedOfferExpiredTextBuilder_.build();
}
result.couponExpiredText_ = couponExpiredText_;
if (localizedCouponExpiredTextBuilder_ == null) {
result.localizedCouponExpiredText_ = localizedCouponExpiredText_;
} else {
result.localizedCouponExpiredText_ = localizedCouponExpiredTextBuilder_.build();
}
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts.getDefaultInstance()) return this;
if (!other.getRedeemConfirmationDialogBoxText().isEmpty()) {
redeemConfirmationDialogBoxText_ = other.redeemConfirmationDialogBoxText_;
onChanged();
}
if (other.hasLocalizedRedeemConfirmationDialogBoxText()) {
mergeLocalizedRedeemConfirmationDialogBoxText(other.getLocalizedRedeemConfirmationDialogBoxText());
}
if (!other.getCancelRedeemText().isEmpty()) {
cancelRedeemText_ = other.cancelRedeemText_;
onChanged();
}
if (other.hasLocalizedCancelRedeemText()) {
mergeLocalizedCancelRedeemText(other.getLocalizedCancelRedeemText());
}
if (!other.getAfterRedeemText().isEmpty()) {
afterRedeemText_ = other.afterRedeemText_;
onChanged();
}
if (other.hasLocalizedAfterRedeemText()) {
mergeLocalizedAfterRedeemText(other.getLocalizedAfterRedeemText());
}
if (!other.getCouponAlreadyRedeemedText().isEmpty()) {
couponAlreadyRedeemedText_ = other.couponAlreadyRedeemedText_;
onChanged();
}
if (other.hasLocalizedCouponAlreadyRedeemedText()) {
mergeLocalizedCouponAlreadyRedeemedText(other.getLocalizedCouponAlreadyRedeemedText());
}
if (!other.getOfferExpiredText().isEmpty()) {
offerExpiredText_ = other.offerExpiredText_;
onChanged();
}
if (other.hasLocalizedOfferExpiredText()) {
mergeLocalizedOfferExpiredText(other.getLocalizedOfferExpiredText());
}
if (!other.getCouponExpiredText().isEmpty()) {
couponExpiredText_ = other.couponExpiredText_;
onChanged();
}
if (other.hasLocalizedCouponExpiredText()) {
mergeLocalizedCouponExpiredText(other.getLocalizedCouponExpiredText());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object redeemConfirmationDialogBoxText_ = "";
/**
*
* To be shown before redemption page is rendered. The dialogue box will have "Ok" and "Cancel" bottons.
* If visitor clicks "Ok", coupon will be redeemed and the redemption page will render fixed code.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string redeemConfirmationDialogBoxText = 1;
* @return The redeemConfirmationDialogBoxText.
*/
public java.lang.String getRedeemConfirmationDialogBoxText() {
java.lang.Object ref = redeemConfirmationDialogBoxText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
redeemConfirmationDialogBoxText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* To be shown before redemption page is rendered. The dialogue box will have "Ok" and "Cancel" bottons.
* If visitor clicks "Ok", coupon will be redeemed and the redemption page will render fixed code.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string redeemConfirmationDialogBoxText = 1;
* @return The bytes for redeemConfirmationDialogBoxText.
*/
public com.google.protobuf.ByteString
getRedeemConfirmationDialogBoxTextBytes() {
java.lang.Object ref = redeemConfirmationDialogBoxText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
redeemConfirmationDialogBoxText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* To be shown before redemption page is rendered. The dialogue box will have "Ok" and "Cancel" bottons.
* If visitor clicks "Ok", coupon will be redeemed and the redemption page will render fixed code.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string redeemConfirmationDialogBoxText = 1;
* @param value The redeemConfirmationDialogBoxText to set.
* @return This builder for chaining.
*/
public Builder setRedeemConfirmationDialogBoxText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
redeemConfirmationDialogBoxText_ = value;
onChanged();
return this;
}
/**
*
* To be shown before redemption page is rendered. The dialogue box will have "Ok" and "Cancel" bottons.
* If visitor clicks "Ok", coupon will be redeemed and the redemption page will render fixed code.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string redeemConfirmationDialogBoxText = 1;
* @return This builder for chaining.
*/
public Builder clearRedeemConfirmationDialogBoxText() {
redeemConfirmationDialogBoxText_ = getDefaultInstance().getRedeemConfirmationDialogBoxText();
onChanged();
return this;
}
/**
*
* To be shown before redemption page is rendered. The dialogue box will have "Ok" and "Cancel" bottons.
* If visitor clicks "Ok", coupon will be redeemed and the redemption page will render fixed code.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string redeemConfirmationDialogBoxText = 1;
* @param value The bytes for redeemConfirmationDialogBoxText to set.
* @return This builder for chaining.
*/
public Builder setRedeemConfirmationDialogBoxTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
redeemConfirmationDialogBoxText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedRedeemConfirmationDialogBoxText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedRedeemConfirmationDialogBoxTextBuilder_;
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
* @return Whether the localizedRedeemConfirmationDialogBoxText field is set.
*/
public boolean hasLocalizedRedeemConfirmationDialogBoxText() {
return localizedRedeemConfirmationDialogBoxTextBuilder_ != null || localizedRedeemConfirmationDialogBoxText_ != null;
}
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
* @return The localizedRedeemConfirmationDialogBoxText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedRedeemConfirmationDialogBoxText() {
if (localizedRedeemConfirmationDialogBoxTextBuilder_ == null) {
return localizedRedeemConfirmationDialogBoxText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedRedeemConfirmationDialogBoxText_;
} else {
return localizedRedeemConfirmationDialogBoxTextBuilder_.getMessage();
}
}
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
*/
public Builder setLocalizedRedeemConfirmationDialogBoxText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedRedeemConfirmationDialogBoxTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedRedeemConfirmationDialogBoxText_ = value;
onChanged();
} else {
localizedRedeemConfirmationDialogBoxTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
*/
public Builder setLocalizedRedeemConfirmationDialogBoxText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedRedeemConfirmationDialogBoxTextBuilder_ == null) {
localizedRedeemConfirmationDialogBoxText_ = builderForValue.build();
onChanged();
} else {
localizedRedeemConfirmationDialogBoxTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
*/
public Builder mergeLocalizedRedeemConfirmationDialogBoxText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedRedeemConfirmationDialogBoxTextBuilder_ == null) {
if (localizedRedeemConfirmationDialogBoxText_ != null) {
localizedRedeemConfirmationDialogBoxText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedRedeemConfirmationDialogBoxText_).mergeFrom(value).buildPartial();
} else {
localizedRedeemConfirmationDialogBoxText_ = value;
}
onChanged();
} else {
localizedRedeemConfirmationDialogBoxTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
*/
public Builder clearLocalizedRedeemConfirmationDialogBoxText() {
if (localizedRedeemConfirmationDialogBoxTextBuilder_ == null) {
localizedRedeemConfirmationDialogBoxText_ = null;
onChanged();
} else {
localizedRedeemConfirmationDialogBoxText_ = null;
localizedRedeemConfirmationDialogBoxTextBuilder_ = null;
}
return this;
}
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedRedeemConfirmationDialogBoxTextBuilder() {
onChanged();
return getLocalizedRedeemConfirmationDialogBoxTextFieldBuilder().getBuilder();
}
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedRedeemConfirmationDialogBoxTextOrBuilder() {
if (localizedRedeemConfirmationDialogBoxTextBuilder_ != null) {
return localizedRedeemConfirmationDialogBoxTextBuilder_.getMessageOrBuilder();
} else {
return localizedRedeemConfirmationDialogBoxText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedRedeemConfirmationDialogBoxText_;
}
}
/**
*
* Localized redemption confirm dialog box text.
*
*
* .io.LocalizedString localizedRedeemConfirmationDialogBoxText = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedRedeemConfirmationDialogBoxTextFieldBuilder() {
if (localizedRedeemConfirmationDialogBoxTextBuilder_ == null) {
localizedRedeemConfirmationDialogBoxTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedRedeemConfirmationDialogBoxText(),
getParentForChildren(),
isClean());
localizedRedeemConfirmationDialogBoxText_ = null;
}
return localizedRedeemConfirmationDialogBoxTextBuilder_;
}
private java.lang.Object cancelRedeemText_ = "";
/**
*
* To be shown when visitor clicks "Cancel" and reject to redeem now.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string cancelRedeemText = 3;
* @return The cancelRedeemText.
*/
public java.lang.String getCancelRedeemText() {
java.lang.Object ref = cancelRedeemText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cancelRedeemText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* To be shown when visitor clicks "Cancel" and reject to redeem now.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string cancelRedeemText = 3;
* @return The bytes for cancelRedeemText.
*/
public com.google.protobuf.ByteString
getCancelRedeemTextBytes() {
java.lang.Object ref = cancelRedeemText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cancelRedeemText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* To be shown when visitor clicks "Cancel" and reject to redeem now.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string cancelRedeemText = 3;
* @param value The cancelRedeemText to set.
* @return This builder for chaining.
*/
public Builder setCancelRedeemText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cancelRedeemText_ = value;
onChanged();
return this;
}
/**
*
* To be shown when visitor clicks "Cancel" and reject to redeem now.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string cancelRedeemText = 3;
* @return This builder for chaining.
*/
public Builder clearCancelRedeemText() {
cancelRedeemText_ = getDefaultInstance().getCancelRedeemText();
onChanged();
return this;
}
/**
*
* To be shown when visitor clicks "Cancel" and reject to redeem now.
* This only applies to the redemption type REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED.
*
*
* string cancelRedeemText = 3;
* @param value The bytes for cancelRedeemText to set.
* @return This builder for chaining.
*/
public Builder setCancelRedeemTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cancelRedeemText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedCancelRedeemText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedCancelRedeemTextBuilder_;
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
* @return Whether the localizedCancelRedeemText field is set.
*/
public boolean hasLocalizedCancelRedeemText() {
return localizedCancelRedeemTextBuilder_ != null || localizedCancelRedeemText_ != null;
}
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
* @return The localizedCancelRedeemText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedCancelRedeemText() {
if (localizedCancelRedeemTextBuilder_ == null) {
return localizedCancelRedeemText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCancelRedeemText_;
} else {
return localizedCancelRedeemTextBuilder_.getMessage();
}
}
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
*/
public Builder setLocalizedCancelRedeemText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCancelRedeemTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedCancelRedeemText_ = value;
onChanged();
} else {
localizedCancelRedeemTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
*/
public Builder setLocalizedCancelRedeemText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedCancelRedeemTextBuilder_ == null) {
localizedCancelRedeemText_ = builderForValue.build();
onChanged();
} else {
localizedCancelRedeemTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
*/
public Builder mergeLocalizedCancelRedeemText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCancelRedeemTextBuilder_ == null) {
if (localizedCancelRedeemText_ != null) {
localizedCancelRedeemText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedCancelRedeemText_).mergeFrom(value).buildPartial();
} else {
localizedCancelRedeemText_ = value;
}
onChanged();
} else {
localizedCancelRedeemTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
*/
public Builder clearLocalizedCancelRedeemText() {
if (localizedCancelRedeemTextBuilder_ == null) {
localizedCancelRedeemText_ = null;
onChanged();
} else {
localizedCancelRedeemText_ = null;
localizedCancelRedeemTextBuilder_ = null;
}
return this;
}
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedCancelRedeemTextBuilder() {
onChanged();
return getLocalizedCancelRedeemTextFieldBuilder().getBuilder();
}
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCancelRedeemTextOrBuilder() {
if (localizedCancelRedeemTextBuilder_ != null) {
return localizedCancelRedeemTextBuilder_.getMessageOrBuilder();
} else {
return localizedCancelRedeemText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCancelRedeemText_;
}
}
/**
*
* Localized cancel redemption text.
*
*
* .io.LocalizedString localizedCancelRedeemText = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedCancelRedeemTextFieldBuilder() {
if (localizedCancelRedeemTextBuilder_ == null) {
localizedCancelRedeemTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedCancelRedeemText(),
getParentForChildren(),
isClean());
localizedCancelRedeemText_ = null;
}
return localizedCancelRedeemTextBuilder_;
}
private java.lang.Object afterRedeemText_ = "";
/**
*
* To be shown when coupon has been redeemed.
*
*
* string afterRedeemText = 5;
* @return The afterRedeemText.
*/
public java.lang.String getAfterRedeemText() {
java.lang.Object ref = afterRedeemText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
afterRedeemText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* To be shown when coupon has been redeemed.
*
*
* string afterRedeemText = 5;
* @return The bytes for afterRedeemText.
*/
public com.google.protobuf.ByteString
getAfterRedeemTextBytes() {
java.lang.Object ref = afterRedeemText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
afterRedeemText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* To be shown when coupon has been redeemed.
*
*
* string afterRedeemText = 5;
* @param value The afterRedeemText to set.
* @return This builder for chaining.
*/
public Builder setAfterRedeemText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
afterRedeemText_ = value;
onChanged();
return this;
}
/**
*
* To be shown when coupon has been redeemed.
*
*
* string afterRedeemText = 5;
* @return This builder for chaining.
*/
public Builder clearAfterRedeemText() {
afterRedeemText_ = getDefaultInstance().getAfterRedeemText();
onChanged();
return this;
}
/**
*
* To be shown when coupon has been redeemed.
*
*
* string afterRedeemText = 5;
* @param value The bytes for afterRedeemText to set.
* @return This builder for chaining.
*/
public Builder setAfterRedeemTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
afterRedeemText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedAfterRedeemText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedAfterRedeemTextBuilder_;
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
* @return Whether the localizedAfterRedeemText field is set.
*/
public boolean hasLocalizedAfterRedeemText() {
return localizedAfterRedeemTextBuilder_ != null || localizedAfterRedeemText_ != null;
}
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
* @return The localizedAfterRedeemText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedAfterRedeemText() {
if (localizedAfterRedeemTextBuilder_ == null) {
return localizedAfterRedeemText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAfterRedeemText_;
} else {
return localizedAfterRedeemTextBuilder_.getMessage();
}
}
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
*/
public Builder setLocalizedAfterRedeemText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAfterRedeemTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedAfterRedeemText_ = value;
onChanged();
} else {
localizedAfterRedeemTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
*/
public Builder setLocalizedAfterRedeemText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedAfterRedeemTextBuilder_ == null) {
localizedAfterRedeemText_ = builderForValue.build();
onChanged();
} else {
localizedAfterRedeemTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
*/
public Builder mergeLocalizedAfterRedeemText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedAfterRedeemTextBuilder_ == null) {
if (localizedAfterRedeemText_ != null) {
localizedAfterRedeemText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedAfterRedeemText_).mergeFrom(value).buildPartial();
} else {
localizedAfterRedeemText_ = value;
}
onChanged();
} else {
localizedAfterRedeemTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
*/
public Builder clearLocalizedAfterRedeemText() {
if (localizedAfterRedeemTextBuilder_ == null) {
localizedAfterRedeemText_ = null;
onChanged();
} else {
localizedAfterRedeemText_ = null;
localizedAfterRedeemTextBuilder_ = null;
}
return this;
}
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedAfterRedeemTextBuilder() {
onChanged();
return getLocalizedAfterRedeemTextFieldBuilder().getBuilder();
}
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedAfterRedeemTextOrBuilder() {
if (localizedAfterRedeemTextBuilder_ != null) {
return localizedAfterRedeemTextBuilder_.getMessageOrBuilder();
} else {
return localizedAfterRedeemText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedAfterRedeemText_;
}
}
/**
*
* Localized after redemption text.
*
*
* .io.LocalizedString localizedAfterRedeemText = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedAfterRedeemTextFieldBuilder() {
if (localizedAfterRedeemTextBuilder_ == null) {
localizedAfterRedeemTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedAfterRedeemText(),
getParentForChildren(),
isClean());
localizedAfterRedeemText_ = null;
}
return localizedAfterRedeemTextBuilder_;
}
private java.lang.Object couponAlreadyRedeemedText_ = "";
/**
*
* To be shown when the coupon was already redeemed.
*
*
* string couponAlreadyRedeemedText = 7;
* @return The couponAlreadyRedeemedText.
*/
public java.lang.String getCouponAlreadyRedeemedText() {
java.lang.Object ref = couponAlreadyRedeemedText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
couponAlreadyRedeemedText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* To be shown when the coupon was already redeemed.
*
*
* string couponAlreadyRedeemedText = 7;
* @return The bytes for couponAlreadyRedeemedText.
*/
public com.google.protobuf.ByteString
getCouponAlreadyRedeemedTextBytes() {
java.lang.Object ref = couponAlreadyRedeemedText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
couponAlreadyRedeemedText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* To be shown when the coupon was already redeemed.
*
*
* string couponAlreadyRedeemedText = 7;
* @param value The couponAlreadyRedeemedText to set.
* @return This builder for chaining.
*/
public Builder setCouponAlreadyRedeemedText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
couponAlreadyRedeemedText_ = value;
onChanged();
return this;
}
/**
*
* To be shown when the coupon was already redeemed.
*
*
* string couponAlreadyRedeemedText = 7;
* @return This builder for chaining.
*/
public Builder clearCouponAlreadyRedeemedText() {
couponAlreadyRedeemedText_ = getDefaultInstance().getCouponAlreadyRedeemedText();
onChanged();
return this;
}
/**
*
* To be shown when the coupon was already redeemed.
*
*
* string couponAlreadyRedeemedText = 7;
* @param value The bytes for couponAlreadyRedeemedText to set.
* @return This builder for chaining.
*/
public Builder setCouponAlreadyRedeemedTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
couponAlreadyRedeemedText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedCouponAlreadyRedeemedText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedCouponAlreadyRedeemedTextBuilder_;
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
* @return Whether the localizedCouponAlreadyRedeemedText field is set.
*/
public boolean hasLocalizedCouponAlreadyRedeemedText() {
return localizedCouponAlreadyRedeemedTextBuilder_ != null || localizedCouponAlreadyRedeemedText_ != null;
}
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
* @return The localizedCouponAlreadyRedeemedText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedCouponAlreadyRedeemedText() {
if (localizedCouponAlreadyRedeemedTextBuilder_ == null) {
return localizedCouponAlreadyRedeemedText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCouponAlreadyRedeemedText_;
} else {
return localizedCouponAlreadyRedeemedTextBuilder_.getMessage();
}
}
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
*/
public Builder setLocalizedCouponAlreadyRedeemedText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCouponAlreadyRedeemedTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedCouponAlreadyRedeemedText_ = value;
onChanged();
} else {
localizedCouponAlreadyRedeemedTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
*/
public Builder setLocalizedCouponAlreadyRedeemedText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedCouponAlreadyRedeemedTextBuilder_ == null) {
localizedCouponAlreadyRedeemedText_ = builderForValue.build();
onChanged();
} else {
localizedCouponAlreadyRedeemedTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
*/
public Builder mergeLocalizedCouponAlreadyRedeemedText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCouponAlreadyRedeemedTextBuilder_ == null) {
if (localizedCouponAlreadyRedeemedText_ != null) {
localizedCouponAlreadyRedeemedText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedCouponAlreadyRedeemedText_).mergeFrom(value).buildPartial();
} else {
localizedCouponAlreadyRedeemedText_ = value;
}
onChanged();
} else {
localizedCouponAlreadyRedeemedTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
*/
public Builder clearLocalizedCouponAlreadyRedeemedText() {
if (localizedCouponAlreadyRedeemedTextBuilder_ == null) {
localizedCouponAlreadyRedeemedText_ = null;
onChanged();
} else {
localizedCouponAlreadyRedeemedText_ = null;
localizedCouponAlreadyRedeemedTextBuilder_ = null;
}
return this;
}
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedCouponAlreadyRedeemedTextBuilder() {
onChanged();
return getLocalizedCouponAlreadyRedeemedTextFieldBuilder().getBuilder();
}
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCouponAlreadyRedeemedTextOrBuilder() {
if (localizedCouponAlreadyRedeemedTextBuilder_ != null) {
return localizedCouponAlreadyRedeemedTextBuilder_.getMessageOrBuilder();
} else {
return localizedCouponAlreadyRedeemedText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCouponAlreadyRedeemedText_;
}
}
/**
*
* Localized text shown when the coupon was already redeemed.
*
*
* .io.LocalizedString localizedCouponAlreadyRedeemedText = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedCouponAlreadyRedeemedTextFieldBuilder() {
if (localizedCouponAlreadyRedeemedTextBuilder_ == null) {
localizedCouponAlreadyRedeemedTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedCouponAlreadyRedeemedText(),
getParentForChildren(),
isClean());
localizedCouponAlreadyRedeemedText_ = null;
}
return localizedCouponAlreadyRedeemedTextBuilder_;
}
private java.lang.Object offerExpiredText_ = "";
/**
*
* To be shown when the offer period has ended.
*
*
* string offerExpiredText = 9;
* @return The offerExpiredText.
*/
public java.lang.String getOfferExpiredText() {
java.lang.Object ref = offerExpiredText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offerExpiredText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* To be shown when the offer period has ended.
*
*
* string offerExpiredText = 9;
* @return The bytes for offerExpiredText.
*/
public com.google.protobuf.ByteString
getOfferExpiredTextBytes() {
java.lang.Object ref = offerExpiredText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offerExpiredText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* To be shown when the offer period has ended.
*
*
* string offerExpiredText = 9;
* @param value The offerExpiredText to set.
* @return This builder for chaining.
*/
public Builder setOfferExpiredText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
offerExpiredText_ = value;
onChanged();
return this;
}
/**
*
* To be shown when the offer period has ended.
*
*
* string offerExpiredText = 9;
* @return This builder for chaining.
*/
public Builder clearOfferExpiredText() {
offerExpiredText_ = getDefaultInstance().getOfferExpiredText();
onChanged();
return this;
}
/**
*
* To be shown when the offer period has ended.
*
*
* string offerExpiredText = 9;
* @param value The bytes for offerExpiredText to set.
* @return This builder for chaining.
*/
public Builder setOfferExpiredTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
offerExpiredText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedOfferExpiredText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedOfferExpiredTextBuilder_;
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
* @return Whether the localizedOfferExpiredText field is set.
*/
public boolean hasLocalizedOfferExpiredText() {
return localizedOfferExpiredTextBuilder_ != null || localizedOfferExpiredText_ != null;
}
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
* @return The localizedOfferExpiredText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedOfferExpiredText() {
if (localizedOfferExpiredTextBuilder_ == null) {
return localizedOfferExpiredText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferExpiredText_;
} else {
return localizedOfferExpiredTextBuilder_.getMessage();
}
}
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
*/
public Builder setLocalizedOfferExpiredText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOfferExpiredTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedOfferExpiredText_ = value;
onChanged();
} else {
localizedOfferExpiredTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
*/
public Builder setLocalizedOfferExpiredText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedOfferExpiredTextBuilder_ == null) {
localizedOfferExpiredText_ = builderForValue.build();
onChanged();
} else {
localizedOfferExpiredTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
*/
public Builder mergeLocalizedOfferExpiredText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedOfferExpiredTextBuilder_ == null) {
if (localizedOfferExpiredText_ != null) {
localizedOfferExpiredText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedOfferExpiredText_).mergeFrom(value).buildPartial();
} else {
localizedOfferExpiredText_ = value;
}
onChanged();
} else {
localizedOfferExpiredTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
*/
public Builder clearLocalizedOfferExpiredText() {
if (localizedOfferExpiredTextBuilder_ == null) {
localizedOfferExpiredText_ = null;
onChanged();
} else {
localizedOfferExpiredText_ = null;
localizedOfferExpiredTextBuilder_ = null;
}
return this;
}
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedOfferExpiredTextBuilder() {
onChanged();
return getLocalizedOfferExpiredTextFieldBuilder().getBuilder();
}
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedOfferExpiredTextOrBuilder() {
if (localizedOfferExpiredTextBuilder_ != null) {
return localizedOfferExpiredTextBuilder_.getMessageOrBuilder();
} else {
return localizedOfferExpiredText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedOfferExpiredText_;
}
}
/**
*
* Localized text shown when offer has ended.
*
*
* .io.LocalizedString localizedOfferExpiredText = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedOfferExpiredTextFieldBuilder() {
if (localizedOfferExpiredTextBuilder_ == null) {
localizedOfferExpiredTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedOfferExpiredText(),
getParentForChildren(),
isClean());
localizedOfferExpiredText_ = null;
}
return localizedOfferExpiredTextBuilder_;
}
private java.lang.Object couponExpiredText_ = "";
/**
*
* To be shown when the coupon expiry date / redemption end date has passed.
*
*
* string couponExpiredText = 11;
* @return The couponExpiredText.
*/
public java.lang.String getCouponExpiredText() {
java.lang.Object ref = couponExpiredText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
couponExpiredText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* To be shown when the coupon expiry date / redemption end date has passed.
*
*
* string couponExpiredText = 11;
* @return The bytes for couponExpiredText.
*/
public com.google.protobuf.ByteString
getCouponExpiredTextBytes() {
java.lang.Object ref = couponExpiredText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
couponExpiredText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* To be shown when the coupon expiry date / redemption end date has passed.
*
*
* string couponExpiredText = 11;
* @param value The couponExpiredText to set.
* @return This builder for chaining.
*/
public Builder setCouponExpiredText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
couponExpiredText_ = value;
onChanged();
return this;
}
/**
*
* To be shown when the coupon expiry date / redemption end date has passed.
*
*
* string couponExpiredText = 11;
* @return This builder for chaining.
*/
public Builder clearCouponExpiredText() {
couponExpiredText_ = getDefaultInstance().getCouponExpiredText();
onChanged();
return this;
}
/**
*
* To be shown when the coupon expiry date / redemption end date has passed.
*
*
* string couponExpiredText = 11;
* @param value The bytes for couponExpiredText to set.
* @return This builder for chaining.
*/
public Builder setCouponExpiredTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
couponExpiredText_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Localization.LocalizedString localizedCouponExpiredText_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedCouponExpiredTextBuilder_;
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
* @return Whether the localizedCouponExpiredText field is set.
*/
public boolean hasLocalizedCouponExpiredText() {
return localizedCouponExpiredTextBuilder_ != null || localizedCouponExpiredText_ != null;
}
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
* @return The localizedCouponExpiredText.
*/
public com.passkit.grpc.Localization.LocalizedString getLocalizedCouponExpiredText() {
if (localizedCouponExpiredTextBuilder_ == null) {
return localizedCouponExpiredText_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCouponExpiredText_;
} else {
return localizedCouponExpiredTextBuilder_.getMessage();
}
}
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
*/
public Builder setLocalizedCouponExpiredText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCouponExpiredTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localizedCouponExpiredText_ = value;
onChanged();
} else {
localizedCouponExpiredTextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
*/
public Builder setLocalizedCouponExpiredText(
com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) {
if (localizedCouponExpiredTextBuilder_ == null) {
localizedCouponExpiredText_ = builderForValue.build();
onChanged();
} else {
localizedCouponExpiredTextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
*/
public Builder mergeLocalizedCouponExpiredText(com.passkit.grpc.Localization.LocalizedString value) {
if (localizedCouponExpiredTextBuilder_ == null) {
if (localizedCouponExpiredText_ != null) {
localizedCouponExpiredText_ =
com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedCouponExpiredText_).mergeFrom(value).buildPartial();
} else {
localizedCouponExpiredText_ = value;
}
onChanged();
} else {
localizedCouponExpiredTextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
*/
public Builder clearLocalizedCouponExpiredText() {
if (localizedCouponExpiredTextBuilder_ == null) {
localizedCouponExpiredText_ = null;
onChanged();
} else {
localizedCouponExpiredText_ = null;
localizedCouponExpiredTextBuilder_ = null;
}
return this;
}
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
*/
public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedCouponExpiredTextBuilder() {
onChanged();
return getLocalizedCouponExpiredTextFieldBuilder().getBuilder();
}
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
*/
public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedCouponExpiredTextOrBuilder() {
if (localizedCouponExpiredTextBuilder_ != null) {
return localizedCouponExpiredTextBuilder_.getMessageOrBuilder();
} else {
return localizedCouponExpiredText_ == null ?
com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedCouponExpiredText_;
}
}
/**
*
* Localized text shown when the coupon expiry date / redemption end date has passed.
*
*
* .io.LocalizedString localizedCouponExpiredText = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>
getLocalizedCouponExpiredTextFieldBuilder() {
if (localizedCouponExpiredTextBuilder_ == null) {
localizedCouponExpiredTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>(
getLocalizedCouponExpiredText(),
getParentForChildren(),
isClean());
localizedCouponExpiredText_ = null;
}
return localizedCouponExpiredTextBuilder_;
}
@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:single_use_coupons.ResponseTexts)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.ResponseTexts)
private static final com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseTexts parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseTexts(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.ResponseTexts getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CouponOffersListRequestDeprecatedOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.CouponOffersListRequestDeprecated)
com.google.protobuf.MessageOrBuilder {
/**
* string campaignId = 1;
* @return The campaignId.
*/
java.lang.String getCampaignId();
/**
* string campaignId = 1;
* @return The bytes for campaignId.
*/
com.google.protobuf.ByteString
getCampaignIdBytes();
/**
* .io.Pagination pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
* .io.Pagination pagination = 2;
* @return The pagination.
*/
com.passkit.grpc.PaginationOuterClass.Pagination getPagination();
/**
* .io.Pagination pagination = 2;
*/
com.passkit.grpc.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder();
}
/**
*
* [DEPRECATED: OR operator not supported] Filter and list records.
*
*
* Protobuf type {@code single_use_coupons.CouponOffersListRequestDeprecated}
*/
public static final class CouponOffersListRequestDeprecated extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.CouponOffersListRequestDeprecated)
CouponOffersListRequestDeprecatedOrBuilder {
private static final long serialVersionUID = 0L;
// Use CouponOffersListRequestDeprecated.newBuilder() to construct.
private CouponOffersListRequestDeprecated(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CouponOffersListRequestDeprecated() {
campaignId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CouponOffersListRequestDeprecated();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CouponOffersListRequestDeprecated(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
campaignId_ = s;
break;
}
case 18: {
com.passkit.grpc.PaginationOuterClass.Pagination.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(com.passkit.grpc.PaginationOuterClass.Pagination.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffersListRequestDeprecated_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffersListRequestDeprecated_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated.class, com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated.Builder.class);
}
public static final int CAMPAIGNID_FIELD_NUMBER = 1;
private volatile java.lang.Object campaignId_;
/**
* string campaignId = 1;
* @return The campaignId.
*/
@java.lang.Override
public java.lang.String getCampaignId() {
java.lang.Object ref = campaignId_;
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();
campaignId_ = s;
return s;
}
}
/**
* string campaignId = 1;
* @return The bytes for campaignId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCampaignIdBytes() {
java.lang.Object ref = campaignId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaignId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private com.passkit.grpc.PaginationOuterClass.Pagination pagination_;
/**
* .io.Pagination pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
* .io.Pagination pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public com.passkit.grpc.PaginationOuterClass.Pagination getPagination() {
return pagination_ == null ? com.passkit.grpc.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_;
}
/**
* .io.Pagination pagination = 2;
*/
@java.lang.Override
public com.passkit.grpc.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 (!getCampaignIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, campaignId_);
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCampaignIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, campaignId_);
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated other = (com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated) obj;
if (!getCampaignId()
.equals(other.getCampaignId())) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + CAMPAIGNID_FIELD_NUMBER;
hash = (53 * hash) + getCampaignId().hashCode();
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated 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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated 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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated 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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated 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;
}
/**
*
* [DEPRECATED: OR operator not supported] Filter and list records.
*
*
* Protobuf type {@code single_use_coupons.CouponOffersListRequestDeprecated}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.CouponOffersListRequestDeprecated)
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecatedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffersListRequestDeprecated_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffersListRequestDeprecated_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated.class, com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
campaignId_ = "";
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffersListRequestDeprecated_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated build() {
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated result = new com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated(this);
result.campaignId_ = campaignId_;
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.build();
}
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated.getDefaultInstance()) return this;
if (!other.getCampaignId().isEmpty()) {
campaignId_ = other.campaignId_;
onChanged();
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object campaignId_ = "";
/**
* string campaignId = 1;
* @return The campaignId.
*/
public java.lang.String getCampaignId() {
java.lang.Object ref = campaignId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
campaignId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string campaignId = 1;
* @return The bytes for campaignId.
*/
public com.google.protobuf.ByteString
getCampaignIdBytes() {
java.lang.Object ref = campaignId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaignId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string campaignId = 1;
* @param value The campaignId to set.
* @return This builder for chaining.
*/
public Builder setCampaignId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
campaignId_ = value;
onChanged();
return this;
}
/**
* string campaignId = 1;
* @return This builder for chaining.
*/
public Builder clearCampaignId() {
campaignId_ = getDefaultInstance().getCampaignId();
onChanged();
return this;
}
/**
* string campaignId = 1;
* @param value The bytes for campaignId to set.
* @return This builder for chaining.
*/
public Builder setCampaignIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
campaignId_ = value;
onChanged();
return this;
}
private com.passkit.grpc.PaginationOuterClass.Pagination pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.PaginationOuterClass.Pagination, com.passkit.grpc.PaginationOuterClass.Pagination.Builder, com.passkit.grpc.PaginationOuterClass.PaginationOrBuilder> paginationBuilder_;
/**
* .io.Pagination pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
* .io.Pagination pagination = 2;
* @return The pagination.
*/
public com.passkit.grpc.PaginationOuterClass.Pagination getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? com.passkit.grpc.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
* .io.Pagination pagination = 2;
*/
public Builder setPagination(com.passkit.grpc.PaginationOuterClass.Pagination value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
* .io.Pagination pagination = 2;
*/
public Builder setPagination(
com.passkit.grpc.PaginationOuterClass.Pagination.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.Pagination pagination = 2;
*/
public Builder mergePagination(com.passkit.grpc.PaginationOuterClass.Pagination value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
com.passkit.grpc.PaginationOuterClass.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.Pagination pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
* .io.Pagination pagination = 2;
*/
public com.passkit.grpc.PaginationOuterClass.Pagination.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
* .io.Pagination pagination = 2;
*/
public com.passkit.grpc.PaginationOuterClass.PaginationOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
com.passkit.grpc.PaginationOuterClass.Pagination.getDefaultInstance() : pagination_;
}
}
/**
* .io.Pagination pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.PaginationOuterClass.Pagination, com.passkit.grpc.PaginationOuterClass.Pagination.Builder, com.passkit.grpc.PaginationOuterClass.PaginationOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.PaginationOuterClass.Pagination, com.passkit.grpc.PaginationOuterClass.Pagination.Builder, com.passkit.grpc.PaginationOuterClass.PaginationOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@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:single_use_coupons.CouponOffersListRequestDeprecated)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.CouponOffersListRequestDeprecated)
private static final com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CouponOffersListRequestDeprecated parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CouponOffersListRequestDeprecated(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestDeprecated getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CouponOffersListRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:single_use_coupons.CouponOffersListRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string campaignId = 1;
* @return The campaignId.
*/
java.lang.String getCampaignId();
/**
* string campaignId = 1;
* @return The bytes for campaignId.
*/
com.google.protobuf.ByteString
getCampaignIdBytes();
/**
* .io.Filters filters = 2;
* @return Whether the filters field is set.
*/
boolean hasFilters();
/**
* .io.Filters filters = 2;
* @return The filters.
*/
com.passkit.grpc.Filter.Filters getFilters();
/**
* .io.Filters filters = 2;
*/
com.passkit.grpc.Filter.FiltersOrBuilder getFiltersOrBuilder();
}
/**
* Protobuf type {@code single_use_coupons.CouponOffersListRequest}
*/
public static final class CouponOffersListRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:single_use_coupons.CouponOffersListRequest)
CouponOffersListRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CouponOffersListRequest.newBuilder() to construct.
private CouponOffersListRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CouponOffersListRequest() {
campaignId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CouponOffersListRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CouponOffersListRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
campaignId_ = s;
break;
}
case 18: {
com.passkit.grpc.Filter.Filters.Builder subBuilder = null;
if (filters_ != null) {
subBuilder = filters_.toBuilder();
}
filters_ = input.readMessage(com.passkit.grpc.Filter.Filters.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filters_);
filters_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffersListRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffersListRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest.class, com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest.Builder.class);
}
public static final int CAMPAIGNID_FIELD_NUMBER = 1;
private volatile java.lang.Object campaignId_;
/**
* string campaignId = 1;
* @return The campaignId.
*/
@java.lang.Override
public java.lang.String getCampaignId() {
java.lang.Object ref = campaignId_;
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();
campaignId_ = s;
return s;
}
}
/**
* string campaignId = 1;
* @return The bytes for campaignId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCampaignIdBytes() {
java.lang.Object ref = campaignId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaignId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTERS_FIELD_NUMBER = 2;
private com.passkit.grpc.Filter.Filters filters_;
/**
* .io.Filters filters = 2;
* @return Whether the filters field is set.
*/
@java.lang.Override
public boolean hasFilters() {
return filters_ != null;
}
/**
* .io.Filters filters = 2;
* @return The filters.
*/
@java.lang.Override
public com.passkit.grpc.Filter.Filters getFilters() {
return filters_ == null ? com.passkit.grpc.Filter.Filters.getDefaultInstance() : filters_;
}
/**
* .io.Filters filters = 2;
*/
@java.lang.Override
public com.passkit.grpc.Filter.FiltersOrBuilder getFiltersOrBuilder() {
return getFilters();
}
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 (!getCampaignIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, campaignId_);
}
if (filters_ != null) {
output.writeMessage(2, getFilters());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCampaignIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, campaignId_);
}
if (filters_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFilters());
}
size += unknownFields.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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest)) {
return super.equals(obj);
}
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest other = (com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest) obj;
if (!getCampaignId()
.equals(other.getCampaignId())) return false;
if (hasFilters() != other.hasFilters()) return false;
if (hasFilters()) {
if (!getFilters()
.equals(other.getFilters())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + CAMPAIGNID_FIELD_NUMBER;
hash = (53 * hash) + getCampaignId().hashCode();
if (hasFilters()) {
hash = (37 * hash) + FILTERS_FIELD_NUMBER;
hash = (53 * hash) + getFilters().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest 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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest 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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest 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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest 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;
}
/**
* Protobuf type {@code single_use_coupons.CouponOffersListRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:single_use_coupons.CouponOffersListRequest)
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffersListRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffersListRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest.class, com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest.Builder.class);
}
// Construct using com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
campaignId_ = "";
if (filtersBuilder_ == null) {
filters_ = null;
} else {
filters_ = null;
filtersBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.internal_static_single_use_coupons_CouponOffersListRequest_descriptor;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest getDefaultInstanceForType() {
return com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest build() {
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest buildPartial() {
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest result = new com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest(this);
result.campaignId_ = campaignId_;
if (filtersBuilder_ == null) {
result.filters_ = filters_;
} else {
result.filters_ = filtersBuilder_.build();
}
onBuilt();
return result;
}
@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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest) {
return mergeFrom((com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest other) {
if (other == com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest.getDefaultInstance()) return this;
if (!other.getCampaignId().isEmpty()) {
campaignId_ = other.campaignId_;
onChanged();
}
if (other.hasFilters()) {
mergeFilters(other.getFilters());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object campaignId_ = "";
/**
* string campaignId = 1;
* @return The campaignId.
*/
public java.lang.String getCampaignId() {
java.lang.Object ref = campaignId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
campaignId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string campaignId = 1;
* @return The bytes for campaignId.
*/
public com.google.protobuf.ByteString
getCampaignIdBytes() {
java.lang.Object ref = campaignId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaignId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string campaignId = 1;
* @param value The campaignId to set.
* @return This builder for chaining.
*/
public Builder setCampaignId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
campaignId_ = value;
onChanged();
return this;
}
/**
* string campaignId = 1;
* @return This builder for chaining.
*/
public Builder clearCampaignId() {
campaignId_ = getDefaultInstance().getCampaignId();
onChanged();
return this;
}
/**
* string campaignId = 1;
* @param value The bytes for campaignId to set.
* @return This builder for chaining.
*/
public Builder setCampaignIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
campaignId_ = value;
onChanged();
return this;
}
private com.passkit.grpc.Filter.Filters filters_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Filter.Filters, com.passkit.grpc.Filter.Filters.Builder, com.passkit.grpc.Filter.FiltersOrBuilder> filtersBuilder_;
/**
* .io.Filters filters = 2;
* @return Whether the filters field is set.
*/
public boolean hasFilters() {
return filtersBuilder_ != null || filters_ != null;
}
/**
* .io.Filters filters = 2;
* @return The filters.
*/
public com.passkit.grpc.Filter.Filters getFilters() {
if (filtersBuilder_ == null) {
return filters_ == null ? com.passkit.grpc.Filter.Filters.getDefaultInstance() : filters_;
} else {
return filtersBuilder_.getMessage();
}
}
/**
* .io.Filters filters = 2;
*/
public Builder setFilters(com.passkit.grpc.Filter.Filters value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filters_ = value;
onChanged();
} else {
filtersBuilder_.setMessage(value);
}
return this;
}
/**
* .io.Filters filters = 2;
*/
public Builder setFilters(
com.passkit.grpc.Filter.Filters.Builder builderForValue) {
if (filtersBuilder_ == null) {
filters_ = builderForValue.build();
onChanged();
} else {
filtersBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.Filters filters = 2;
*/
public Builder mergeFilters(com.passkit.grpc.Filter.Filters value) {
if (filtersBuilder_ == null) {
if (filters_ != null) {
filters_ =
com.passkit.grpc.Filter.Filters.newBuilder(filters_).mergeFrom(value).buildPartial();
} else {
filters_ = value;
}
onChanged();
} else {
filtersBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.Filters filters = 2;
*/
public Builder clearFilters() {
if (filtersBuilder_ == null) {
filters_ = null;
onChanged();
} else {
filters_ = null;
filtersBuilder_ = null;
}
return this;
}
/**
* .io.Filters filters = 2;
*/
public com.passkit.grpc.Filter.Filters.Builder getFiltersBuilder() {
onChanged();
return getFiltersFieldBuilder().getBuilder();
}
/**
* .io.Filters filters = 2;
*/
public com.passkit.grpc.Filter.FiltersOrBuilder getFiltersOrBuilder() {
if (filtersBuilder_ != null) {
return filtersBuilder_.getMessageOrBuilder();
} else {
return filters_ == null ?
com.passkit.grpc.Filter.Filters.getDefaultInstance() : filters_;
}
}
/**
* .io.Filters filters = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Filter.Filters, com.passkit.grpc.Filter.Filters.Builder, com.passkit.grpc.Filter.FiltersOrBuilder>
getFiltersFieldBuilder() {
if (filtersBuilder_ == null) {
filtersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Filter.Filters, com.passkit.grpc.Filter.Filters.Builder, com.passkit.grpc.Filter.FiltersOrBuilder>(
getFilters(),
getParentForChildren(),
isClean());
filters_ = null;
}
return filtersBuilder_;
}
@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:single_use_coupons.CouponOffersListRequest)
}
// @@protoc_insertion_point(class_scope:single_use_coupons.CouponOffersListRequest)
private static final com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest();
}
public static com.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CouponOffersListRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CouponOffersListRequest(input, extensionRegistry);
}
};
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.passkit.grpc.SingleUseCoupons.Offer.CouponOffersListRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_CouponOffer_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_CouponOffer_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_CouponExpirySettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_CouponExpirySettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_RedemptionSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_RedemptionSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_CustomerInitiatedFixedCodeSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_CustomerInitiatedFixedCodeSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_RedemptionTimerSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_RedemptionTimerSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_CustomerInitiatedCodeProvideOnRedeemSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_CustomerInitiatedCodeProvideOnRedeemSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_InputField_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_InputField_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_StandardPassKitHostedPage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_StandardPassKitHostedPage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_CallToActionButton_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_CallToActionButton_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_ResponseTexts_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_ResponseTexts_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_CouponOffersListRequestDeprecated_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_CouponOffersListRequestDeprecated_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_single_use_coupons_CouponOffersListRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_single_use_coupons_CouponOffersListRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n!io/single_use_coupons/offer.proto\022\022sin" +
"gle_use_coupons\032\037google/protobuf/timesta" +
"mp.proto\032\027io/common/billing.proto\032\034io/co" +
"mmon/distribution.proto\032\034io/common/local" +
"ization.proto\032\032io/common/pagination.prot" +
"o\032\026io/common/filter.proto\032\030io/common/tem" +
"plate.proto\032\024io/image/image.proto\032.proto" +
"c-gen-openapiv2/options/annotations.prot" +
"o\"\340\010\n\013CouponOffer\022\n\n\002id\030\001 \001(\t\022\022\n\nofferTi" +
"tle\030\002 \001(\t\0220\n\023localizedOfferTitle\030\003 \001(\0132\023" +
".io.LocalizedString\022\027\n\017offerShortTitle\030\004" +
" \001(\t\0225\n\030localizedOfferShortTitle\030\005 \001(\0132\023" +
".io.LocalizedString\022\024\n\014offerDetails\030\006 \001(" +
"\t\0222\n\025localizedOfferDetails\030\007 \001(\0132\023.io.Lo" +
"calizedString\022\026\n\016offerFinePrint\030\010 \001(\t\0224\n" +
"\027localizedOfferFinePrint\030\t \001(\0132\023.io.Loca" +
"lizedString\022\"\n\032beforeRedeemPassTemplateI" +
"d\030\n \001(\t\022!\n\031afterRedeemPassTemplateId\030\013 \001" +
"(\t\022\030\n\005quota\030\014 \001(\0132\t.io.Quota\022F\n\024couponEx" +
"pirySettings\030\r \001(\0132(.single_use_coupons." +
"CouponExpirySettings\022B\n\022redemptionSettin" +
"gs\030\016 \001(\0132&.single_use_coupons.Redemption" +
"Settings\0222\n\016issueStartDate\030\017 \001(\0132\032.googl" +
"e.protobuf.Timestamp\0220\n\014issueEndDate\030\020 \001" +
"(\0132\032.google.protobuf.Timestamp\022+\n\007create" +
"d\030\021 \001(\0132\032.google.protobuf.Timestamp\022+\n\007u" +
"pdated\030\022 \001(\0132\032.google.protobuf.Timestamp" +
"\022\022\n\ncampaignId\030\023 \001(\t\0226\n\024distributionSett" +
"ings\030\024 \001(\0132\030.io.DistributionSettings\022\021\n\t" +
"shortCode\030\025 \001(\t\022\024\n\014ianaTimezone\030\026 \001(\t\022\020\n" +
"\010disabled\030\027 \001(\010:\342\001\222A\336\001\n\333\001*\014Coupon Offer2" +
"\221\001Holds the offer details, redemption se" +
"ttings and before & after-redeem templat" +
"e designs (Apple Wallet & Google Pay des" +
"igns) for the Coupon Offer.\322\001\nofferTitle" +
"\322\001\014offerDetails\322\001\032beforeRedeemPassTempla" +
"teId\"p\n\024CouponExpirySettings\022>\n\020couponEx" +
"piryType\030\001 \001(\0162$.single_use_coupons.Coup" +
"onExpiryType\022\030\n\020expireAfterXDays\030\003 \001(\r\"\334" +
"\003\n\022RedemptionSettings\0227\n\023redemptionStart" +
"Date\030\001 \001(\0132\032.google.protobuf.Timestamp\0225" +
"\n\021redemptionEndDate\030\002 \001(\0132\032.google.proto" +
"buf.Timestamp\022:\n\016redemptionType\030\003 \003(\0162\"." +
"single_use_coupons.RedemptionType\022f\n\034cod" +
"eProvidedOnRedeemSettings\030\005 \001(\[email protected]" +
"_use_coupons.CustomerInitiatedCodeProvid" +
"eOnRedeemSettings\022Q\n\021fixedCodeSettings\030\006" +
" \001(\01326.single_use_coupons.CustomerInitia" +
"tedFixedCodeSettings\022G\n\020standardSettings" +
"\030\007 \001(\0132-.single_use_coupons.StandardPass" +
"KitHostedPageJ\004\010\004\020\005J\004\010\010\020\tJ\004\010\t\020\nJ\004\010\n\020\013\"\265\001" +
"\n\"CustomerInitiatedFixedCodeSettings\022\021\n\t" +
"fixedCode\030\001 \001(\t\022\024\n\014useCouponSku\030\002 \001(\010\022 \n" +
"\007barcode\030\003 \001(\0162\017.io.BarcodeType\022D\n\017redem" +
"ptionTimer\030\004 \001(\0132+.single_use_coupons.Re" +
"demptionTimerSettings\"|\n\027RedemptionTimer" +
"Settings\022\026\n\016timeoutSeconds\030\001 \001(\r\022\025\n\rtime" +
"rHelpText\030\002 \001(\t\0222\n\025localizedTimeHelpText" +
"\030\003 \001(\0132\023.io.LocalizedString\"\321\001\n,Customer" +
"InitiatedCodeProvideOnRedeemSettings\022\022\n\n" +
"validCodes\030\001 \003(\t\022;\n\023redemptionCodeInput\030" +
"\002 \001(\0132\036.single_use_coupons.InputField\022\030\n" +
"\020submitButtonText\030\003 \001(\t\0226\n\031localizedSubm" +
"itButtonText\030\004 \001(\0132\023.io.LocalizedString\"" +
"\376\002\n\nInputField\022\r\n\005label\030\001 \001(\t\022+\n\016localiz" +
"edLabel\030\002 \001(\0132\023.io.LocalizedString\022\022\n\nhe" +
"lperText\030\003 \001(\t\0220\n\023localizedHelperText\030\004 " +
"\001(\0132\023.io.LocalizedString\022\024\n\014errorMessage" +
"\030\005 \001(\t\0222\n\025localizedErrorMessage\030\006 \001(\0132\023." +
"io.LocalizedString\022\024\n\014defaultValue\030\007 \001(\t" +
"\0222\n\025localizedDefaultValue\030\010 \001(\0132\023.io.Loc" +
"alizedString\022\023\n\013placeholder\030\t \001(\t\0221\n\024loc" +
"alizedPlaceholder\030\n \001(\0132\023.io.LocalizedSt" +
"ring\022\022\n\nvalidation\030\013 \001(\t\"\211\004\n\031StandardPas" +
"sKitHostedPage\022\r\n\005title\030\001 \001(\t\022+\n\016localiz" +
"edTitle\030\002 \001(\0132\023.io.LocalizedString\022\036\n\026re" +
"demptionInstructions\030\003 \001(\t\022<\n\037localizedR" +
"edemptionInstructions\030\004 \001(\0132\023.io.Localiz" +
"edString\022 \n\010imageIds\030\005 \001(\0132\014.io.ImageIds" +
"H\000\022\037\n\006images\030\006 \001(\0132\r.io.ImageDataH\000\022\022\n\nf" +
"ooterText\030\007 \001(\t\0220\n\023localizedFooterText\030\010" +
" \001(\0132\023.io.LocalizedString\0228\n\rresponseTex" +
"ts\030\t \001(\0132!.single_use_coupons.ResponseTe" +
"xts\022\034\n\024hideRedeemedDateTime\030\n \001(\010\022B\n\022cal" +
"lToActionButton\030\013 \001(\0132&.single_use_coupo" +
"ns.CallToActionButton\022\024\n\014cssOverrides\030\014 " +
"\001(\tB\027\n\025RedemptionImageAssets\"\264\001\n\022CallToA" +
"ctionButton\022\036\n\026hideCallToActionButton\030\001 " +
"\001(\010\022\022\n\nbuttonText\030\002 \001(\t\0220\n\023localizedButt" +
"onText\030\003 \001(\0132\023.io.LocalizedString\022\014\n\004lin" +
"k\030\004 \001(\t\022*\n\rlocalizedLink\030\005 \001(\0132\023.io.Loca" +
"lizedString\"\253\004\n\rResponseTexts\022\'\n\037redeemC" +
"onfirmationDialogBoxText\030\001 \001(\t\022E\n(locali" +
"zedRedeemConfirmationDialogBoxText\030\002 \001(\013" +
"2\023.io.LocalizedString\022\030\n\020cancelRedeemTex" +
"t\030\003 \001(\t\0226\n\031localizedCancelRedeemText\030\004 \001" +
"(\0132\023.io.LocalizedString\022\027\n\017afterRedeemTe" +
"xt\030\005 \001(\t\0225\n\030localizedAfterRedeemText\030\006 \001" +
"(\0132\023.io.LocalizedString\022!\n\031couponAlready" +
"RedeemedText\030\007 \001(\t\022?\n\"localizedCouponAlr" +
"eadyRedeemedText\030\010 \001(\0132\023.io.LocalizedStr" +
"ing\022\030\n\020offerExpiredText\030\t \001(\t\0226\n\031localiz" +
"edOfferExpiredText\030\n \001(\0132\023.io.LocalizedS" +
"tring\022\031\n\021couponExpiredText\030\013 \001(\t\0227\n\032loca" +
"lizedCouponExpiredText\030\014 \001(\0132\023.io.Locali" +
"zedString\"[\n!CouponOffersListRequestDepr" +
"ecated\022\022\n\ncampaignId\030\001 \001(\t\022\"\n\npagination" +
"\030\002 \001(\0132\016.io.Pagination\"K\n\027CouponOffersLi" +
"stRequest\022\022\n\ncampaignId\030\001 \001(\t\022\034\n\007filters" +
"\030\002 \001(\0132\013.io.Filters*\251\001\n\020CouponExpiryType" +
"\022\025\n\021EXPIRY_DO_NOT_USE\020\000\022\036\n\032AUTO_EXPIRE_O" +
"FFER_END_DATE\020\001\022#\n\037AUTO_EXPIRE_REDEMPTIO" +
"N_END_DATE\020\002\022\027\n\023EXPIRE_AFTER_X_DAYS\020\003\022 \n" +
"\034EXPIRE_ON_VARIABLE_DATE_TIME\020\004*\344\001\n\016Rede" +
"mptionType\022\036\n\032REDEMPTION_TYPE_DO_NOT_USE" +
"\020\000\022\027\n\023REDEMPTION_TYPE_API\020\001\022&\n\"REDEMPTIO" +
"N_TYPE_CUSTOMER_INITIATED\020\002\0221\n-REDEMPTIO" +
"N_TYPE_CUSTOMER_INITIATED_CODE_FIXED\020\003\022>" +
"\n:REDEMPTION_TYPE_CUSTOMER_INITIATED_COD" +
"E_PROVIDED_ON_REDEEM\020\004B|\n!com.passkit.gr" +
"pc.SingleUseCouponsZ7stash.passkit.com/i" +
"o/model/sdk/go/io/single_use_coupons\252\002\035P" +
"assKit.Grpc.SingleUseCouponsb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
com.passkit.grpc.Billing.getDescriptor(),
com.passkit.grpc.Distribution.getDescriptor(),
com.passkit.grpc.Localization.getDescriptor(),
com.passkit.grpc.PaginationOuterClass.getDescriptor(),
com.passkit.grpc.Filter.getDescriptor(),
com.passkit.grpc.Template.getDescriptor(),
com.passkit.grpc.Image.getDescriptor(),
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(),
});
internal_static_single_use_coupons_CouponOffer_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_single_use_coupons_CouponOffer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_CouponOffer_descriptor,
new java.lang.String[] { "Id", "OfferTitle", "LocalizedOfferTitle", "OfferShortTitle", "LocalizedOfferShortTitle", "OfferDetails", "LocalizedOfferDetails", "OfferFinePrint", "LocalizedOfferFinePrint", "BeforeRedeemPassTemplateId", "AfterRedeemPassTemplateId", "Quota", "CouponExpirySettings", "RedemptionSettings", "IssueStartDate", "IssueEndDate", "Created", "Updated", "CampaignId", "DistributionSettings", "ShortCode", "IanaTimezone", "Disabled", });
internal_static_single_use_coupons_CouponExpirySettings_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_single_use_coupons_CouponExpirySettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_CouponExpirySettings_descriptor,
new java.lang.String[] { "CouponExpiryType", "ExpireAfterXDays", });
internal_static_single_use_coupons_RedemptionSettings_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_single_use_coupons_RedemptionSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_RedemptionSettings_descriptor,
new java.lang.String[] { "RedemptionStartDate", "RedemptionEndDate", "RedemptionType", "CodeProvidedOnRedeemSettings", "FixedCodeSettings", "StandardSettings", });
internal_static_single_use_coupons_CustomerInitiatedFixedCodeSettings_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_single_use_coupons_CustomerInitiatedFixedCodeSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_CustomerInitiatedFixedCodeSettings_descriptor,
new java.lang.String[] { "FixedCode", "UseCouponSku", "Barcode", "RedemptionTimer", });
internal_static_single_use_coupons_RedemptionTimerSettings_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_single_use_coupons_RedemptionTimerSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_RedemptionTimerSettings_descriptor,
new java.lang.String[] { "TimeoutSeconds", "TimerHelpText", "LocalizedTimeHelpText", });
internal_static_single_use_coupons_CustomerInitiatedCodeProvideOnRedeemSettings_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_single_use_coupons_CustomerInitiatedCodeProvideOnRedeemSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_CustomerInitiatedCodeProvideOnRedeemSettings_descriptor,
new java.lang.String[] { "ValidCodes", "RedemptionCodeInput", "SubmitButtonText", "LocalizedSubmitButtonText", });
internal_static_single_use_coupons_InputField_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_single_use_coupons_InputField_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_InputField_descriptor,
new java.lang.String[] { "Label", "LocalizedLabel", "HelperText", "LocalizedHelperText", "ErrorMessage", "LocalizedErrorMessage", "DefaultValue", "LocalizedDefaultValue", "Placeholder", "LocalizedPlaceholder", "Validation", });
internal_static_single_use_coupons_StandardPassKitHostedPage_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_single_use_coupons_StandardPassKitHostedPage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_StandardPassKitHostedPage_descriptor,
new java.lang.String[] { "Title", "LocalizedTitle", "RedemptionInstructions", "LocalizedRedemptionInstructions", "ImageIds", "Images", "FooterText", "LocalizedFooterText", "ResponseTexts", "HideRedeemedDateTime", "CallToActionButton", "CssOverrides", "RedemptionImageAssets", });
internal_static_single_use_coupons_CallToActionButton_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_single_use_coupons_CallToActionButton_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_CallToActionButton_descriptor,
new java.lang.String[] { "HideCallToActionButton", "ButtonText", "LocalizedButtonText", "Link", "LocalizedLink", });
internal_static_single_use_coupons_ResponseTexts_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_single_use_coupons_ResponseTexts_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_ResponseTexts_descriptor,
new java.lang.String[] { "RedeemConfirmationDialogBoxText", "LocalizedRedeemConfirmationDialogBoxText", "CancelRedeemText", "LocalizedCancelRedeemText", "AfterRedeemText", "LocalizedAfterRedeemText", "CouponAlreadyRedeemedText", "LocalizedCouponAlreadyRedeemedText", "OfferExpiredText", "LocalizedOfferExpiredText", "CouponExpiredText", "LocalizedCouponExpiredText", });
internal_static_single_use_coupons_CouponOffersListRequestDeprecated_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_single_use_coupons_CouponOffersListRequestDeprecated_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_CouponOffersListRequestDeprecated_descriptor,
new java.lang.String[] { "CampaignId", "Pagination", });
internal_static_single_use_coupons_CouponOffersListRequest_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_single_use_coupons_CouponOffersListRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_single_use_coupons_CouponOffersListRequest_descriptor,
new java.lang.String[] { "CampaignId", "Filters", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(grpc.gateway.protoc_gen_openapiv2.options.Annotations.openapiv2Schema);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.TimestampProto.getDescriptor();
com.passkit.grpc.Billing.getDescriptor();
com.passkit.grpc.Distribution.getDescriptor();
com.passkit.grpc.Localization.getDescriptor();
com.passkit.grpc.PaginationOuterClass.getDescriptor();
com.passkit.grpc.Filter.getDescriptor();
com.passkit.grpc.Template.getDescriptor();
com.passkit.grpc.Image.getDescriptor();
grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}