All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.passkit.grpc.Members.TierOuterClass Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.1.97
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: io/member/tier.proto

package com.passkit.grpc.Members;

public final class TierOuterClass {
  private TierOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface TierOrBuilder extends
      // @@protoc_insertion_point(interface_extends:members.Tier)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Tier identifier (could just be: blue, gold, etc); needs to be lower case. Tier ID needs to be uique within the program.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * Tier identifier (could just be: blue, gold, etc); needs to be lower case. Tier ID needs to be uique within the program.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Index of the tier; can be used for managing downgrades / upgrade messaging; needs to be unique within the program.
     * 
* * uint32 tierIndex = 2; * @return The tierIndex. */ int getTierIndex(); /** *
     * Name of tier.
     * 
* * string name = 3; * @return The name. */ java.lang.String getName(); /** *
     * Name of tier.
     * 
* * string name = 3; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Localized name of tier.
     * 
* * .io.LocalizedString localizedName = 4; * @return Whether the localizedName field is set. */ boolean hasLocalizedName(); /** *
     * Localized name of tier.
     * 
* * .io.LocalizedString localizedName = 4; * @return The localizedName. */ com.passkit.grpc.Localization.LocalizedString getLocalizedName(); /** *
     * Localized name of tier.
     * 
* * .io.LocalizedString localizedName = 4; */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedNameOrBuilder(); /** *
     * Name of the secondary reward tier.
     * 
* * string secondaryTierName = 5; * @return The secondaryTierName. */ java.lang.String getSecondaryTierName(); /** *
     * Name of the secondary reward tier.
     * 
* * string secondaryTierName = 5; * @return The bytes for secondaryTierName. */ com.google.protobuf.ByteString getSecondaryTierNameBytes(); /** *
     * Localized name of the secondary reward tier.
     * 
* * .io.LocalizedString localizedSecondaryTierName = 6; * @return Whether the localizedSecondaryTierName field is set. */ boolean hasLocalizedSecondaryTierName(); /** *
     * Localized name of the secondary reward tier.
     * 
* * .io.LocalizedString localizedSecondaryTierName = 6; * @return The localizedSecondaryTierName. */ com.passkit.grpc.Localization.LocalizedString getLocalizedSecondaryTierName(); /** *
     * Localized name of the secondary reward tier.
     * 
* * .io.LocalizedString localizedSecondaryTierName = 6; */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSecondaryTierNameOrBuilder(); /** *
     * The program id that the tier belongs to.
     * 
* * string programId = 7; * @return The programId. */ java.lang.String getProgramId(); /** *
     * The program id that the tier belongs to.
     * 
* * string programId = 7; * @return The bytes for programId. */ com.google.protobuf.ByteString getProgramIdBytes(); /** *
     * Identifier of pass template which identifies design and data elements for this tier.
     * 
* * string passTemplateId = 8; * @return The passTemplateId. */ java.lang.String getPassTemplateId(); /** *
     * Identifier of pass template which identifies design and data elements for this tier.
     * 
* * string passTemplateId = 8; * @return The bytes for passTemplateId. */ com.google.protobuf.ByteString getPassTemplateIdBytes(); /** *
     * Notification to be shown when someone upgrades tier.
     * 
* * string tierUpgradeMessage = 9; * @return The tierUpgradeMessage. */ java.lang.String getTierUpgradeMessage(); /** *
     * Notification to be shown when someone upgrades tier.
     * 
* * string tierUpgradeMessage = 9; * @return The bytes for tierUpgradeMessage. */ com.google.protobuf.ByteString getTierUpgradeMessageBytes(); /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; * @return Whether the localizedTierUpgradeMessage field is set. */ boolean hasLocalizedTierUpgradeMessage(); /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; * @return The localizedTierUpgradeMessage. */ com.passkit.grpc.Localization.LocalizedString getLocalizedTierUpgradeMessage(); /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTierUpgradeMessageOrBuilder(); /** *
     * Notification to be shown when someone downgrades tier.
     * 
* * string tierDowngradeMessage = 11; * @return The tierDowngradeMessage. */ java.lang.String getTierDowngradeMessage(); /** *
     * Notification to be shown when someone downgrades tier.
     * 
* * string tierDowngradeMessage = 11; * @return The bytes for tierDowngradeMessage. */ com.google.protobuf.ByteString getTierDowngradeMessageBytes(); /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; * @return Whether the localizedTierDowngradeMessage field is set. */ boolean hasLocalizedTierDowngradeMessage(); /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; * @return The localizedTierDowngradeMessage. */ com.passkit.grpc.Localization.LocalizedString getLocalizedTierDowngradeMessage(); /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTierDowngradeMessageOrBuilder(); /** *
     * The date the tier was created.
     * 
* * .google.protobuf.Timestamp created = 13; * @return Whether the created field is set. */ boolean hasCreated(); /** *
     * The date the tier was created.
     * 
* * .google.protobuf.Timestamp created = 13; * @return The created. */ com.google.protobuf.Timestamp getCreated(); /** *
     * The date the tier was created.
     * 
* * .google.protobuf.Timestamp created = 13; */ com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder(); /** *
     * The date the tier was updated.
     * 
* * .google.protobuf.Timestamp updated = 14; * @return Whether the updated field is set. */ boolean hasUpdated(); /** *
     * The date the tier was updated.
     * 
* * .google.protobuf.Timestamp updated = 14; * @return The updated. */ com.google.protobuf.Timestamp getUpdated(); /** *
     * The date the tier was updated.
     * 
* * .google.protobuf.Timestamp updated = 14; */ com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder(); /** *
     * Set true to accept a negative point balance. Default is false.
     * 
* * bool pointsOverdrawn = 15; * @return The pointsOverdrawn. */ boolean getPointsOverdrawn(); /** *
     * Set true to accept a negative secondary point balance. Default is false.
     * 
* * bool secondaryPointsOverdrawn = 16; * @return The secondaryPointsOverdrawn. */ boolean getSecondaryPointsOverdrawn(); /** *
     * Expiry date setting. You can set expiry logic here. Default no expiry logic.
     * 
* * .io.ExpirySettings expirySettings = 17; * @return Whether the expirySettings field is set. */ boolean hasExpirySettings(); /** *
     * Expiry date setting. You can set expiry logic here. Default no expiry logic.
     * 
* * .io.ExpirySettings expirySettings = 17; * @return The expirySettings. */ com.passkit.grpc.Expiry.ExpirySettings getExpirySettings(); /** *
     * Expiry date setting. You can set expiry logic here. Default no expiry logic.
     * 
* * .io.ExpirySettings expirySettings = 17; */ com.passkit.grpc.Expiry.ExpirySettingsOrBuilder getExpirySettingsOrBuilder(); /** *
     * Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
     * 
* * string timezone = 18; * @return The timezone. */ java.lang.String getTimezone(); /** *
     * Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
     * 
* * string timezone = 18; * @return The bytes for timezone. */ com.google.protobuf.ByteString getTimezoneBytes(); /** *
     * Indicates if customers can enrol into this tier via a public web form (only for public programs).
     * 
* * .io.PkBool allowTierEnrolment = 19; * @return Whether the allowTierEnrolment field is set. */ boolean hasAllowTierEnrolment(); /** *
     * Indicates if customers can enrol into this tier via a public web form (only for public programs).
     * 
* * .io.PkBool allowTierEnrolment = 19; * @return The allowTierEnrolment. */ com.passkit.grpc.CommonObjects.PkBool getAllowTierEnrolment(); /** *
     * Indicates if customers can enrol into this tier via a public web form (only for public programs).
     * 
* * .io.PkBool allowTierEnrolment = 19; */ com.passkit.grpc.CommonObjects.PkBoolOrBuilder getAllowTierEnrolmentOrBuilder(); /** *
     * Tier shortcode is used in public enrolment URLs, that enrol members into the tier if the program is set to public and allowTierEnrolment = true for this tier. System generated.
     * 
* * string shortCode = 20; * @return The shortCode. */ java.lang.String getShortCode(); /** *
     * Tier shortcode is used in public enrolment URLs, that enrol members into the tier if the program is set to public and allowTierEnrolment = true for this tier. System generated.
     * 
* * string shortCode = 20; * @return The bytes for shortCode. */ com.google.protobuf.ByteString getShortCodeBytes(); } /** *
   * The Tier object; will override certain details of the pass (colours, logo's, dynamic back fields, and labels).
   * 
* * Protobuf type {@code members.Tier} */ public static final class Tier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:members.Tier) TierOrBuilder { private static final long serialVersionUID = 0L; // Use Tier.newBuilder() to construct. private Tier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Tier() { id_ = ""; name_ = ""; secondaryTierName_ = ""; programId_ = ""; passTemplateId_ = ""; tierUpgradeMessage_ = ""; tierDowngradeMessage_ = ""; timezone_ = ""; shortCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Tier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Tier( 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 16: { tierIndex_ = input.readUInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedName_ != null) { subBuilder = localizedName_.toBuilder(); } localizedName_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedName_); localizedName_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); secondaryTierName_ = s; break; } case 50: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedSecondaryTierName_ != null) { subBuilder = localizedSecondaryTierName_.toBuilder(); } localizedSecondaryTierName_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedSecondaryTierName_); localizedSecondaryTierName_ = subBuilder.buildPartial(); } break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); programId_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); passTemplateId_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); tierUpgradeMessage_ = s; break; } case 82: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedTierUpgradeMessage_ != null) { subBuilder = localizedTierUpgradeMessage_.toBuilder(); } localizedTierUpgradeMessage_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedTierUpgradeMessage_); localizedTierUpgradeMessage_ = subBuilder.buildPartial(); } break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); tierDowngradeMessage_ = s; break; } case 98: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedTierDowngradeMessage_ != null) { subBuilder = localizedTierDowngradeMessage_.toBuilder(); } localizedTierDowngradeMessage_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedTierDowngradeMessage_); localizedTierDowngradeMessage_ = subBuilder.buildPartial(); } break; } case 106: { 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 114: { 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 120: { pointsOverdrawn_ = input.readBool(); break; } case 128: { secondaryPointsOverdrawn_ = input.readBool(); break; } case 138: { com.passkit.grpc.Expiry.ExpirySettings.Builder subBuilder = null; if (expirySettings_ != null) { subBuilder = expirySettings_.toBuilder(); } expirySettings_ = input.readMessage(com.passkit.grpc.Expiry.ExpirySettings.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expirySettings_); expirySettings_ = subBuilder.buildPartial(); } break; } case 146: { java.lang.String s = input.readStringRequireUtf8(); timezone_ = s; break; } case 154: { com.passkit.grpc.CommonObjects.PkBool.Builder subBuilder = null; if (allowTierEnrolment_ != null) { subBuilder = allowTierEnrolment_.toBuilder(); } allowTierEnrolment_ = input.readMessage(com.passkit.grpc.CommonObjects.PkBool.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(allowTierEnrolment_); allowTierEnrolment_ = subBuilder.buildPartial(); } break; } case 162: { java.lang.String s = input.readStringRequireUtf8(); shortCode_ = 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.Members.TierOuterClass.internal_static_members_Tier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Members.TierOuterClass.internal_static_members_Tier_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Members.TierOuterClass.Tier.class, com.passkit.grpc.Members.TierOuterClass.Tier.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * Tier identifier (could just be: blue, gold, etc); needs to be lower case. Tier ID needs to be uique within the program.
     * 
* * 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; } } /** *
     * Tier identifier (could just be: blue, gold, etc); needs to be lower case. Tier ID needs to be uique within the program.
     * 
* * 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 TIERINDEX_FIELD_NUMBER = 2; private int tierIndex_; /** *
     * Index of the tier; can be used for managing downgrades / upgrade messaging; needs to be unique within the program.
     * 
* * uint32 tierIndex = 2; * @return The tierIndex. */ @java.lang.Override public int getTierIndex() { return tierIndex_; } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
     * Name of tier.
     * 
* * string name = 3; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * Name of tier.
     * 
* * string name = 3; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALIZEDNAME_FIELD_NUMBER = 4; private com.passkit.grpc.Localization.LocalizedString localizedName_; /** *
     * Localized name of tier.
     * 
* * .io.LocalizedString localizedName = 4; * @return Whether the localizedName field is set. */ @java.lang.Override public boolean hasLocalizedName() { return localizedName_ != null; } /** *
     * Localized name of tier.
     * 
* * .io.LocalizedString localizedName = 4; * @return The localizedName. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedName() { return localizedName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedName_; } /** *
     * Localized name of tier.
     * 
* * .io.LocalizedString localizedName = 4; */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedNameOrBuilder() { return getLocalizedName(); } public static final int SECONDARYTIERNAME_FIELD_NUMBER = 5; private volatile java.lang.Object secondaryTierName_; /** *
     * Name of the secondary reward tier.
     * 
* * string secondaryTierName = 5; * @return The secondaryTierName. */ @java.lang.Override public java.lang.String getSecondaryTierName() { java.lang.Object ref = secondaryTierName_; 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(); secondaryTierName_ = s; return s; } } /** *
     * Name of the secondary reward tier.
     * 
* * string secondaryTierName = 5; * @return The bytes for secondaryTierName. */ @java.lang.Override public com.google.protobuf.ByteString getSecondaryTierNameBytes() { java.lang.Object ref = secondaryTierName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secondaryTierName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALIZEDSECONDARYTIERNAME_FIELD_NUMBER = 6; private com.passkit.grpc.Localization.LocalizedString localizedSecondaryTierName_; /** *
     * Localized name of the secondary reward tier.
     * 
* * .io.LocalizedString localizedSecondaryTierName = 6; * @return Whether the localizedSecondaryTierName field is set. */ @java.lang.Override public boolean hasLocalizedSecondaryTierName() { return localizedSecondaryTierName_ != null; } /** *
     * Localized name of the secondary reward tier.
     * 
* * .io.LocalizedString localizedSecondaryTierName = 6; * @return The localizedSecondaryTierName. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedSecondaryTierName() { return localizedSecondaryTierName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSecondaryTierName_; } /** *
     * Localized name of the secondary reward tier.
     * 
* * .io.LocalizedString localizedSecondaryTierName = 6; */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSecondaryTierNameOrBuilder() { return getLocalizedSecondaryTierName(); } public static final int PROGRAMID_FIELD_NUMBER = 7; private volatile java.lang.Object programId_; /** *
     * The program id that the tier belongs to.
     * 
* * string programId = 7; * @return The programId. */ @java.lang.Override public java.lang.String getProgramId() { java.lang.Object ref = programId_; 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(); programId_ = s; return s; } } /** *
     * The program id that the tier belongs to.
     * 
* * string programId = 7; * @return The bytes for programId. */ @java.lang.Override public com.google.protobuf.ByteString getProgramIdBytes() { java.lang.Object ref = programId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); programId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSTEMPLATEID_FIELD_NUMBER = 8; private volatile java.lang.Object passTemplateId_; /** *
     * Identifier of pass template which identifies design and data elements for this tier.
     * 
* * string passTemplateId = 8; * @return The passTemplateId. */ @java.lang.Override public java.lang.String getPassTemplateId() { java.lang.Object ref = passTemplateId_; 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(); passTemplateId_ = s; return s; } } /** *
     * Identifier of pass template which identifies design and data elements for this tier.
     * 
* * string passTemplateId = 8; * @return The bytes for passTemplateId. */ @java.lang.Override public com.google.protobuf.ByteString getPassTemplateIdBytes() { java.lang.Object ref = passTemplateId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passTemplateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIERUPGRADEMESSAGE_FIELD_NUMBER = 9; private volatile java.lang.Object tierUpgradeMessage_; /** *
     * Notification to be shown when someone upgrades tier.
     * 
* * string tierUpgradeMessage = 9; * @return The tierUpgradeMessage. */ @java.lang.Override public java.lang.String getTierUpgradeMessage() { java.lang.Object ref = tierUpgradeMessage_; 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(); tierUpgradeMessage_ = s; return s; } } /** *
     * Notification to be shown when someone upgrades tier.
     * 
* * string tierUpgradeMessage = 9; * @return The bytes for tierUpgradeMessage. */ @java.lang.Override public com.google.protobuf.ByteString getTierUpgradeMessageBytes() { java.lang.Object ref = tierUpgradeMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tierUpgradeMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALIZEDTIERUPGRADEMESSAGE_FIELD_NUMBER = 10; private com.passkit.grpc.Localization.LocalizedString localizedTierUpgradeMessage_; /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; * @return Whether the localizedTierUpgradeMessage field is set. */ @java.lang.Override public boolean hasLocalizedTierUpgradeMessage() { return localizedTierUpgradeMessage_ != null; } /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; * @return The localizedTierUpgradeMessage. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedTierUpgradeMessage() { return localizedTierUpgradeMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTierUpgradeMessage_; } /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTierUpgradeMessageOrBuilder() { return getLocalizedTierUpgradeMessage(); } public static final int TIERDOWNGRADEMESSAGE_FIELD_NUMBER = 11; private volatile java.lang.Object tierDowngradeMessage_; /** *
     * Notification to be shown when someone downgrades tier.
     * 
* * string tierDowngradeMessage = 11; * @return The tierDowngradeMessage. */ @java.lang.Override public java.lang.String getTierDowngradeMessage() { java.lang.Object ref = tierDowngradeMessage_; 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(); tierDowngradeMessage_ = s; return s; } } /** *
     * Notification to be shown when someone downgrades tier.
     * 
* * string tierDowngradeMessage = 11; * @return The bytes for tierDowngradeMessage. */ @java.lang.Override public com.google.protobuf.ByteString getTierDowngradeMessageBytes() { java.lang.Object ref = tierDowngradeMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tierDowngradeMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALIZEDTIERDOWNGRADEMESSAGE_FIELD_NUMBER = 12; private com.passkit.grpc.Localization.LocalizedString localizedTierDowngradeMessage_; /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; * @return Whether the localizedTierDowngradeMessage field is set. */ @java.lang.Override public boolean hasLocalizedTierDowngradeMessage() { return localizedTierDowngradeMessage_ != null; } /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; * @return The localizedTierDowngradeMessage. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedTierDowngradeMessage() { return localizedTierDowngradeMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTierDowngradeMessage_; } /** *
     * Localized notification to be shown when someone upgrades tier.
     * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTierDowngradeMessageOrBuilder() { return getLocalizedTierDowngradeMessage(); } public static final int CREATED_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp created_; /** *
     * The date the tier was created.
     * 
* * .google.protobuf.Timestamp created = 13; * @return Whether the created field is set. */ @java.lang.Override public boolean hasCreated() { return created_ != null; } /** *
     * The date the tier was created.
     * 
* * .google.protobuf.Timestamp created = 13; * @return The created. */ @java.lang.Override public com.google.protobuf.Timestamp getCreated() { return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_; } /** *
     * The date the tier was created.
     * 
* * .google.protobuf.Timestamp created = 13; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() { return getCreated(); } public static final int UPDATED_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp updated_; /** *
     * The date the tier was updated.
     * 
* * .google.protobuf.Timestamp updated = 14; * @return Whether the updated field is set. */ @java.lang.Override public boolean hasUpdated() { return updated_ != null; } /** *
     * The date the tier was updated.
     * 
* * .google.protobuf.Timestamp updated = 14; * @return The updated. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdated() { return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_; } /** *
     * The date the tier was updated.
     * 
* * .google.protobuf.Timestamp updated = 14; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder() { return getUpdated(); } public static final int POINTSOVERDRAWN_FIELD_NUMBER = 15; private boolean pointsOverdrawn_; /** *
     * Set true to accept a negative point balance. Default is false.
     * 
* * bool pointsOverdrawn = 15; * @return The pointsOverdrawn. */ @java.lang.Override public boolean getPointsOverdrawn() { return pointsOverdrawn_; } public static final int SECONDARYPOINTSOVERDRAWN_FIELD_NUMBER = 16; private boolean secondaryPointsOverdrawn_; /** *
     * Set true to accept a negative secondary point balance. Default is false.
     * 
* * bool secondaryPointsOverdrawn = 16; * @return The secondaryPointsOverdrawn. */ @java.lang.Override public boolean getSecondaryPointsOverdrawn() { return secondaryPointsOverdrawn_; } public static final int EXPIRYSETTINGS_FIELD_NUMBER = 17; private com.passkit.grpc.Expiry.ExpirySettings expirySettings_; /** *
     * Expiry date setting. You can set expiry logic here. Default no expiry logic.
     * 
* * .io.ExpirySettings expirySettings = 17; * @return Whether the expirySettings field is set. */ @java.lang.Override public boolean hasExpirySettings() { return expirySettings_ != null; } /** *
     * Expiry date setting. You can set expiry logic here. Default no expiry logic.
     * 
* * .io.ExpirySettings expirySettings = 17; * @return The expirySettings. */ @java.lang.Override public com.passkit.grpc.Expiry.ExpirySettings getExpirySettings() { return expirySettings_ == null ? com.passkit.grpc.Expiry.ExpirySettings.getDefaultInstance() : expirySettings_; } /** *
     * Expiry date setting. You can set expiry logic here. Default no expiry logic.
     * 
* * .io.ExpirySettings expirySettings = 17; */ @java.lang.Override public com.passkit.grpc.Expiry.ExpirySettingsOrBuilder getExpirySettingsOrBuilder() { return getExpirySettings(); } public static final int TIMEZONE_FIELD_NUMBER = 18; private volatile java.lang.Object timezone_; /** *
     * Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
     * 
* * string timezone = 18; * @return The timezone. */ @java.lang.Override public java.lang.String getTimezone() { java.lang.Object ref = timezone_; 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(); timezone_ = s; return s; } } /** *
     * Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
     * 
* * string timezone = 18; * @return The bytes for timezone. */ @java.lang.Override public com.google.protobuf.ByteString getTimezoneBytes() { java.lang.Object ref = timezone_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); timezone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALLOWTIERENROLMENT_FIELD_NUMBER = 19; private com.passkit.grpc.CommonObjects.PkBool allowTierEnrolment_; /** *
     * Indicates if customers can enrol into this tier via a public web form (only for public programs).
     * 
* * .io.PkBool allowTierEnrolment = 19; * @return Whether the allowTierEnrolment field is set. */ @java.lang.Override public boolean hasAllowTierEnrolment() { return allowTierEnrolment_ != null; } /** *
     * Indicates if customers can enrol into this tier via a public web form (only for public programs).
     * 
* * .io.PkBool allowTierEnrolment = 19; * @return The allowTierEnrolment. */ @java.lang.Override public com.passkit.grpc.CommonObjects.PkBool getAllowTierEnrolment() { return allowTierEnrolment_ == null ? com.passkit.grpc.CommonObjects.PkBool.getDefaultInstance() : allowTierEnrolment_; } /** *
     * Indicates if customers can enrol into this tier via a public web form (only for public programs).
     * 
* * .io.PkBool allowTierEnrolment = 19; */ @java.lang.Override public com.passkit.grpc.CommonObjects.PkBoolOrBuilder getAllowTierEnrolmentOrBuilder() { return getAllowTierEnrolment(); } public static final int SHORTCODE_FIELD_NUMBER = 20; private volatile java.lang.Object shortCode_; /** *
     * Tier shortcode is used in public enrolment URLs, that enrol members into the tier if the program is set to public and allowTierEnrolment = true for this tier. System generated.
     * 
* * string shortCode = 20; * @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; } } /** *
     * Tier shortcode is used in public enrolment URLs, that enrol members into the tier if the program is set to public and allowTierEnrolment = true for this tier. System generated.
     * 
* * string shortCode = 20; * @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; } } 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 (tierIndex_ != 0) { output.writeUInt32(2, tierIndex_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (localizedName_ != null) { output.writeMessage(4, getLocalizedName()); } if (!getSecondaryTierNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, secondaryTierName_); } if (localizedSecondaryTierName_ != null) { output.writeMessage(6, getLocalizedSecondaryTierName()); } if (!getProgramIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, programId_); } if (!getPassTemplateIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, passTemplateId_); } if (!getTierUpgradeMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, tierUpgradeMessage_); } if (localizedTierUpgradeMessage_ != null) { output.writeMessage(10, getLocalizedTierUpgradeMessage()); } if (!getTierDowngradeMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, tierDowngradeMessage_); } if (localizedTierDowngradeMessage_ != null) { output.writeMessage(12, getLocalizedTierDowngradeMessage()); } if (created_ != null) { output.writeMessage(13, getCreated()); } if (updated_ != null) { output.writeMessage(14, getUpdated()); } if (pointsOverdrawn_ != false) { output.writeBool(15, pointsOverdrawn_); } if (secondaryPointsOverdrawn_ != false) { output.writeBool(16, secondaryPointsOverdrawn_); } if (expirySettings_ != null) { output.writeMessage(17, getExpirySettings()); } if (!getTimezoneBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, timezone_); } if (allowTierEnrolment_ != null) { output.writeMessage(19, getAllowTierEnrolment()); } if (!getShortCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, shortCode_); } 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 (tierIndex_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, tierIndex_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (localizedName_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLocalizedName()); } if (!getSecondaryTierNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, secondaryTierName_); } if (localizedSecondaryTierName_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLocalizedSecondaryTierName()); } if (!getProgramIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, programId_); } if (!getPassTemplateIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, passTemplateId_); } if (!getTierUpgradeMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, tierUpgradeMessage_); } if (localizedTierUpgradeMessage_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getLocalizedTierUpgradeMessage()); } if (!getTierDowngradeMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, tierDowngradeMessage_); } if (localizedTierDowngradeMessage_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getLocalizedTierDowngradeMessage()); } if (created_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getCreated()); } if (updated_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getUpdated()); } if (pointsOverdrawn_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, pointsOverdrawn_); } if (secondaryPointsOverdrawn_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, secondaryPointsOverdrawn_); } if (expirySettings_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getExpirySettings()); } if (!getTimezoneBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, timezone_); } if (allowTierEnrolment_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, getAllowTierEnrolment()); } if (!getShortCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, shortCode_); } 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.Members.TierOuterClass.Tier)) { return super.equals(obj); } com.passkit.grpc.Members.TierOuterClass.Tier other = (com.passkit.grpc.Members.TierOuterClass.Tier) obj; if (!getId() .equals(other.getId())) return false; if (getTierIndex() != other.getTierIndex()) return false; if (!getName() .equals(other.getName())) return false; if (hasLocalizedName() != other.hasLocalizedName()) return false; if (hasLocalizedName()) { if (!getLocalizedName() .equals(other.getLocalizedName())) return false; } if (!getSecondaryTierName() .equals(other.getSecondaryTierName())) return false; if (hasLocalizedSecondaryTierName() != other.hasLocalizedSecondaryTierName()) return false; if (hasLocalizedSecondaryTierName()) { if (!getLocalizedSecondaryTierName() .equals(other.getLocalizedSecondaryTierName())) return false; } if (!getProgramId() .equals(other.getProgramId())) return false; if (!getPassTemplateId() .equals(other.getPassTemplateId())) return false; if (!getTierUpgradeMessage() .equals(other.getTierUpgradeMessage())) return false; if (hasLocalizedTierUpgradeMessage() != other.hasLocalizedTierUpgradeMessage()) return false; if (hasLocalizedTierUpgradeMessage()) { if (!getLocalizedTierUpgradeMessage() .equals(other.getLocalizedTierUpgradeMessage())) return false; } if (!getTierDowngradeMessage() .equals(other.getTierDowngradeMessage())) return false; if (hasLocalizedTierDowngradeMessage() != other.hasLocalizedTierDowngradeMessage()) return false; if (hasLocalizedTierDowngradeMessage()) { if (!getLocalizedTierDowngradeMessage() .equals(other.getLocalizedTierDowngradeMessage())) 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 (getPointsOverdrawn() != other.getPointsOverdrawn()) return false; if (getSecondaryPointsOverdrawn() != other.getSecondaryPointsOverdrawn()) return false; if (hasExpirySettings() != other.hasExpirySettings()) return false; if (hasExpirySettings()) { if (!getExpirySettings() .equals(other.getExpirySettings())) return false; } if (!getTimezone() .equals(other.getTimezone())) return false; if (hasAllowTierEnrolment() != other.hasAllowTierEnrolment()) return false; if (hasAllowTierEnrolment()) { if (!getAllowTierEnrolment() .equals(other.getAllowTierEnrolment())) return false; } if (!getShortCode() .equals(other.getShortCode())) 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) + TIERINDEX_FIELD_NUMBER; hash = (53 * hash) + getTierIndex(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasLocalizedName()) { hash = (37 * hash) + LOCALIZEDNAME_FIELD_NUMBER; hash = (53 * hash) + getLocalizedName().hashCode(); } hash = (37 * hash) + SECONDARYTIERNAME_FIELD_NUMBER; hash = (53 * hash) + getSecondaryTierName().hashCode(); if (hasLocalizedSecondaryTierName()) { hash = (37 * hash) + LOCALIZEDSECONDARYTIERNAME_FIELD_NUMBER; hash = (53 * hash) + getLocalizedSecondaryTierName().hashCode(); } hash = (37 * hash) + PROGRAMID_FIELD_NUMBER; hash = (53 * hash) + getProgramId().hashCode(); hash = (37 * hash) + PASSTEMPLATEID_FIELD_NUMBER; hash = (53 * hash) + getPassTemplateId().hashCode(); hash = (37 * hash) + TIERUPGRADEMESSAGE_FIELD_NUMBER; hash = (53 * hash) + getTierUpgradeMessage().hashCode(); if (hasLocalizedTierUpgradeMessage()) { hash = (37 * hash) + LOCALIZEDTIERUPGRADEMESSAGE_FIELD_NUMBER; hash = (53 * hash) + getLocalizedTierUpgradeMessage().hashCode(); } hash = (37 * hash) + TIERDOWNGRADEMESSAGE_FIELD_NUMBER; hash = (53 * hash) + getTierDowngradeMessage().hashCode(); if (hasLocalizedTierDowngradeMessage()) { hash = (37 * hash) + LOCALIZEDTIERDOWNGRADEMESSAGE_FIELD_NUMBER; hash = (53 * hash) + getLocalizedTierDowngradeMessage().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) + POINTSOVERDRAWN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPointsOverdrawn()); hash = (37 * hash) + SECONDARYPOINTSOVERDRAWN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSecondaryPointsOverdrawn()); if (hasExpirySettings()) { hash = (37 * hash) + EXPIRYSETTINGS_FIELD_NUMBER; hash = (53 * hash) + getExpirySettings().hashCode(); } hash = (37 * hash) + TIMEZONE_FIELD_NUMBER; hash = (53 * hash) + getTimezone().hashCode(); if (hasAllowTierEnrolment()) { hash = (37 * hash) + ALLOWTIERENROLMENT_FIELD_NUMBER; hash = (53 * hash) + getAllowTierEnrolment().hashCode(); } hash = (37 * hash) + SHORTCODE_FIELD_NUMBER; hash = (53 * hash) + getShortCode().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Members.TierOuterClass.Tier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Members.TierOuterClass.Tier 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.Members.TierOuterClass.Tier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Members.TierOuterClass.Tier 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.Members.TierOuterClass.Tier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Members.TierOuterClass.Tier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Members.TierOuterClass.Tier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Members.TierOuterClass.Tier 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.Members.TierOuterClass.Tier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Members.TierOuterClass.Tier 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.Members.TierOuterClass.Tier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Members.TierOuterClass.Tier 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.Members.TierOuterClass.Tier 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 Tier object; will override certain details of the pass (colours, logo's, dynamic back fields, and labels).
     * 
* * Protobuf type {@code members.Tier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:members.Tier) com.passkit.grpc.Members.TierOuterClass.TierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Members.TierOuterClass.internal_static_members_Tier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Members.TierOuterClass.internal_static_members_Tier_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Members.TierOuterClass.Tier.class, com.passkit.grpc.Members.TierOuterClass.Tier.Builder.class); } // Construct using com.passkit.grpc.Members.TierOuterClass.Tier.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_ = ""; tierIndex_ = 0; name_ = ""; if (localizedNameBuilder_ == null) { localizedName_ = null; } else { localizedName_ = null; localizedNameBuilder_ = null; } secondaryTierName_ = ""; if (localizedSecondaryTierNameBuilder_ == null) { localizedSecondaryTierName_ = null; } else { localizedSecondaryTierName_ = null; localizedSecondaryTierNameBuilder_ = null; } programId_ = ""; passTemplateId_ = ""; tierUpgradeMessage_ = ""; if (localizedTierUpgradeMessageBuilder_ == null) { localizedTierUpgradeMessage_ = null; } else { localizedTierUpgradeMessage_ = null; localizedTierUpgradeMessageBuilder_ = null; } tierDowngradeMessage_ = ""; if (localizedTierDowngradeMessageBuilder_ == null) { localizedTierDowngradeMessage_ = null; } else { localizedTierDowngradeMessage_ = null; localizedTierDowngradeMessageBuilder_ = null; } if (createdBuilder_ == null) { created_ = null; } else { created_ = null; createdBuilder_ = null; } if (updatedBuilder_ == null) { updated_ = null; } else { updated_ = null; updatedBuilder_ = null; } pointsOverdrawn_ = false; secondaryPointsOverdrawn_ = false; if (expirySettingsBuilder_ == null) { expirySettings_ = null; } else { expirySettings_ = null; expirySettingsBuilder_ = null; } timezone_ = ""; if (allowTierEnrolmentBuilder_ == null) { allowTierEnrolment_ = null; } else { allowTierEnrolment_ = null; allowTierEnrolmentBuilder_ = null; } shortCode_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Members.TierOuterClass.internal_static_members_Tier_descriptor; } @java.lang.Override public com.passkit.grpc.Members.TierOuterClass.Tier getDefaultInstanceForType() { return com.passkit.grpc.Members.TierOuterClass.Tier.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Members.TierOuterClass.Tier build() { com.passkit.grpc.Members.TierOuterClass.Tier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Members.TierOuterClass.Tier buildPartial() { com.passkit.grpc.Members.TierOuterClass.Tier result = new com.passkit.grpc.Members.TierOuterClass.Tier(this); result.id_ = id_; result.tierIndex_ = tierIndex_; result.name_ = name_; if (localizedNameBuilder_ == null) { result.localizedName_ = localizedName_; } else { result.localizedName_ = localizedNameBuilder_.build(); } result.secondaryTierName_ = secondaryTierName_; if (localizedSecondaryTierNameBuilder_ == null) { result.localizedSecondaryTierName_ = localizedSecondaryTierName_; } else { result.localizedSecondaryTierName_ = localizedSecondaryTierNameBuilder_.build(); } result.programId_ = programId_; result.passTemplateId_ = passTemplateId_; result.tierUpgradeMessage_ = tierUpgradeMessage_; if (localizedTierUpgradeMessageBuilder_ == null) { result.localizedTierUpgradeMessage_ = localizedTierUpgradeMessage_; } else { result.localizedTierUpgradeMessage_ = localizedTierUpgradeMessageBuilder_.build(); } result.tierDowngradeMessage_ = tierDowngradeMessage_; if (localizedTierDowngradeMessageBuilder_ == null) { result.localizedTierDowngradeMessage_ = localizedTierDowngradeMessage_; } else { result.localizedTierDowngradeMessage_ = localizedTierDowngradeMessageBuilder_.build(); } if (createdBuilder_ == null) { result.created_ = created_; } else { result.created_ = createdBuilder_.build(); } if (updatedBuilder_ == null) { result.updated_ = updated_; } else { result.updated_ = updatedBuilder_.build(); } result.pointsOverdrawn_ = pointsOverdrawn_; result.secondaryPointsOverdrawn_ = secondaryPointsOverdrawn_; if (expirySettingsBuilder_ == null) { result.expirySettings_ = expirySettings_; } else { result.expirySettings_ = expirySettingsBuilder_.build(); } result.timezone_ = timezone_; if (allowTierEnrolmentBuilder_ == null) { result.allowTierEnrolment_ = allowTierEnrolment_; } else { result.allowTierEnrolment_ = allowTierEnrolmentBuilder_.build(); } result.shortCode_ = shortCode_; 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.Members.TierOuterClass.Tier) { return mergeFrom((com.passkit.grpc.Members.TierOuterClass.Tier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Members.TierOuterClass.Tier other) { if (other == com.passkit.grpc.Members.TierOuterClass.Tier.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.getTierIndex() != 0) { setTierIndex(other.getTierIndex()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasLocalizedName()) { mergeLocalizedName(other.getLocalizedName()); } if (!other.getSecondaryTierName().isEmpty()) { secondaryTierName_ = other.secondaryTierName_; onChanged(); } if (other.hasLocalizedSecondaryTierName()) { mergeLocalizedSecondaryTierName(other.getLocalizedSecondaryTierName()); } if (!other.getProgramId().isEmpty()) { programId_ = other.programId_; onChanged(); } if (!other.getPassTemplateId().isEmpty()) { passTemplateId_ = other.passTemplateId_; onChanged(); } if (!other.getTierUpgradeMessage().isEmpty()) { tierUpgradeMessage_ = other.tierUpgradeMessage_; onChanged(); } if (other.hasLocalizedTierUpgradeMessage()) { mergeLocalizedTierUpgradeMessage(other.getLocalizedTierUpgradeMessage()); } if (!other.getTierDowngradeMessage().isEmpty()) { tierDowngradeMessage_ = other.tierDowngradeMessage_; onChanged(); } if (other.hasLocalizedTierDowngradeMessage()) { mergeLocalizedTierDowngradeMessage(other.getLocalizedTierDowngradeMessage()); } if (other.hasCreated()) { mergeCreated(other.getCreated()); } if (other.hasUpdated()) { mergeUpdated(other.getUpdated()); } if (other.getPointsOverdrawn() != false) { setPointsOverdrawn(other.getPointsOverdrawn()); } if (other.getSecondaryPointsOverdrawn() != false) { setSecondaryPointsOverdrawn(other.getSecondaryPointsOverdrawn()); } if (other.hasExpirySettings()) { mergeExpirySettings(other.getExpirySettings()); } if (!other.getTimezone().isEmpty()) { timezone_ = other.timezone_; onChanged(); } if (other.hasAllowTierEnrolment()) { mergeAllowTierEnrolment(other.getAllowTierEnrolment()); } if (!other.getShortCode().isEmpty()) { shortCode_ = other.shortCode_; 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.Members.TierOuterClass.Tier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Members.TierOuterClass.Tier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
       * Tier identifier (could just be: blue, gold, etc); needs to be lower case. Tier ID needs to be uique within the program.
       * 
* * 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; } } /** *
       * Tier identifier (could just be: blue, gold, etc); needs to be lower case. Tier ID needs to be uique within the program.
       * 
* * 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; } } /** *
       * Tier identifier (could just be: blue, gold, etc); needs to be lower case. Tier ID needs to be uique within the program.
       * 
* * 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; } /** *
       * Tier identifier (could just be: blue, gold, etc); needs to be lower case. Tier ID needs to be uique within the program.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * Tier identifier (could just be: blue, gold, etc); needs to be lower case. Tier ID needs to be uique within the program.
       * 
* * 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 int tierIndex_ ; /** *
       * Index of the tier; can be used for managing downgrades / upgrade messaging; needs to be unique within the program.
       * 
* * uint32 tierIndex = 2; * @return The tierIndex. */ @java.lang.Override public int getTierIndex() { return tierIndex_; } /** *
       * Index of the tier; can be used for managing downgrades / upgrade messaging; needs to be unique within the program.
       * 
* * uint32 tierIndex = 2; * @param value The tierIndex to set. * @return This builder for chaining. */ public Builder setTierIndex(int value) { tierIndex_ = value; onChanged(); return this; } /** *
       * Index of the tier; can be used for managing downgrades / upgrade messaging; needs to be unique within the program.
       * 
* * uint32 tierIndex = 2; * @return This builder for chaining. */ public Builder clearTierIndex() { tierIndex_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Name of tier.
       * 
* * string name = 3; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of tier.
       * 
* * string name = 3; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of tier.
       * 
* * string name = 3; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of tier.
       * 
* * string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of tier.
       * 
* * string name = 3; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.passkit.grpc.Localization.LocalizedString localizedName_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedNameBuilder_; /** *
       * Localized name of tier.
       * 
* * .io.LocalizedString localizedName = 4; * @return Whether the localizedName field is set. */ public boolean hasLocalizedName() { return localizedNameBuilder_ != null || localizedName_ != null; } /** *
       * Localized name of tier.
       * 
* * .io.LocalizedString localizedName = 4; * @return The localizedName. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedName() { if (localizedNameBuilder_ == null) { return localizedName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedName_; } else { return localizedNameBuilder_.getMessage(); } } /** *
       * Localized name of tier.
       * 
* * .io.LocalizedString localizedName = 4; */ public Builder setLocalizedName(com.passkit.grpc.Localization.LocalizedString value) { if (localizedNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedName_ = value; onChanged(); } else { localizedNameBuilder_.setMessage(value); } return this; } /** *
       * Localized name of tier.
       * 
* * .io.LocalizedString localizedName = 4; */ public Builder setLocalizedName( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedNameBuilder_ == null) { localizedName_ = builderForValue.build(); onChanged(); } else { localizedNameBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Localized name of tier.
       * 
* * .io.LocalizedString localizedName = 4; */ public Builder mergeLocalizedName(com.passkit.grpc.Localization.LocalizedString value) { if (localizedNameBuilder_ == null) { if (localizedName_ != null) { localizedName_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedName_).mergeFrom(value).buildPartial(); } else { localizedName_ = value; } onChanged(); } else { localizedNameBuilder_.mergeFrom(value); } return this; } /** *
       * Localized name of tier.
       * 
* * .io.LocalizedString localizedName = 4; */ public Builder clearLocalizedName() { if (localizedNameBuilder_ == null) { localizedName_ = null; onChanged(); } else { localizedName_ = null; localizedNameBuilder_ = null; } return this; } /** *
       * Localized name of tier.
       * 
* * .io.LocalizedString localizedName = 4; */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedNameBuilder() { onChanged(); return getLocalizedNameFieldBuilder().getBuilder(); } /** *
       * Localized name of tier.
       * 
* * .io.LocalizedString localizedName = 4; */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedNameOrBuilder() { if (localizedNameBuilder_ != null) { return localizedNameBuilder_.getMessageOrBuilder(); } else { return localizedName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedName_; } } /** *
       * Localized name of tier.
       * 
* * .io.LocalizedString localizedName = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedNameFieldBuilder() { if (localizedNameBuilder_ == null) { localizedNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedName(), getParentForChildren(), isClean()); localizedName_ = null; } return localizedNameBuilder_; } private java.lang.Object secondaryTierName_ = ""; /** *
       * Name of the secondary reward tier.
       * 
* * string secondaryTierName = 5; * @return The secondaryTierName. */ public java.lang.String getSecondaryTierName() { java.lang.Object ref = secondaryTierName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secondaryTierName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the secondary reward tier.
       * 
* * string secondaryTierName = 5; * @return The bytes for secondaryTierName. */ public com.google.protobuf.ByteString getSecondaryTierNameBytes() { java.lang.Object ref = secondaryTierName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secondaryTierName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the secondary reward tier.
       * 
* * string secondaryTierName = 5; * @param value The secondaryTierName to set. * @return This builder for chaining. */ public Builder setSecondaryTierName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } secondaryTierName_ = value; onChanged(); return this; } /** *
       * Name of the secondary reward tier.
       * 
* * string secondaryTierName = 5; * @return This builder for chaining. */ public Builder clearSecondaryTierName() { secondaryTierName_ = getDefaultInstance().getSecondaryTierName(); onChanged(); return this; } /** *
       * Name of the secondary reward tier.
       * 
* * string secondaryTierName = 5; * @param value The bytes for secondaryTierName to set. * @return This builder for chaining. */ public Builder setSecondaryTierNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); secondaryTierName_ = value; onChanged(); return this; } private com.passkit.grpc.Localization.LocalizedString localizedSecondaryTierName_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedSecondaryTierNameBuilder_; /** *
       * Localized name of the secondary reward tier.
       * 
* * .io.LocalizedString localizedSecondaryTierName = 6; * @return Whether the localizedSecondaryTierName field is set. */ public boolean hasLocalizedSecondaryTierName() { return localizedSecondaryTierNameBuilder_ != null || localizedSecondaryTierName_ != null; } /** *
       * Localized name of the secondary reward tier.
       * 
* * .io.LocalizedString localizedSecondaryTierName = 6; * @return The localizedSecondaryTierName. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedSecondaryTierName() { if (localizedSecondaryTierNameBuilder_ == null) { return localizedSecondaryTierName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSecondaryTierName_; } else { return localizedSecondaryTierNameBuilder_.getMessage(); } } /** *
       * Localized name of the secondary reward tier.
       * 
* * .io.LocalizedString localizedSecondaryTierName = 6; */ public Builder setLocalizedSecondaryTierName(com.passkit.grpc.Localization.LocalizedString value) { if (localizedSecondaryTierNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedSecondaryTierName_ = value; onChanged(); } else { localizedSecondaryTierNameBuilder_.setMessage(value); } return this; } /** *
       * Localized name of the secondary reward tier.
       * 
* * .io.LocalizedString localizedSecondaryTierName = 6; */ public Builder setLocalizedSecondaryTierName( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedSecondaryTierNameBuilder_ == null) { localizedSecondaryTierName_ = builderForValue.build(); onChanged(); } else { localizedSecondaryTierNameBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Localized name of the secondary reward tier.
       * 
* * .io.LocalizedString localizedSecondaryTierName = 6; */ public Builder mergeLocalizedSecondaryTierName(com.passkit.grpc.Localization.LocalizedString value) { if (localizedSecondaryTierNameBuilder_ == null) { if (localizedSecondaryTierName_ != null) { localizedSecondaryTierName_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedSecondaryTierName_).mergeFrom(value).buildPartial(); } else { localizedSecondaryTierName_ = value; } onChanged(); } else { localizedSecondaryTierNameBuilder_.mergeFrom(value); } return this; } /** *
       * Localized name of the secondary reward tier.
       * 
* * .io.LocalizedString localizedSecondaryTierName = 6; */ public Builder clearLocalizedSecondaryTierName() { if (localizedSecondaryTierNameBuilder_ == null) { localizedSecondaryTierName_ = null; onChanged(); } else { localizedSecondaryTierName_ = null; localizedSecondaryTierNameBuilder_ = null; } return this; } /** *
       * Localized name of the secondary reward tier.
       * 
* * .io.LocalizedString localizedSecondaryTierName = 6; */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedSecondaryTierNameBuilder() { onChanged(); return getLocalizedSecondaryTierNameFieldBuilder().getBuilder(); } /** *
       * Localized name of the secondary reward tier.
       * 
* * .io.LocalizedString localizedSecondaryTierName = 6; */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSecondaryTierNameOrBuilder() { if (localizedSecondaryTierNameBuilder_ != null) { return localizedSecondaryTierNameBuilder_.getMessageOrBuilder(); } else { return localizedSecondaryTierName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSecondaryTierName_; } } /** *
       * Localized name of the secondary reward tier.
       * 
* * .io.LocalizedString localizedSecondaryTierName = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedSecondaryTierNameFieldBuilder() { if (localizedSecondaryTierNameBuilder_ == null) { localizedSecondaryTierNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedSecondaryTierName(), getParentForChildren(), isClean()); localizedSecondaryTierName_ = null; } return localizedSecondaryTierNameBuilder_; } private java.lang.Object programId_ = ""; /** *
       * The program id that the tier belongs to.
       * 
* * string programId = 7; * @return The programId. */ public java.lang.String getProgramId() { java.lang.Object ref = programId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); programId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The program id that the tier belongs to.
       * 
* * string programId = 7; * @return The bytes for programId. */ public com.google.protobuf.ByteString getProgramIdBytes() { java.lang.Object ref = programId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); programId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The program id that the tier belongs to.
       * 
* * string programId = 7; * @param value The programId to set. * @return This builder for chaining. */ public Builder setProgramId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } programId_ = value; onChanged(); return this; } /** *
       * The program id that the tier belongs to.
       * 
* * string programId = 7; * @return This builder for chaining. */ public Builder clearProgramId() { programId_ = getDefaultInstance().getProgramId(); onChanged(); return this; } /** *
       * The program id that the tier belongs to.
       * 
* * string programId = 7; * @param value The bytes for programId to set. * @return This builder for chaining. */ public Builder setProgramIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); programId_ = value; onChanged(); return this; } private java.lang.Object passTemplateId_ = ""; /** *
       * Identifier of pass template which identifies design and data elements for this tier.
       * 
* * string passTemplateId = 8; * @return The passTemplateId. */ public java.lang.String getPassTemplateId() { java.lang.Object ref = passTemplateId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); passTemplateId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Identifier of pass template which identifies design and data elements for this tier.
       * 
* * string passTemplateId = 8; * @return The bytes for passTemplateId. */ public com.google.protobuf.ByteString getPassTemplateIdBytes() { java.lang.Object ref = passTemplateId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passTemplateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Identifier of pass template which identifies design and data elements for this tier.
       * 
* * string passTemplateId = 8; * @param value The passTemplateId to set. * @return This builder for chaining. */ public Builder setPassTemplateId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } passTemplateId_ = value; onChanged(); return this; } /** *
       * Identifier of pass template which identifies design and data elements for this tier.
       * 
* * string passTemplateId = 8; * @return This builder for chaining. */ public Builder clearPassTemplateId() { passTemplateId_ = getDefaultInstance().getPassTemplateId(); onChanged(); return this; } /** *
       * Identifier of pass template which identifies design and data elements for this tier.
       * 
* * string passTemplateId = 8; * @param value The bytes for passTemplateId to set. * @return This builder for chaining. */ public Builder setPassTemplateIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); passTemplateId_ = value; onChanged(); return this; } private java.lang.Object tierUpgradeMessage_ = ""; /** *
       * Notification to be shown when someone upgrades tier.
       * 
* * string tierUpgradeMessage = 9; * @return The tierUpgradeMessage. */ public java.lang.String getTierUpgradeMessage() { java.lang.Object ref = tierUpgradeMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tierUpgradeMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Notification to be shown when someone upgrades tier.
       * 
* * string tierUpgradeMessage = 9; * @return The bytes for tierUpgradeMessage. */ public com.google.protobuf.ByteString getTierUpgradeMessageBytes() { java.lang.Object ref = tierUpgradeMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tierUpgradeMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Notification to be shown when someone upgrades tier.
       * 
* * string tierUpgradeMessage = 9; * @param value The tierUpgradeMessage to set. * @return This builder for chaining. */ public Builder setTierUpgradeMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tierUpgradeMessage_ = value; onChanged(); return this; } /** *
       * Notification to be shown when someone upgrades tier.
       * 
* * string tierUpgradeMessage = 9; * @return This builder for chaining. */ public Builder clearTierUpgradeMessage() { tierUpgradeMessage_ = getDefaultInstance().getTierUpgradeMessage(); onChanged(); return this; } /** *
       * Notification to be shown when someone upgrades tier.
       * 
* * string tierUpgradeMessage = 9; * @param value The bytes for tierUpgradeMessage to set. * @return This builder for chaining. */ public Builder setTierUpgradeMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tierUpgradeMessage_ = value; onChanged(); return this; } private com.passkit.grpc.Localization.LocalizedString localizedTierUpgradeMessage_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedTierUpgradeMessageBuilder_; /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; * @return Whether the localizedTierUpgradeMessage field is set. */ public boolean hasLocalizedTierUpgradeMessage() { return localizedTierUpgradeMessageBuilder_ != null || localizedTierUpgradeMessage_ != null; } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; * @return The localizedTierUpgradeMessage. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedTierUpgradeMessage() { if (localizedTierUpgradeMessageBuilder_ == null) { return localizedTierUpgradeMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTierUpgradeMessage_; } else { return localizedTierUpgradeMessageBuilder_.getMessage(); } } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; */ public Builder setLocalizedTierUpgradeMessage(com.passkit.grpc.Localization.LocalizedString value) { if (localizedTierUpgradeMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedTierUpgradeMessage_ = value; onChanged(); } else { localizedTierUpgradeMessageBuilder_.setMessage(value); } return this; } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; */ public Builder setLocalizedTierUpgradeMessage( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedTierUpgradeMessageBuilder_ == null) { localizedTierUpgradeMessage_ = builderForValue.build(); onChanged(); } else { localizedTierUpgradeMessageBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; */ public Builder mergeLocalizedTierUpgradeMessage(com.passkit.grpc.Localization.LocalizedString value) { if (localizedTierUpgradeMessageBuilder_ == null) { if (localizedTierUpgradeMessage_ != null) { localizedTierUpgradeMessage_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedTierUpgradeMessage_).mergeFrom(value).buildPartial(); } else { localizedTierUpgradeMessage_ = value; } onChanged(); } else { localizedTierUpgradeMessageBuilder_.mergeFrom(value); } return this; } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; */ public Builder clearLocalizedTierUpgradeMessage() { if (localizedTierUpgradeMessageBuilder_ == null) { localizedTierUpgradeMessage_ = null; onChanged(); } else { localizedTierUpgradeMessage_ = null; localizedTierUpgradeMessageBuilder_ = null; } return this; } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedTierUpgradeMessageBuilder() { onChanged(); return getLocalizedTierUpgradeMessageFieldBuilder().getBuilder(); } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTierUpgradeMessageOrBuilder() { if (localizedTierUpgradeMessageBuilder_ != null) { return localizedTierUpgradeMessageBuilder_.getMessageOrBuilder(); } else { return localizedTierUpgradeMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTierUpgradeMessage_; } } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierUpgradeMessage = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedTierUpgradeMessageFieldBuilder() { if (localizedTierUpgradeMessageBuilder_ == null) { localizedTierUpgradeMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedTierUpgradeMessage(), getParentForChildren(), isClean()); localizedTierUpgradeMessage_ = null; } return localizedTierUpgradeMessageBuilder_; } private java.lang.Object tierDowngradeMessage_ = ""; /** *
       * Notification to be shown when someone downgrades tier.
       * 
* * string tierDowngradeMessage = 11; * @return The tierDowngradeMessage. */ public java.lang.String getTierDowngradeMessage() { java.lang.Object ref = tierDowngradeMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tierDowngradeMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Notification to be shown when someone downgrades tier.
       * 
* * string tierDowngradeMessage = 11; * @return The bytes for tierDowngradeMessage. */ public com.google.protobuf.ByteString getTierDowngradeMessageBytes() { java.lang.Object ref = tierDowngradeMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tierDowngradeMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Notification to be shown when someone downgrades tier.
       * 
* * string tierDowngradeMessage = 11; * @param value The tierDowngradeMessage to set. * @return This builder for chaining. */ public Builder setTierDowngradeMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tierDowngradeMessage_ = value; onChanged(); return this; } /** *
       * Notification to be shown when someone downgrades tier.
       * 
* * string tierDowngradeMessage = 11; * @return This builder for chaining. */ public Builder clearTierDowngradeMessage() { tierDowngradeMessage_ = getDefaultInstance().getTierDowngradeMessage(); onChanged(); return this; } /** *
       * Notification to be shown when someone downgrades tier.
       * 
* * string tierDowngradeMessage = 11; * @param value The bytes for tierDowngradeMessage to set. * @return This builder for chaining. */ public Builder setTierDowngradeMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tierDowngradeMessage_ = value; onChanged(); return this; } private com.passkit.grpc.Localization.LocalizedString localizedTierDowngradeMessage_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedTierDowngradeMessageBuilder_; /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; * @return Whether the localizedTierDowngradeMessage field is set. */ public boolean hasLocalizedTierDowngradeMessage() { return localizedTierDowngradeMessageBuilder_ != null || localizedTierDowngradeMessage_ != null; } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; * @return The localizedTierDowngradeMessage. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedTierDowngradeMessage() { if (localizedTierDowngradeMessageBuilder_ == null) { return localizedTierDowngradeMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTierDowngradeMessage_; } else { return localizedTierDowngradeMessageBuilder_.getMessage(); } } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; */ public Builder setLocalizedTierDowngradeMessage(com.passkit.grpc.Localization.LocalizedString value) { if (localizedTierDowngradeMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedTierDowngradeMessage_ = value; onChanged(); } else { localizedTierDowngradeMessageBuilder_.setMessage(value); } return this; } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; */ public Builder setLocalizedTierDowngradeMessage( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedTierDowngradeMessageBuilder_ == null) { localizedTierDowngradeMessage_ = builderForValue.build(); onChanged(); } else { localizedTierDowngradeMessageBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; */ public Builder mergeLocalizedTierDowngradeMessage(com.passkit.grpc.Localization.LocalizedString value) { if (localizedTierDowngradeMessageBuilder_ == null) { if (localizedTierDowngradeMessage_ != null) { localizedTierDowngradeMessage_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedTierDowngradeMessage_).mergeFrom(value).buildPartial(); } else { localizedTierDowngradeMessage_ = value; } onChanged(); } else { localizedTierDowngradeMessageBuilder_.mergeFrom(value); } return this; } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; */ public Builder clearLocalizedTierDowngradeMessage() { if (localizedTierDowngradeMessageBuilder_ == null) { localizedTierDowngradeMessage_ = null; onChanged(); } else { localizedTierDowngradeMessage_ = null; localizedTierDowngradeMessageBuilder_ = null; } return this; } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedTierDowngradeMessageBuilder() { onChanged(); return getLocalizedTierDowngradeMessageFieldBuilder().getBuilder(); } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedTierDowngradeMessageOrBuilder() { if (localizedTierDowngradeMessageBuilder_ != null) { return localizedTierDowngradeMessageBuilder_.getMessageOrBuilder(); } else { return localizedTierDowngradeMessage_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedTierDowngradeMessage_; } } /** *
       * Localized notification to be shown when someone upgrades tier.
       * 
* * .io.LocalizedString localizedTierDowngradeMessage = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedTierDowngradeMessageFieldBuilder() { if (localizedTierDowngradeMessageBuilder_ == null) { localizedTierDowngradeMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedTierDowngradeMessage(), getParentForChildren(), isClean()); localizedTierDowngradeMessage_ = null; } return localizedTierDowngradeMessageBuilder_; } 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 the tier was created.
       * 
* * .google.protobuf.Timestamp created = 13; * @return Whether the created field is set. */ public boolean hasCreated() { return createdBuilder_ != null || created_ != null; } /** *
       * The date the tier was created.
       * 
* * .google.protobuf.Timestamp created = 13; * @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 the tier was created.
       * 
* * .google.protobuf.Timestamp created = 13; */ 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 the tier was created.
       * 
* * .google.protobuf.Timestamp created = 13; */ 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 the tier was created.
       * 
* * .google.protobuf.Timestamp created = 13; */ 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 the tier was created.
       * 
* * .google.protobuf.Timestamp created = 13; */ public Builder clearCreated() { if (createdBuilder_ == null) { created_ = null; onChanged(); } else { created_ = null; createdBuilder_ = null; } return this; } /** *
       * The date the tier was created.
       * 
* * .google.protobuf.Timestamp created = 13; */ public com.google.protobuf.Timestamp.Builder getCreatedBuilder() { onChanged(); return getCreatedFieldBuilder().getBuilder(); } /** *
       * The date the tier was created.
       * 
* * .google.protobuf.Timestamp created = 13; */ public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() { if (createdBuilder_ != null) { return createdBuilder_.getMessageOrBuilder(); } else { return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_; } } /** *
       * The date the tier was created.
       * 
* * .google.protobuf.Timestamp created = 13; */ 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 tier was updated.
       * 
* * .google.protobuf.Timestamp updated = 14; * @return Whether the updated field is set. */ public boolean hasUpdated() { return updatedBuilder_ != null || updated_ != null; } /** *
       * The date the tier was updated.
       * 
* * .google.protobuf.Timestamp updated = 14; * @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 tier was updated.
       * 
* * .google.protobuf.Timestamp updated = 14; */ 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 tier was updated.
       * 
* * .google.protobuf.Timestamp updated = 14; */ 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 tier was updated.
       * 
* * .google.protobuf.Timestamp updated = 14; */ 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 tier was updated.
       * 
* * .google.protobuf.Timestamp updated = 14; */ public Builder clearUpdated() { if (updatedBuilder_ == null) { updated_ = null; onChanged(); } else { updated_ = null; updatedBuilder_ = null; } return this; } /** *
       * The date the tier was updated.
       * 
* * .google.protobuf.Timestamp updated = 14; */ public com.google.protobuf.Timestamp.Builder getUpdatedBuilder() { onChanged(); return getUpdatedFieldBuilder().getBuilder(); } /** *
       * The date the tier was updated.
       * 
* * .google.protobuf.Timestamp updated = 14; */ 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 tier was updated.
       * 
* * .google.protobuf.Timestamp updated = 14; */ 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 boolean pointsOverdrawn_ ; /** *
       * Set true to accept a negative point balance. Default is false.
       * 
* * bool pointsOverdrawn = 15; * @return The pointsOverdrawn. */ @java.lang.Override public boolean getPointsOverdrawn() { return pointsOverdrawn_; } /** *
       * Set true to accept a negative point balance. Default is false.
       * 
* * bool pointsOverdrawn = 15; * @param value The pointsOverdrawn to set. * @return This builder for chaining. */ public Builder setPointsOverdrawn(boolean value) { pointsOverdrawn_ = value; onChanged(); return this; } /** *
       * Set true to accept a negative point balance. Default is false.
       * 
* * bool pointsOverdrawn = 15; * @return This builder for chaining. */ public Builder clearPointsOverdrawn() { pointsOverdrawn_ = false; onChanged(); return this; } private boolean secondaryPointsOverdrawn_ ; /** *
       * Set true to accept a negative secondary point balance. Default is false.
       * 
* * bool secondaryPointsOverdrawn = 16; * @return The secondaryPointsOverdrawn. */ @java.lang.Override public boolean getSecondaryPointsOverdrawn() { return secondaryPointsOverdrawn_; } /** *
       * Set true to accept a negative secondary point balance. Default is false.
       * 
* * bool secondaryPointsOverdrawn = 16; * @param value The secondaryPointsOverdrawn to set. * @return This builder for chaining. */ public Builder setSecondaryPointsOverdrawn(boolean value) { secondaryPointsOverdrawn_ = value; onChanged(); return this; } /** *
       * Set true to accept a negative secondary point balance. Default is false.
       * 
* * bool secondaryPointsOverdrawn = 16; * @return This builder for chaining. */ public Builder clearSecondaryPointsOverdrawn() { secondaryPointsOverdrawn_ = false; onChanged(); return this; } private com.passkit.grpc.Expiry.ExpirySettings expirySettings_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Expiry.ExpirySettings, com.passkit.grpc.Expiry.ExpirySettings.Builder, com.passkit.grpc.Expiry.ExpirySettingsOrBuilder> expirySettingsBuilder_; /** *
       * Expiry date setting. You can set expiry logic here. Default no expiry logic.
       * 
* * .io.ExpirySettings expirySettings = 17; * @return Whether the expirySettings field is set. */ public boolean hasExpirySettings() { return expirySettingsBuilder_ != null || expirySettings_ != null; } /** *
       * Expiry date setting. You can set expiry logic here. Default no expiry logic.
       * 
* * .io.ExpirySettings expirySettings = 17; * @return The expirySettings. */ public com.passkit.grpc.Expiry.ExpirySettings getExpirySettings() { if (expirySettingsBuilder_ == null) { return expirySettings_ == null ? com.passkit.grpc.Expiry.ExpirySettings.getDefaultInstance() : expirySettings_; } else { return expirySettingsBuilder_.getMessage(); } } /** *
       * Expiry date setting. You can set expiry logic here. Default no expiry logic.
       * 
* * .io.ExpirySettings expirySettings = 17; */ public Builder setExpirySettings(com.passkit.grpc.Expiry.ExpirySettings value) { if (expirySettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirySettings_ = value; onChanged(); } else { expirySettingsBuilder_.setMessage(value); } return this; } /** *
       * Expiry date setting. You can set expiry logic here. Default no expiry logic.
       * 
* * .io.ExpirySettings expirySettings = 17; */ public Builder setExpirySettings( com.passkit.grpc.Expiry.ExpirySettings.Builder builderForValue) { if (expirySettingsBuilder_ == null) { expirySettings_ = builderForValue.build(); onChanged(); } else { expirySettingsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Expiry date setting. You can set expiry logic here. Default no expiry logic.
       * 
* * .io.ExpirySettings expirySettings = 17; */ public Builder mergeExpirySettings(com.passkit.grpc.Expiry.ExpirySettings value) { if (expirySettingsBuilder_ == null) { if (expirySettings_ != null) { expirySettings_ = com.passkit.grpc.Expiry.ExpirySettings.newBuilder(expirySettings_).mergeFrom(value).buildPartial(); } else { expirySettings_ = value; } onChanged(); } else { expirySettingsBuilder_.mergeFrom(value); } return this; } /** *
       * Expiry date setting. You can set expiry logic here. Default no expiry logic.
       * 
* * .io.ExpirySettings expirySettings = 17; */ public Builder clearExpirySettings() { if (expirySettingsBuilder_ == null) { expirySettings_ = null; onChanged(); } else { expirySettings_ = null; expirySettingsBuilder_ = null; } return this; } /** *
       * Expiry date setting. You can set expiry logic here. Default no expiry logic.
       * 
* * .io.ExpirySettings expirySettings = 17; */ public com.passkit.grpc.Expiry.ExpirySettings.Builder getExpirySettingsBuilder() { onChanged(); return getExpirySettingsFieldBuilder().getBuilder(); } /** *
       * Expiry date setting. You can set expiry logic here. Default no expiry logic.
       * 
* * .io.ExpirySettings expirySettings = 17; */ public com.passkit.grpc.Expiry.ExpirySettingsOrBuilder getExpirySettingsOrBuilder() { if (expirySettingsBuilder_ != null) { return expirySettingsBuilder_.getMessageOrBuilder(); } else { return expirySettings_ == null ? com.passkit.grpc.Expiry.ExpirySettings.getDefaultInstance() : expirySettings_; } } /** *
       * Expiry date setting. You can set expiry logic here. Default no expiry logic.
       * 
* * .io.ExpirySettings expirySettings = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Expiry.ExpirySettings, com.passkit.grpc.Expiry.ExpirySettings.Builder, com.passkit.grpc.Expiry.ExpirySettingsOrBuilder> getExpirySettingsFieldBuilder() { if (expirySettingsBuilder_ == null) { expirySettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Expiry.ExpirySettings, com.passkit.grpc.Expiry.ExpirySettings.Builder, com.passkit.grpc.Expiry.ExpirySettingsOrBuilder>( getExpirySettings(), getParentForChildren(), isClean()); expirySettings_ = null; } return expirySettingsBuilder_; } private java.lang.Object timezone_ = ""; /** *
       * Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
       * 
* * string timezone = 18; * @return The timezone. */ public java.lang.String getTimezone() { java.lang.Object ref = timezone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timezone_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
       * 
* * string timezone = 18; * @return The bytes for timezone. */ public com.google.protobuf.ByteString getTimezoneBytes() { java.lang.Object ref = timezone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); timezone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
       * 
* * string timezone = 18; * @param value The timezone to set. * @return This builder for chaining. */ public Builder setTimezone( java.lang.String value) { if (value == null) { throw new NullPointerException(); } timezone_ = value; onChanged(); return this; } /** *
       * Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
       * 
* * string timezone = 18; * @return This builder for chaining. */ public Builder clearTimezone() { timezone_ = getDefaultInstance().getTimezone(); onChanged(); return this; } /** *
       * Timezone string in IANA timezone format. If not provided defaults to Etc/UTC.
       * 
* * string timezone = 18; * @param value The bytes for timezone to set. * @return This builder for chaining. */ public Builder setTimezoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timezone_ = value; onChanged(); return this; } private com.passkit.grpc.CommonObjects.PkBool allowTierEnrolment_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.PkBool, com.passkit.grpc.CommonObjects.PkBool.Builder, com.passkit.grpc.CommonObjects.PkBoolOrBuilder> allowTierEnrolmentBuilder_; /** *
       * Indicates if customers can enrol into this tier via a public web form (only for public programs).
       * 
* * .io.PkBool allowTierEnrolment = 19; * @return Whether the allowTierEnrolment field is set. */ public boolean hasAllowTierEnrolment() { return allowTierEnrolmentBuilder_ != null || allowTierEnrolment_ != null; } /** *
       * Indicates if customers can enrol into this tier via a public web form (only for public programs).
       * 
* * .io.PkBool allowTierEnrolment = 19; * @return The allowTierEnrolment. */ public com.passkit.grpc.CommonObjects.PkBool getAllowTierEnrolment() { if (allowTierEnrolmentBuilder_ == null) { return allowTierEnrolment_ == null ? com.passkit.grpc.CommonObjects.PkBool.getDefaultInstance() : allowTierEnrolment_; } else { return allowTierEnrolmentBuilder_.getMessage(); } } /** *
       * Indicates if customers can enrol into this tier via a public web form (only for public programs).
       * 
* * .io.PkBool allowTierEnrolment = 19; */ public Builder setAllowTierEnrolment(com.passkit.grpc.CommonObjects.PkBool value) { if (allowTierEnrolmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } allowTierEnrolment_ = value; onChanged(); } else { allowTierEnrolmentBuilder_.setMessage(value); } return this; } /** *
       * Indicates if customers can enrol into this tier via a public web form (only for public programs).
       * 
* * .io.PkBool allowTierEnrolment = 19; */ public Builder setAllowTierEnrolment( com.passkit.grpc.CommonObjects.PkBool.Builder builderForValue) { if (allowTierEnrolmentBuilder_ == null) { allowTierEnrolment_ = builderForValue.build(); onChanged(); } else { allowTierEnrolmentBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Indicates if customers can enrol into this tier via a public web form (only for public programs).
       * 
* * .io.PkBool allowTierEnrolment = 19; */ public Builder mergeAllowTierEnrolment(com.passkit.grpc.CommonObjects.PkBool value) { if (allowTierEnrolmentBuilder_ == null) { if (allowTierEnrolment_ != null) { allowTierEnrolment_ = com.passkit.grpc.CommonObjects.PkBool.newBuilder(allowTierEnrolment_).mergeFrom(value).buildPartial(); } else { allowTierEnrolment_ = value; } onChanged(); } else { allowTierEnrolmentBuilder_.mergeFrom(value); } return this; } /** *
       * Indicates if customers can enrol into this tier via a public web form (only for public programs).
       * 
* * .io.PkBool allowTierEnrolment = 19; */ public Builder clearAllowTierEnrolment() { if (allowTierEnrolmentBuilder_ == null) { allowTierEnrolment_ = null; onChanged(); } else { allowTierEnrolment_ = null; allowTierEnrolmentBuilder_ = null; } return this; } /** *
       * Indicates if customers can enrol into this tier via a public web form (only for public programs).
       * 
* * .io.PkBool allowTierEnrolment = 19; */ public com.passkit.grpc.CommonObjects.PkBool.Builder getAllowTierEnrolmentBuilder() { onChanged(); return getAllowTierEnrolmentFieldBuilder().getBuilder(); } /** *
       * Indicates if customers can enrol into this tier via a public web form (only for public programs).
       * 
* * .io.PkBool allowTierEnrolment = 19; */ public com.passkit.grpc.CommonObjects.PkBoolOrBuilder getAllowTierEnrolmentOrBuilder() { if (allowTierEnrolmentBuilder_ != null) { return allowTierEnrolmentBuilder_.getMessageOrBuilder(); } else { return allowTierEnrolment_ == null ? com.passkit.grpc.CommonObjects.PkBool.getDefaultInstance() : allowTierEnrolment_; } } /** *
       * Indicates if customers can enrol into this tier via a public web form (only for public programs).
       * 
* * .io.PkBool allowTierEnrolment = 19; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.PkBool, com.passkit.grpc.CommonObjects.PkBool.Builder, com.passkit.grpc.CommonObjects.PkBoolOrBuilder> getAllowTierEnrolmentFieldBuilder() { if (allowTierEnrolmentBuilder_ == null) { allowTierEnrolmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.PkBool, com.passkit.grpc.CommonObjects.PkBool.Builder, com.passkit.grpc.CommonObjects.PkBoolOrBuilder>( getAllowTierEnrolment(), getParentForChildren(), isClean()); allowTierEnrolment_ = null; } return allowTierEnrolmentBuilder_; } private java.lang.Object shortCode_ = ""; /** *
       * Tier shortcode is used in public enrolment URLs, that enrol members into the tier if the program is set to public and allowTierEnrolment = true for this tier. System generated.
       * 
* * string shortCode = 20; * @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; } } /** *
       * Tier shortcode is used in public enrolment URLs, that enrol members into the tier if the program is set to public and allowTierEnrolment = true for this tier. System generated.
       * 
* * string shortCode = 20; * @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; } } /** *
       * Tier shortcode is used in public enrolment URLs, that enrol members into the tier if the program is set to public and allowTierEnrolment = true for this tier. System generated.
       * 
* * string shortCode = 20; * @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; } /** *
       * Tier shortcode is used in public enrolment URLs, that enrol members into the tier if the program is set to public and allowTierEnrolment = true for this tier. System generated.
       * 
* * string shortCode = 20; * @return This builder for chaining. */ public Builder clearShortCode() { shortCode_ = getDefaultInstance().getShortCode(); onChanged(); return this; } /** *
       * Tier shortcode is used in public enrolment URLs, that enrol members into the tier if the program is set to public and allowTierEnrolment = true for this tier. System generated.
       * 
* * string shortCode = 20; * @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; } @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:members.Tier) } // @@protoc_insertion_point(class_scope:members.Tier) private static final com.passkit.grpc.Members.TierOuterClass.Tier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Members.TierOuterClass.Tier(); } public static com.passkit.grpc.Members.TierOuterClass.Tier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Tier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Tier(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.Members.TierOuterClass.Tier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TierRequestInputOrBuilder extends // @@protoc_insertion_point(interface_extends:members.TierRequestInput) com.google.protobuf.MessageOrBuilder { /** *
     * Program ID.
     * 
* * string programId = 1; * @return The programId. */ java.lang.String getProgramId(); /** *
     * Program ID.
     * 
* * string programId = 1; * @return The bytes for programId. */ com.google.protobuf.ByteString getProgramIdBytes(); /** *
     * Tier ID.
     * 
* * string tierId = 2; * @return The tierId. */ java.lang.String getTierId(); /** *
     * Tier ID.
     * 
* * string tierId = 2; * @return The bytes for tierId. */ com.google.protobuf.ByteString getTierIdBytes(); } /** *
   * Used to request member tier record by tier id.
   * 
* * Protobuf type {@code members.TierRequestInput} */ public static final class TierRequestInput extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:members.TierRequestInput) TierRequestInputOrBuilder { private static final long serialVersionUID = 0L; // Use TierRequestInput.newBuilder() to construct. private TierRequestInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TierRequestInput() { programId_ = ""; tierId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TierRequestInput(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TierRequestInput( 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(); programId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); tierId_ = 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.Members.TierOuterClass.internal_static_members_TierRequestInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Members.TierOuterClass.internal_static_members_TierRequestInput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Members.TierOuterClass.TierRequestInput.class, com.passkit.grpc.Members.TierOuterClass.TierRequestInput.Builder.class); } public static final int PROGRAMID_FIELD_NUMBER = 1; private volatile java.lang.Object programId_; /** *
     * Program ID.
     * 
* * string programId = 1; * @return The programId. */ @java.lang.Override public java.lang.String getProgramId() { java.lang.Object ref = programId_; 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(); programId_ = s; return s; } } /** *
     * Program ID.
     * 
* * string programId = 1; * @return The bytes for programId. */ @java.lang.Override public com.google.protobuf.ByteString getProgramIdBytes() { java.lang.Object ref = programId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); programId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIERID_FIELD_NUMBER = 2; private volatile java.lang.Object tierId_; /** *
     * Tier ID.
     * 
* * string tierId = 2; * @return The tierId. */ @java.lang.Override public java.lang.String getTierId() { java.lang.Object ref = tierId_; 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(); tierId_ = s; return s; } } /** *
     * Tier ID.
     * 
* * string tierId = 2; * @return The bytes for tierId. */ @java.lang.Override public com.google.protobuf.ByteString getTierIdBytes() { java.lang.Object ref = tierId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tierId_ = 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 (!getProgramIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, programId_); } if (!getTierIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tierId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getProgramIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, programId_); } if (!getTierIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tierId_); } 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.Members.TierOuterClass.TierRequestInput)) { return super.equals(obj); } com.passkit.grpc.Members.TierOuterClass.TierRequestInput other = (com.passkit.grpc.Members.TierOuterClass.TierRequestInput) obj; if (!getProgramId() .equals(other.getProgramId())) return false; if (!getTierId() .equals(other.getTierId())) 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) + PROGRAMID_FIELD_NUMBER; hash = (53 * hash) + getProgramId().hashCode(); hash = (37 * hash) + TIERID_FIELD_NUMBER; hash = (53 * hash) + getTierId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Members.TierOuterClass.TierRequestInput parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Members.TierOuterClass.TierRequestInput 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.Members.TierOuterClass.TierRequestInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Members.TierOuterClass.TierRequestInput 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.Members.TierOuterClass.TierRequestInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Members.TierOuterClass.TierRequestInput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Members.TierOuterClass.TierRequestInput parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Members.TierOuterClass.TierRequestInput 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.Members.TierOuterClass.TierRequestInput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Members.TierOuterClass.TierRequestInput 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.Members.TierOuterClass.TierRequestInput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Members.TierOuterClass.TierRequestInput 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.Members.TierOuterClass.TierRequestInput 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; } /** *
     * Used to request member tier record by tier id.
     * 
* * Protobuf type {@code members.TierRequestInput} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:members.TierRequestInput) com.passkit.grpc.Members.TierOuterClass.TierRequestInputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Members.TierOuterClass.internal_static_members_TierRequestInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Members.TierOuterClass.internal_static_members_TierRequestInput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Members.TierOuterClass.TierRequestInput.class, com.passkit.grpc.Members.TierOuterClass.TierRequestInput.Builder.class); } // Construct using com.passkit.grpc.Members.TierOuterClass.TierRequestInput.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(); programId_ = ""; tierId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Members.TierOuterClass.internal_static_members_TierRequestInput_descriptor; } @java.lang.Override public com.passkit.grpc.Members.TierOuterClass.TierRequestInput getDefaultInstanceForType() { return com.passkit.grpc.Members.TierOuterClass.TierRequestInput.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Members.TierOuterClass.TierRequestInput build() { com.passkit.grpc.Members.TierOuterClass.TierRequestInput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Members.TierOuterClass.TierRequestInput buildPartial() { com.passkit.grpc.Members.TierOuterClass.TierRequestInput result = new com.passkit.grpc.Members.TierOuterClass.TierRequestInput(this); result.programId_ = programId_; result.tierId_ = tierId_; 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.Members.TierOuterClass.TierRequestInput) { return mergeFrom((com.passkit.grpc.Members.TierOuterClass.TierRequestInput)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Members.TierOuterClass.TierRequestInput other) { if (other == com.passkit.grpc.Members.TierOuterClass.TierRequestInput.getDefaultInstance()) return this; if (!other.getProgramId().isEmpty()) { programId_ = other.programId_; onChanged(); } if (!other.getTierId().isEmpty()) { tierId_ = other.tierId_; 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.Members.TierOuterClass.TierRequestInput parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Members.TierOuterClass.TierRequestInput) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object programId_ = ""; /** *
       * Program ID.
       * 
* * string programId = 1; * @return The programId. */ public java.lang.String getProgramId() { java.lang.Object ref = programId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); programId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Program ID.
       * 
* * string programId = 1; * @return The bytes for programId. */ public com.google.protobuf.ByteString getProgramIdBytes() { java.lang.Object ref = programId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); programId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Program ID.
       * 
* * string programId = 1; * @param value The programId to set. * @return This builder for chaining. */ public Builder setProgramId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } programId_ = value; onChanged(); return this; } /** *
       * Program ID.
       * 
* * string programId = 1; * @return This builder for chaining. */ public Builder clearProgramId() { programId_ = getDefaultInstance().getProgramId(); onChanged(); return this; } /** *
       * Program ID.
       * 
* * string programId = 1; * @param value The bytes for programId to set. * @return This builder for chaining. */ public Builder setProgramIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); programId_ = value; onChanged(); return this; } private java.lang.Object tierId_ = ""; /** *
       * Tier ID.
       * 
* * string tierId = 2; * @return The tierId. */ public java.lang.String getTierId() { java.lang.Object ref = tierId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tierId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Tier ID.
       * 
* * string tierId = 2; * @return The bytes for tierId. */ public com.google.protobuf.ByteString getTierIdBytes() { java.lang.Object ref = tierId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tierId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Tier ID.
       * 
* * string tierId = 2; * @param value The tierId to set. * @return This builder for chaining. */ public Builder setTierId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tierId_ = value; onChanged(); return this; } /** *
       * Tier ID.
       * 
* * string tierId = 2; * @return This builder for chaining. */ public Builder clearTierId() { tierId_ = getDefaultInstance().getTierId(); onChanged(); return this; } /** *
       * Tier ID.
       * 
* * string tierId = 2; * @param value The bytes for tierId to set. * @return This builder for chaining. */ public Builder setTierIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tierId_ = 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:members.TierRequestInput) } // @@protoc_insertion_point(class_scope:members.TierRequestInput) private static final com.passkit.grpc.Members.TierOuterClass.TierRequestInput DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Members.TierOuterClass.TierRequestInput(); } public static com.passkit.grpc.Members.TierOuterClass.TierRequestInput getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TierRequestInput parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TierRequestInput(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.Members.TierOuterClass.TierRequestInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_members_Tier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_members_Tier_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_members_TierRequestInput_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_members_TierRequestInput_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\024io/member/tier.proto\022\007members\032\037google/" + "protobuf/timestamp.proto\032.protoc-gen-ope" + "napiv2/options/annotations.proto\032\034io/com" + "mon/localization.proto\032\036io/common/common" + "_objects.proto\032\026io/common/expiry.proto\"\243" + "\006\n\004Tier\022\n\n\002id\030\001 \001(\t\022\021\n\ttierIndex\030\002 \001(\r\022\014" + "\n\004name\030\003 \001(\t\022*\n\rlocalizedName\030\004 \001(\0132\023.io" + ".LocalizedString\022\031\n\021secondaryTierName\030\005 " + "\001(\t\0227\n\032localizedSecondaryTierName\030\006 \001(\0132" + "\023.io.LocalizedString\022\021\n\tprogramId\030\007 \001(\t\022" + "\026\n\016passTemplateId\030\010 \001(\t\022\032\n\022tierUpgradeMe" + "ssage\030\t \001(\t\0228\n\033localizedTierUpgradeMessa" + "ge\030\n \001(\0132\023.io.LocalizedString\022\034\n\024tierDow" + "ngradeMessage\030\013 \001(\t\022:\n\035localizedTierDown" + "gradeMessage\030\014 \001(\0132\023.io.LocalizedString\022" + "+\n\007created\030\r \001(\0132\032.google.protobuf.Times" + "tamp\022+\n\007updated\030\016 \001(\0132\032.google.protobuf." + "Timestamp\022\027\n\017pointsOverdrawn\030\017 \001(\010\022 \n\030se" + "condaryPointsOverdrawn\030\020 \001(\010\022*\n\016expirySe" + "ttings\030\021 \001(\0132\022.io.ExpirySettings\022\020\n\010time" + "zone\030\022 \001(\t\022&\n\022allowTierEnrolment\030\023 \001(\0132\n" + ".io.PkBool\022\021\n\tshortCode\030\024 \001(\t:\204\001\222A\200\001\n~*\004" + "Tier2ATier allows a company to override " + "certain details in the program.\322\001\002id\322\001\tt" + "ierIndex\322\001\tprogramId\322\001\004name\322\001\016passTempla" + "teId\"5\n\020TierRequestInput\022\021\n\tprogramId\030\001 " + "\001(\t\022\016\n\006tierId\030\002 \001(\tB_\n\030com.passkit.grpc." + "MembersZ,stash.passkit.com/io/model/sdk/" + "go/io/members\252\002\024PassKit.Grpc.Membersb\006pr" + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(), com.passkit.grpc.Localization.getDescriptor(), com.passkit.grpc.CommonObjects.getDescriptor(), com.passkit.grpc.Expiry.getDescriptor(), }); internal_static_members_Tier_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_members_Tier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_members_Tier_descriptor, new java.lang.String[] { "Id", "TierIndex", "Name", "LocalizedName", "SecondaryTierName", "LocalizedSecondaryTierName", "ProgramId", "PassTemplateId", "TierUpgradeMessage", "LocalizedTierUpgradeMessage", "TierDowngradeMessage", "LocalizedTierDowngradeMessage", "Created", "Updated", "PointsOverdrawn", "SecondaryPointsOverdrawn", "ExpirySettings", "Timezone", "AllowTierEnrolment", "ShortCode", }); internal_static_members_TierRequestInput_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_members_TierRequestInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_members_TierRequestInput_descriptor, new java.lang.String[] { "ProgramId", "TierId", }); 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(); grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(); com.passkit.grpc.Localization.getDescriptor(); com.passkit.grpc.CommonObjects.getDescriptor(); com.passkit.grpc.Expiry.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy