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

com.passkit.grpc.Integration 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/common/integration.proto

package com.passkit.grpc;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Turn on and off the integration.
   * 
* * Protobuf enum {@code io.IntegrationStatus} */ public enum IntegrationStatus implements com.google.protobuf.ProtocolMessageEnum { /** * INTEGRATION_STATUS_NONE = 0; */ INTEGRATION_STATUS_NONE(0), /** *
     * Turn off the integration.
     * 
* * INTEGRATION_DISABLED = 1; */ INTEGRATION_DISABLED(1), /** *
     * Turn on the integration.
     * 
* * INTEGRATION_ACTIVE = 2; */ INTEGRATION_ACTIVE(2), /** *
     * The status assigned by PassKit when the account or record is not satisfying the requirements to conduct integration process.
     * 
* * INTEGRATION_SUSPENDED = 3; */ INTEGRATION_SUSPENDED(3), UNRECOGNIZED(-1), ; /** * INTEGRATION_STATUS_NONE = 0; */ public static final int INTEGRATION_STATUS_NONE_VALUE = 0; /** *
     * Turn off the integration.
     * 
* * INTEGRATION_DISABLED = 1; */ public static final int INTEGRATION_DISABLED_VALUE = 1; /** *
     * Turn on the integration.
     * 
* * INTEGRATION_ACTIVE = 2; */ public static final int INTEGRATION_ACTIVE_VALUE = 2; /** *
     * The status assigned by PassKit when the account or record is not satisfying the requirements to conduct integration process.
     * 
* * INTEGRATION_SUSPENDED = 3; */ public static final int INTEGRATION_SUSPENDED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static IntegrationStatus valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static IntegrationStatus forNumber(int value) { switch (value) { case 0: return INTEGRATION_STATUS_NONE; case 1: return INTEGRATION_DISABLED; case 2: return INTEGRATION_ACTIVE; case 3: return INTEGRATION_SUSPENDED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< IntegrationStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public IntegrationStatus findValueByNumber(int number) { return IntegrationStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.passkit.grpc.Integration.getDescriptor().getEnumTypes().get(0); } private static final IntegrationStatus[] VALUES = values(); public static IntegrationStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private IntegrationStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.IntegrationStatus) } /** *
   * Configuration of the third party app which can be integrated with PassKit.
   * 
* * Protobuf enum {@code io.ConfigurationType} */ public enum ConfigurationType implements com.google.protobuf.ProtocolMessageEnum { /** * CONFIGURATION_NONE = 0; */ CONFIGURATION_NONE(0), /** * WEBHOOK = 1; */ WEBHOOK(1), /** * DB_MYSQL = 2; */ DB_MYSQL(2), /** * ZOHO = 3; */ ZOHO(3), /** * BRAZE = 4; */ BRAZE(4), /** * CODEREADR = 5; */ CODEREADR(5), /** * ZAPIER = 6; */ ZAPIER(6), /** * _CONFIG_TYPE_1 = 100; */ _CONFIG_TYPE_1(100), UNRECOGNIZED(-1), ; /** * CONFIGURATION_NONE = 0; */ public static final int CONFIGURATION_NONE_VALUE = 0; /** * WEBHOOK = 1; */ public static final int WEBHOOK_VALUE = 1; /** * DB_MYSQL = 2; */ public static final int DB_MYSQL_VALUE = 2; /** * ZOHO = 3; */ public static final int ZOHO_VALUE = 3; /** * BRAZE = 4; */ public static final int BRAZE_VALUE = 4; /** * CODEREADR = 5; */ public static final int CODEREADR_VALUE = 5; /** * ZAPIER = 6; */ public static final int ZAPIER_VALUE = 6; /** * _CONFIG_TYPE_1 = 100; */ public static final int _CONFIG_TYPE_1_VALUE = 100; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ConfigurationType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ConfigurationType forNumber(int value) { switch (value) { case 0: return CONFIGURATION_NONE; case 1: return WEBHOOK; case 2: return DB_MYSQL; case 3: return ZOHO; case 4: return BRAZE; case 5: return CODEREADR; case 6: return ZAPIER; case 100: return _CONFIG_TYPE_1; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ConfigurationType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ConfigurationType findValueByNumber(int number) { return ConfigurationType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.passkit.grpc.Integration.getDescriptor().getEnumTypes().get(1); } private static final ConfigurationType[] VALUES = values(); public static ConfigurationType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ConfigurationType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.ConfigurationType) } /** *
   * IntegrationType allows to select the timing of integration occurs and the order of data processing.
   * 
* * Protobuf enum {@code io.IntegrationType} */ public enum IntegrationType implements com.google.protobuf.ProtocolMessageEnum { /** * INTEGRATION_TYPE_NONE = 0; */ INTEGRATION_TYPE_NONE(0), /** *
     * Trigger event occurs on a third party platform which triggers action (chain of events) inside the PassKit. E.g. Database update triggers PassKit to issue a pass.
     * 
* * SOURCE_INTEGRATION = 1; */ SOURCE_INTEGRATION(1), /** *
     * Pass holder data is processed by a third party application first then its outcome and original data are stored in PassKit.
     * 
* * HOOK_BEFORE_OBJECT_RECORD_CREATION = 4; */ HOOK_BEFORE_OBJECT_RECORD_CREATION(4), /** *
     * A hook event occurs after pass holder's data is created on PassKit.
     * 
* * HOOK_AFTER_OBJECT_RECORD_CREATION = 8; */ HOOK_AFTER_OBJECT_RECORD_CREATION(8), /** *
     * A hook event occurs after pass holder record creation and before pass issue.
     * 
* * HOOK_BEFORE_PASS_ISSUE = 16; */ HOOK_BEFORE_PASS_ISSUE(16), /** *
     * A hook event occurs after pass issue.
     * 
* * HOOK_AFTER_PASS_ISSUE = 32; */ HOOK_AFTER_PASS_ISSUE(32), /** *
     * A hook event occurs after pass has been installed on mobile.
     * 
* * HOOK_AFTER_PASS_INSTALL = 64; */ HOOK_AFTER_PASS_INSTALL(64), /** *
     * A hook event occurs after pass has been uninstalled from mobile.
     * 
* * HOOK_AFTER_PASS_UNINSTALL = 128; */ HOOK_AFTER_PASS_UNINSTALL(128), /** *
     * A hook event occurs before pass holder's record is updated on PassKit.
     * 
* * HOOK_BEFORE_OBJECT_RECORD_UPDATE = 256; */ HOOK_BEFORE_OBJECT_RECORD_UPDATE(256), /** *
     * A hook event occurs after pass holder's record is updated on PassKit.
     * 
* * HOOK_AFTER_OBJECT_RECORD_UPDATE = 512; */ HOOK_AFTER_OBJECT_RECORD_UPDATE(512), /** *
     * A hook event occurs before the pass is updated. This includes changes in dynamic information (e.g. displayName), generic information (e.g. links, legal disclaimer), pass design (e.g. background color).
     * 
* * HOOK_BEFORE_PASS_RECORD_UPDATE = 1024; */ HOOK_BEFORE_PASS_RECORD_UPDATE(1024), /** *
     * A hook event occurs after the pass is updated. This includes changes in dynamic information (e.g. displayName), generic information (e.g. links, legal disclaimer), pass design (e.g. background color).
     * 
* * HOOK_AFTER_PASS_RECORD_UPDATE = 2048; */ HOOK_AFTER_PASS_RECORD_UPDATE(2048), /** *
     * A hook event occurs before the information on the pass is updated.
     * 
* * HOOK_BEFORE_PASS_UPDATE = 4096; */ HOOK_BEFORE_PASS_UPDATE(4096), /** *
     * A hook event occurs after the information on the pass is updated.
     * 
* * HOOK_AFTER_PASS_UPDATE = 8192; */ HOOK_AFTER_PASS_UPDATE(8192), /** *
     * A hook event occurs before a pass is deleted.
     * 
* * HOOK_BEFORE_PASS_RECORD_DELETE = 16384; */ HOOK_BEFORE_PASS_RECORD_DELETE(16384), /** *
     * A hook event occurs after a pass is deleted.
     * 
* * HOOK_AFTER_PASS_RECORD_DELETE = 32768; */ HOOK_AFTER_PASS_RECORD_DELETE(32768), UNRECOGNIZED(-1), ; /** * INTEGRATION_TYPE_NONE = 0; */ public static final int INTEGRATION_TYPE_NONE_VALUE = 0; /** *
     * Trigger event occurs on a third party platform which triggers action (chain of events) inside the PassKit. E.g. Database update triggers PassKit to issue a pass.
     * 
* * SOURCE_INTEGRATION = 1; */ public static final int SOURCE_INTEGRATION_VALUE = 1; /** *
     * Pass holder data is processed by a third party application first then its outcome and original data are stored in PassKit.
     * 
* * HOOK_BEFORE_OBJECT_RECORD_CREATION = 4; */ public static final int HOOK_BEFORE_OBJECT_RECORD_CREATION_VALUE = 4; /** *
     * A hook event occurs after pass holder's data is created on PassKit.
     * 
* * HOOK_AFTER_OBJECT_RECORD_CREATION = 8; */ public static final int HOOK_AFTER_OBJECT_RECORD_CREATION_VALUE = 8; /** *
     * A hook event occurs after pass holder record creation and before pass issue.
     * 
* * HOOK_BEFORE_PASS_ISSUE = 16; */ public static final int HOOK_BEFORE_PASS_ISSUE_VALUE = 16; /** *
     * A hook event occurs after pass issue.
     * 
* * HOOK_AFTER_PASS_ISSUE = 32; */ public static final int HOOK_AFTER_PASS_ISSUE_VALUE = 32; /** *
     * A hook event occurs after pass has been installed on mobile.
     * 
* * HOOK_AFTER_PASS_INSTALL = 64; */ public static final int HOOK_AFTER_PASS_INSTALL_VALUE = 64; /** *
     * A hook event occurs after pass has been uninstalled from mobile.
     * 
* * HOOK_AFTER_PASS_UNINSTALL = 128; */ public static final int HOOK_AFTER_PASS_UNINSTALL_VALUE = 128; /** *
     * A hook event occurs before pass holder's record is updated on PassKit.
     * 
* * HOOK_BEFORE_OBJECT_RECORD_UPDATE = 256; */ public static final int HOOK_BEFORE_OBJECT_RECORD_UPDATE_VALUE = 256; /** *
     * A hook event occurs after pass holder's record is updated on PassKit.
     * 
* * HOOK_AFTER_OBJECT_RECORD_UPDATE = 512; */ public static final int HOOK_AFTER_OBJECT_RECORD_UPDATE_VALUE = 512; /** *
     * A hook event occurs before the pass is updated. This includes changes in dynamic information (e.g. displayName), generic information (e.g. links, legal disclaimer), pass design (e.g. background color).
     * 
* * HOOK_BEFORE_PASS_RECORD_UPDATE = 1024; */ public static final int HOOK_BEFORE_PASS_RECORD_UPDATE_VALUE = 1024; /** *
     * A hook event occurs after the pass is updated. This includes changes in dynamic information (e.g. displayName), generic information (e.g. links, legal disclaimer), pass design (e.g. background color).
     * 
* * HOOK_AFTER_PASS_RECORD_UPDATE = 2048; */ public static final int HOOK_AFTER_PASS_RECORD_UPDATE_VALUE = 2048; /** *
     * A hook event occurs before the information on the pass is updated.
     * 
* * HOOK_BEFORE_PASS_UPDATE = 4096; */ public static final int HOOK_BEFORE_PASS_UPDATE_VALUE = 4096; /** *
     * A hook event occurs after the information on the pass is updated.
     * 
* * HOOK_AFTER_PASS_UPDATE = 8192; */ public static final int HOOK_AFTER_PASS_UPDATE_VALUE = 8192; /** *
     * A hook event occurs before a pass is deleted.
     * 
* * HOOK_BEFORE_PASS_RECORD_DELETE = 16384; */ public static final int HOOK_BEFORE_PASS_RECORD_DELETE_VALUE = 16384; /** *
     * A hook event occurs after a pass is deleted.
     * 
* * HOOK_AFTER_PASS_RECORD_DELETE = 32768; */ public static final int HOOK_AFTER_PASS_RECORD_DELETE_VALUE = 32768; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static IntegrationType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static IntegrationType forNumber(int value) { switch (value) { case 0: return INTEGRATION_TYPE_NONE; case 1: return SOURCE_INTEGRATION; case 4: return HOOK_BEFORE_OBJECT_RECORD_CREATION; case 8: return HOOK_AFTER_OBJECT_RECORD_CREATION; case 16: return HOOK_BEFORE_PASS_ISSUE; case 32: return HOOK_AFTER_PASS_ISSUE; case 64: return HOOK_AFTER_PASS_INSTALL; case 128: return HOOK_AFTER_PASS_UNINSTALL; case 256: return HOOK_BEFORE_OBJECT_RECORD_UPDATE; case 512: return HOOK_AFTER_OBJECT_RECORD_UPDATE; case 1024: return HOOK_BEFORE_PASS_RECORD_UPDATE; case 2048: return HOOK_AFTER_PASS_RECORD_UPDATE; case 4096: return HOOK_BEFORE_PASS_UPDATE; case 8192: return HOOK_AFTER_PASS_UPDATE; case 16384: return HOOK_BEFORE_PASS_RECORD_DELETE; case 32768: return HOOK_AFTER_PASS_RECORD_DELETE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< IntegrationType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public IntegrationType findValueByNumber(int number) { return IntegrationType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.passkit.grpc.Integration.getDescriptor().getEnumTypes().get(2); } private static final IntegrationType[] VALUES = values(); public static IntegrationType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private IntegrationType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.IntegrationType) } /** *
   * Name of pass event the third part app can subscribe to.
   * 
* * Protobuf enum {@code io.PassEventId} */ public enum PassEventId implements com.google.protobuf.ProtocolMessageEnum { /** *
     * The pass payload will not be sent.
     * 
* * PASS_EVENT_NONE = 0; */ PASS_EVENT_NONE(0), /** *
     * The pass payload will be sent to destination when pass record is created and issued.
     * 
* * PASS_EVENT_RECORD_CREATED = 1; */ PASS_EVENT_RECORD_CREATED(1), /** *
     * The pass payload will be sent to destination when pass is installed on a mobile device.
     * 
* * PASS_EVENT_INSTALLED = 2; */ PASS_EVENT_INSTALLED(2), /** *
     * The pass payload will be sent to destination when pass record or contents have been updated.
     * 
* * PASS_EVENT_RECORD_UPDATED = 4; */ PASS_EVENT_RECORD_UPDATED(4), /** *
     * The pass payload will be sent to destination when pass is uninstalled from a mobile device.
     * 
* * PASS_EVENT_UNINSTALLED = 8; */ PASS_EVENT_UNINSTALLED(8), /** *
     * The pass payload will be sent to destination when pass is invalidated or expired. When pass is invalidated or expired, a pass will lose its barcode and pass content cannot be updated anymore.
     * 
* * PASS_EVENT_INVALIDATED = 16; */ PASS_EVENT_INVALIDATED(16), /** *
     * The pass payload will be sent to destination when pass record is deleted from the PassKit database.
     * 
* * PASS_EVENT_RECORD_DELETED = 32; */ PASS_EVENT_RECORD_DELETED(32), UNRECOGNIZED(-1), ; /** *
     * The pass payload will not be sent.
     * 
* * PASS_EVENT_NONE = 0; */ public static final int PASS_EVENT_NONE_VALUE = 0; /** *
     * The pass payload will be sent to destination when pass record is created and issued.
     * 
* * PASS_EVENT_RECORD_CREATED = 1; */ public static final int PASS_EVENT_RECORD_CREATED_VALUE = 1; /** *
     * The pass payload will be sent to destination when pass is installed on a mobile device.
     * 
* * PASS_EVENT_INSTALLED = 2; */ public static final int PASS_EVENT_INSTALLED_VALUE = 2; /** *
     * The pass payload will be sent to destination when pass record or contents have been updated.
     * 
* * PASS_EVENT_RECORD_UPDATED = 4; */ public static final int PASS_EVENT_RECORD_UPDATED_VALUE = 4; /** *
     * The pass payload will be sent to destination when pass is uninstalled from a mobile device.
     * 
* * PASS_EVENT_UNINSTALLED = 8; */ public static final int PASS_EVENT_UNINSTALLED_VALUE = 8; /** *
     * The pass payload will be sent to destination when pass is invalidated or expired. When pass is invalidated or expired, a pass will lose its barcode and pass content cannot be updated anymore.
     * 
* * PASS_EVENT_INVALIDATED = 16; */ public static final int PASS_EVENT_INVALIDATED_VALUE = 16; /** *
     * The pass payload will be sent to destination when pass record is deleted from the PassKit database.
     * 
* * PASS_EVENT_RECORD_DELETED = 32; */ public static final int PASS_EVENT_RECORD_DELETED_VALUE = 32; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PassEventId valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static PassEventId forNumber(int value) { switch (value) { case 0: return PASS_EVENT_NONE; case 1: return PASS_EVENT_RECORD_CREATED; case 2: return PASS_EVENT_INSTALLED; case 4: return PASS_EVENT_RECORD_UPDATED; case 8: return PASS_EVENT_UNINSTALLED; case 16: return PASS_EVENT_INVALIDATED; case 32: return PASS_EVENT_RECORD_DELETED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PassEventId> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PassEventId findValueByNumber(int number) { return PassEventId.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.passkit.grpc.Integration.getDescriptor().getEnumTypes().get(3); } private static final PassEventId[] VALUES = values(); public static PassEventId valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private PassEventId(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.PassEventId) } /** *
   * Protocol specific events for the Membership protocol.
   * 
* * Protobuf enum {@code io.MembershipEventId} */ public enum MembershipEventId implements com.google.protobuf.ProtocolMessageEnum { /** * MEMBER_EVENT_NONE = 0; */ MEMBER_EVENT_NONE(0), /** *
     * The member payload will be sent to destination when member record is created.
     * 
* * MEMBER_EVENT_ENROLLED = 1; */ MEMBER_EVENT_ENROLLED(1), /** *
     * The member payload will be sent to destination when any of member field is updated.
     * 
* * MEMBER_EVENT_UPDATED = 2; */ MEMBER_EVENT_UPDATED(2), UNRECOGNIZED(-1), ; /** * MEMBER_EVENT_NONE = 0; */ public static final int MEMBER_EVENT_NONE_VALUE = 0; /** *
     * The member payload will be sent to destination when member record is created.
     * 
* * MEMBER_EVENT_ENROLLED = 1; */ public static final int MEMBER_EVENT_ENROLLED_VALUE = 1; /** *
     * The member payload will be sent to destination when any of member field is updated.
     * 
* * MEMBER_EVENT_UPDATED = 2; */ public static final int MEMBER_EVENT_UPDATED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MembershipEventId valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static MembershipEventId forNumber(int value) { switch (value) { case 0: return MEMBER_EVENT_NONE; case 1: return MEMBER_EVENT_ENROLLED; case 2: return MEMBER_EVENT_UPDATED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< MembershipEventId> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MembershipEventId findValueByNumber(int number) { return MembershipEventId.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.passkit.grpc.Integration.getDescriptor().getEnumTypes().get(4); } private static final MembershipEventId[] VALUES = values(); public static MembershipEventId valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private MembershipEventId(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.MembershipEventId) } /** *
   * Protocol specific events for the Single Use Coupon protocol.
   * 
* * Protobuf enum {@code io.CouponEventId} */ public enum CouponEventId implements com.google.protobuf.ProtocolMessageEnum { /** * COUPON_EVENT_NONE = 0; */ COUPON_EVENT_NONE(0), /** *
     * Triggered when coupon is issued.
     * 
* * COUPON_EVENT_CREATED = 1; */ COUPON_EVENT_CREATED(1), /** *
     * Triggered when coupon is redeemed.
     * 
* * COUPON_EVENT_REDEEMED = 2; */ COUPON_EVENT_REDEEMED(2), /** *
     * Triggered when any of coupon field is updated.
     * 
* * COUPON_EVENT_UPDATED = 4; */ COUPON_EVENT_UPDATED(4), /** *
     * Triggered when coupon record is deleted.
     * 
* * COUPON_EVENT_DELETED = 8; */ COUPON_EVENT_DELETED(8), UNRECOGNIZED(-1), ; /** * COUPON_EVENT_NONE = 0; */ public static final int COUPON_EVENT_NONE_VALUE = 0; /** *
     * Triggered when coupon is issued.
     * 
* * COUPON_EVENT_CREATED = 1; */ public static final int COUPON_EVENT_CREATED_VALUE = 1; /** *
     * Triggered when coupon is redeemed.
     * 
* * COUPON_EVENT_REDEEMED = 2; */ public static final int COUPON_EVENT_REDEEMED_VALUE = 2; /** *
     * Triggered when any of coupon field is updated.
     * 
* * COUPON_EVENT_UPDATED = 4; */ public static final int COUPON_EVENT_UPDATED_VALUE = 4; /** *
     * Triggered when coupon record is deleted.
     * 
* * COUPON_EVENT_DELETED = 8; */ public static final int COUPON_EVENT_DELETED_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CouponEventId valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static CouponEventId forNumber(int value) { switch (value) { case 0: return COUPON_EVENT_NONE; case 1: return COUPON_EVENT_CREATED; case 2: return COUPON_EVENT_REDEEMED; case 4: return COUPON_EVENT_UPDATED; case 8: return COUPON_EVENT_DELETED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CouponEventId> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CouponEventId findValueByNumber(int number) { return CouponEventId.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.passkit.grpc.Integration.getDescriptor().getEnumTypes().get(5); } private static final CouponEventId[] VALUES = values(); public static CouponEventId valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private CouponEventId(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.CouponEventId) } /** *
   * Action method is an api call method (post, put, delete) used when data get integrated with the third party application.
   * This enum will be useful if topic is not directly produced by debezium and want to know the original debezium event operation.
   * 
* * Protobuf enum {@code io.ActionMethod} */ public enum ActionMethod implements com.google.protobuf.ProtocolMessageEnum { /** * METHOD_NONE = 0; */ METHOD_NONE(0), /** *
     * Invokes POST request to create a record the third party app.
     * 
* * METHOD_POST = 1; */ METHOD_POST(1), /** *
     * Invokes PUT request to update existing record on the third party app.
     * 
* * METHOD_PUT = 2; */ METHOD_PUT(2), /** *
     * Invokes DELETE request to delete existing record on the third party app.
     * 
* * METHOD_DELETE = 3; */ METHOD_DELETE(3), UNRECOGNIZED(-1), ; /** * METHOD_NONE = 0; */ public static final int METHOD_NONE_VALUE = 0; /** *
     * Invokes POST request to create a record the third party app.
     * 
* * METHOD_POST = 1; */ public static final int METHOD_POST_VALUE = 1; /** *
     * Invokes PUT request to update existing record on the third party app.
     * 
* * METHOD_PUT = 2; */ public static final int METHOD_PUT_VALUE = 2; /** *
     * Invokes DELETE request to delete existing record on the third party app.
     * 
* * METHOD_DELETE = 3; */ public static final int METHOD_DELETE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ActionMethod valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ActionMethod forNumber(int value) { switch (value) { case 0: return METHOD_NONE; case 1: return METHOD_POST; case 2: return METHOD_PUT; case 3: return METHOD_DELETE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ActionMethod> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ActionMethod findValueByNumber(int number) { return ActionMethod.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.passkit.grpc.Integration.getDescriptor().getEnumTypes().get(6); } private static final ActionMethod[] VALUES = values(); public static ActionMethod valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ActionMethod(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.ActionMethod) } public interface MembershipEventIdsOrBuilder extends // @@protoc_insertion_point(interface_extends:io.MembershipEventIds) com.google.protobuf.MessageOrBuilder { /** * repeated .io.MembershipEventId ids = 1; * @return A list containing the ids. */ java.util.List getIdsList(); /** * repeated .io.MembershipEventId ids = 1; * @return The count of ids. */ int getIdsCount(); /** * repeated .io.MembershipEventId ids = 1; * @param index The index of the element to return. * @return The ids at the given index. */ com.passkit.grpc.Integration.MembershipEventId getIds(int index); /** * repeated .io.MembershipEventId ids = 1; * @return A list containing the enum numeric values on the wire for ids. */ java.util.List getIdsValueList(); /** * repeated .io.MembershipEventId ids = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of ids at the given index. */ int getIdsValue(int index); } /** *
   * Array of subscribing membership protocol events.
   * 
* * Protobuf type {@code io.MembershipEventIds} */ public static final class MembershipEventIds extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.MembershipEventIds) MembershipEventIdsOrBuilder { private static final long serialVersionUID = 0L; // Use MembershipEventIds.newBuilder() to construct. private MembershipEventIds(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MembershipEventIds() { ids_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MembershipEventIds(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MembershipEventIds( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { ids_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } ids_.add(rawValue); break; } case 10: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { ids_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } ids_.add(rawValue); } input.popLimit(oldLimit); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { ids_ = java.util.Collections.unmodifiableList(ids_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_MembershipEventIds_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_MembershipEventIds_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.MembershipEventIds.class, com.passkit.grpc.Integration.MembershipEventIds.Builder.class); } public static final int IDS_FIELD_NUMBER = 1; private java.util.List ids_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.Integration.MembershipEventId> ids_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.Integration.MembershipEventId>() { public com.passkit.grpc.Integration.MembershipEventId convert(java.lang.Integer from) { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.MembershipEventId result = com.passkit.grpc.Integration.MembershipEventId.valueOf(from); return result == null ? com.passkit.grpc.Integration.MembershipEventId.UNRECOGNIZED : result; } }; /** * repeated .io.MembershipEventId ids = 1; * @return A list containing the ids. */ @java.lang.Override public java.util.List getIdsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.Integration.MembershipEventId>(ids_, ids_converter_); } /** * repeated .io.MembershipEventId ids = 1; * @return The count of ids. */ @java.lang.Override public int getIdsCount() { return ids_.size(); } /** * repeated .io.MembershipEventId ids = 1; * @param index The index of the element to return. * @return The ids at the given index. */ @java.lang.Override public com.passkit.grpc.Integration.MembershipEventId getIds(int index) { return ids_converter_.convert(ids_.get(index)); } /** * repeated .io.MembershipEventId ids = 1; * @return A list containing the enum numeric values on the wire for ids. */ @java.lang.Override public java.util.List getIdsValueList() { return ids_; } /** * repeated .io.MembershipEventId ids = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of ids at the given index. */ @java.lang.Override public int getIdsValue(int index) { return ids_.get(index); } private int idsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getIdsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(idsMemoizedSerializedSize); } for (int i = 0; i < ids_.size(); i++) { output.writeEnumNoTag(ids_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < ids_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(ids_.get(i)); } size += dataSize; if (!getIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }idsMemoizedSerializedSize = dataSize; } 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.Integration.MembershipEventIds)) { return super.equals(obj); } com.passkit.grpc.Integration.MembershipEventIds other = (com.passkit.grpc.Integration.MembershipEventIds) obj; if (!ids_.equals(other.ids_)) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getIdsCount() > 0) { hash = (37 * hash) + IDS_FIELD_NUMBER; hash = (53 * hash) + ids_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Integration.MembershipEventIds parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.MembershipEventIds 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.Integration.MembershipEventIds parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.MembershipEventIds 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.Integration.MembershipEventIds parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.MembershipEventIds parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Integration.MembershipEventIds parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.MembershipEventIds 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.Integration.MembershipEventIds parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.MembershipEventIds 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.Integration.MembershipEventIds parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.MembershipEventIds 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.Integration.MembershipEventIds 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; } /** *
     * Array of subscribing membership protocol events.
     * 
* * Protobuf type {@code io.MembershipEventIds} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.MembershipEventIds) com.passkit.grpc.Integration.MembershipEventIdsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_MembershipEventIds_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_MembershipEventIds_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.MembershipEventIds.class, com.passkit.grpc.Integration.MembershipEventIds.Builder.class); } // Construct using com.passkit.grpc.Integration.MembershipEventIds.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(); ids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Integration.internal_static_io_MembershipEventIds_descriptor; } @java.lang.Override public com.passkit.grpc.Integration.MembershipEventIds getDefaultInstanceForType() { return com.passkit.grpc.Integration.MembershipEventIds.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Integration.MembershipEventIds build() { com.passkit.grpc.Integration.MembershipEventIds result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Integration.MembershipEventIds buildPartial() { com.passkit.grpc.Integration.MembershipEventIds result = new com.passkit.grpc.Integration.MembershipEventIds(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { ids_ = java.util.Collections.unmodifiableList(ids_); bitField0_ = (bitField0_ & ~0x00000001); } result.ids_ = ids_; 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.Integration.MembershipEventIds) { return mergeFrom((com.passkit.grpc.Integration.MembershipEventIds)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Integration.MembershipEventIds other) { if (other == com.passkit.grpc.Integration.MembershipEventIds.getDefaultInstance()) return this; if (!other.ids_.isEmpty()) { if (ids_.isEmpty()) { ids_ = other.ids_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIdsIsMutable(); ids_.addAll(other.ids_); } 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.Integration.MembershipEventIds parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Integration.MembershipEventIds) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List ids_ = java.util.Collections.emptyList(); private void ensureIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ids_ = new java.util.ArrayList(ids_); bitField0_ |= 0x00000001; } } /** * repeated .io.MembershipEventId ids = 1; * @return A list containing the ids. */ public java.util.List getIdsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.Integration.MembershipEventId>(ids_, ids_converter_); } /** * repeated .io.MembershipEventId ids = 1; * @return The count of ids. */ public int getIdsCount() { return ids_.size(); } /** * repeated .io.MembershipEventId ids = 1; * @param index The index of the element to return. * @return The ids at the given index. */ public com.passkit.grpc.Integration.MembershipEventId getIds(int index) { return ids_converter_.convert(ids_.get(index)); } /** * repeated .io.MembershipEventId ids = 1; * @param index The index to set the value at. * @param value The ids to set. * @return This builder for chaining. */ public Builder setIds( int index, com.passkit.grpc.Integration.MembershipEventId value) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .io.MembershipEventId ids = 1; * @param value The ids to add. * @return This builder for chaining. */ public Builder addIds(com.passkit.grpc.Integration.MembershipEventId value) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.add(value.getNumber()); onChanged(); return this; } /** * repeated .io.MembershipEventId ids = 1; * @param values The ids to add. * @return This builder for chaining. */ public Builder addAllIds( java.lang.Iterable values) { ensureIdsIsMutable(); for (com.passkit.grpc.Integration.MembershipEventId value : values) { ids_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .io.MembershipEventId ids = 1; * @return This builder for chaining. */ public Builder clearIds() { ids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated .io.MembershipEventId ids = 1; * @return A list containing the enum numeric values on the wire for ids. */ public java.util.List getIdsValueList() { return java.util.Collections.unmodifiableList(ids_); } /** * repeated .io.MembershipEventId ids = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of ids at the given index. */ public int getIdsValue(int index) { return ids_.get(index); } /** * repeated .io.MembershipEventId ids = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of ids at the given index. * @return This builder for chaining. */ public Builder setIdsValue( int index, int value) { ensureIdsIsMutable(); ids_.set(index, value); onChanged(); return this; } /** * repeated .io.MembershipEventId ids = 1; * @param value The enum numeric value on the wire for ids to add. * @return This builder for chaining. */ public Builder addIdsValue(int value) { ensureIdsIsMutable(); ids_.add(value); onChanged(); return this; } /** * repeated .io.MembershipEventId ids = 1; * @param values The enum numeric values on the wire for ids to add. * @return This builder for chaining. */ public Builder addAllIdsValue( java.lang.Iterable values) { ensureIdsIsMutable(); for (int value : values) { ids_.add(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:io.MembershipEventIds) } // @@protoc_insertion_point(class_scope:io.MembershipEventIds) private static final com.passkit.grpc.Integration.MembershipEventIds DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Integration.MembershipEventIds(); } public static com.passkit.grpc.Integration.MembershipEventIds getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MembershipEventIds parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MembershipEventIds(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.Integration.MembershipEventIds getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CouponEventIdsOrBuilder extends // @@protoc_insertion_point(interface_extends:io.CouponEventIds) com.google.protobuf.MessageOrBuilder { /** * repeated .io.CouponEventId ids = 1; * @return A list containing the ids. */ java.util.List getIdsList(); /** * repeated .io.CouponEventId ids = 1; * @return The count of ids. */ int getIdsCount(); /** * repeated .io.CouponEventId ids = 1; * @param index The index of the element to return. * @return The ids at the given index. */ com.passkit.grpc.Integration.CouponEventId getIds(int index); /** * repeated .io.CouponEventId ids = 1; * @return A list containing the enum numeric values on the wire for ids. */ java.util.List getIdsValueList(); /** * repeated .io.CouponEventId ids = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of ids at the given index. */ int getIdsValue(int index); } /** *
   * Array of subscribing coupon protocol events.
   * 
* * Protobuf type {@code io.CouponEventIds} */ public static final class CouponEventIds extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.CouponEventIds) CouponEventIdsOrBuilder { private static final long serialVersionUID = 0L; // Use CouponEventIds.newBuilder() to construct. private CouponEventIds(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CouponEventIds() { ids_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CouponEventIds(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CouponEventIds( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { ids_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } ids_.add(rawValue); break; } case 10: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { ids_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } ids_.add(rawValue); } input.popLimit(oldLimit); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { ids_ = java.util.Collections.unmodifiableList(ids_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_CouponEventIds_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_CouponEventIds_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.CouponEventIds.class, com.passkit.grpc.Integration.CouponEventIds.Builder.class); } public static final int IDS_FIELD_NUMBER = 1; private java.util.List ids_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.Integration.CouponEventId> ids_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.Integration.CouponEventId>() { public com.passkit.grpc.Integration.CouponEventId convert(java.lang.Integer from) { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.CouponEventId result = com.passkit.grpc.Integration.CouponEventId.valueOf(from); return result == null ? com.passkit.grpc.Integration.CouponEventId.UNRECOGNIZED : result; } }; /** * repeated .io.CouponEventId ids = 1; * @return A list containing the ids. */ @java.lang.Override public java.util.List getIdsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.Integration.CouponEventId>(ids_, ids_converter_); } /** * repeated .io.CouponEventId ids = 1; * @return The count of ids. */ @java.lang.Override public int getIdsCount() { return ids_.size(); } /** * repeated .io.CouponEventId ids = 1; * @param index The index of the element to return. * @return The ids at the given index. */ @java.lang.Override public com.passkit.grpc.Integration.CouponEventId getIds(int index) { return ids_converter_.convert(ids_.get(index)); } /** * repeated .io.CouponEventId ids = 1; * @return A list containing the enum numeric values on the wire for ids. */ @java.lang.Override public java.util.List getIdsValueList() { return ids_; } /** * repeated .io.CouponEventId ids = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of ids at the given index. */ @java.lang.Override public int getIdsValue(int index) { return ids_.get(index); } private int idsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getIdsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(idsMemoizedSerializedSize); } for (int i = 0; i < ids_.size(); i++) { output.writeEnumNoTag(ids_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < ids_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(ids_.get(i)); } size += dataSize; if (!getIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }idsMemoizedSerializedSize = dataSize; } 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.Integration.CouponEventIds)) { return super.equals(obj); } com.passkit.grpc.Integration.CouponEventIds other = (com.passkit.grpc.Integration.CouponEventIds) obj; if (!ids_.equals(other.ids_)) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getIdsCount() > 0) { hash = (37 * hash) + IDS_FIELD_NUMBER; hash = (53 * hash) + ids_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Integration.CouponEventIds parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.CouponEventIds 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.Integration.CouponEventIds parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.CouponEventIds 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.Integration.CouponEventIds parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.CouponEventIds parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Integration.CouponEventIds parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.CouponEventIds 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.Integration.CouponEventIds parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.CouponEventIds 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.Integration.CouponEventIds parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.CouponEventIds 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.Integration.CouponEventIds 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; } /** *
     * Array of subscribing coupon protocol events.
     * 
* * Protobuf type {@code io.CouponEventIds} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.CouponEventIds) com.passkit.grpc.Integration.CouponEventIdsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_CouponEventIds_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_CouponEventIds_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.CouponEventIds.class, com.passkit.grpc.Integration.CouponEventIds.Builder.class); } // Construct using com.passkit.grpc.Integration.CouponEventIds.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(); ids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Integration.internal_static_io_CouponEventIds_descriptor; } @java.lang.Override public com.passkit.grpc.Integration.CouponEventIds getDefaultInstanceForType() { return com.passkit.grpc.Integration.CouponEventIds.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Integration.CouponEventIds build() { com.passkit.grpc.Integration.CouponEventIds result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Integration.CouponEventIds buildPartial() { com.passkit.grpc.Integration.CouponEventIds result = new com.passkit.grpc.Integration.CouponEventIds(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { ids_ = java.util.Collections.unmodifiableList(ids_); bitField0_ = (bitField0_ & ~0x00000001); } result.ids_ = ids_; 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.Integration.CouponEventIds) { return mergeFrom((com.passkit.grpc.Integration.CouponEventIds)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Integration.CouponEventIds other) { if (other == com.passkit.grpc.Integration.CouponEventIds.getDefaultInstance()) return this; if (!other.ids_.isEmpty()) { if (ids_.isEmpty()) { ids_ = other.ids_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIdsIsMutable(); ids_.addAll(other.ids_); } 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.Integration.CouponEventIds parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Integration.CouponEventIds) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List ids_ = java.util.Collections.emptyList(); private void ensureIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ids_ = new java.util.ArrayList(ids_); bitField0_ |= 0x00000001; } } /** * repeated .io.CouponEventId ids = 1; * @return A list containing the ids. */ public java.util.List getIdsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.Integration.CouponEventId>(ids_, ids_converter_); } /** * repeated .io.CouponEventId ids = 1; * @return The count of ids. */ public int getIdsCount() { return ids_.size(); } /** * repeated .io.CouponEventId ids = 1; * @param index The index of the element to return. * @return The ids at the given index. */ public com.passkit.grpc.Integration.CouponEventId getIds(int index) { return ids_converter_.convert(ids_.get(index)); } /** * repeated .io.CouponEventId ids = 1; * @param index The index to set the value at. * @param value The ids to set. * @return This builder for chaining. */ public Builder setIds( int index, com.passkit.grpc.Integration.CouponEventId value) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .io.CouponEventId ids = 1; * @param value The ids to add. * @return This builder for chaining. */ public Builder addIds(com.passkit.grpc.Integration.CouponEventId value) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.add(value.getNumber()); onChanged(); return this; } /** * repeated .io.CouponEventId ids = 1; * @param values The ids to add. * @return This builder for chaining. */ public Builder addAllIds( java.lang.Iterable values) { ensureIdsIsMutable(); for (com.passkit.grpc.Integration.CouponEventId value : values) { ids_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .io.CouponEventId ids = 1; * @return This builder for chaining. */ public Builder clearIds() { ids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated .io.CouponEventId ids = 1; * @return A list containing the enum numeric values on the wire for ids. */ public java.util.List getIdsValueList() { return java.util.Collections.unmodifiableList(ids_); } /** * repeated .io.CouponEventId ids = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of ids at the given index. */ public int getIdsValue(int index) { return ids_.get(index); } /** * repeated .io.CouponEventId ids = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of ids at the given index. * @return This builder for chaining. */ public Builder setIdsValue( int index, int value) { ensureIdsIsMutable(); ids_.set(index, value); onChanged(); return this; } /** * repeated .io.CouponEventId ids = 1; * @param value The enum numeric value on the wire for ids to add. * @return This builder for chaining. */ public Builder addIdsValue(int value) { ensureIdsIsMutable(); ids_.add(value); onChanged(); return this; } /** * repeated .io.CouponEventId ids = 1; * @param values The enum numeric values on the wire for ids to add. * @return This builder for chaining. */ public Builder addAllIdsValue( java.lang.Iterable values) { ensureIdsIsMutable(); for (int value : values) { ids_.add(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:io.CouponEventIds) } // @@protoc_insertion_point(class_scope:io.CouponEventIds) private static final com.passkit.grpc.Integration.CouponEventIds DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Integration.CouponEventIds(); } public static com.passkit.grpc.Integration.CouponEventIds getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CouponEventIds parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CouponEventIds(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.Integration.CouponEventIds getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IntegrationConfigsOrBuilder extends // @@protoc_insertion_point(interface_extends:io.IntegrationConfigs) com.google.protobuf.MessageOrBuilder { /** *
     * The uuid for the class object.
     * 
* * string classId = 1; * @return The classId. */ java.lang.String getClassId(); /** *
     * The uuid for the class object.
     * 
* * string classId = 1; * @return The bytes for classId. */ com.google.protobuf.ByteString getClassIdBytes(); /** *
     * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
     * 
* * map<int32, string> configurations = 2; */ int getConfigurationsCount(); /** *
     * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
     * 
* * map<int32, string> configurations = 2; */ boolean containsConfigurations( int key); /** * Use {@link #getConfigurationsMap()} instead. */ @java.lang.Deprecated java.util.Map getConfigurations(); /** *
     * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
     * 
* * map<int32, string> configurations = 2; */ java.util.Map getConfigurationsMap(); /** *
     * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
     * 
* * map<int32, string> configurations = 2; */ java.lang.String getConfigurationsOrDefault( int key, java.lang.String defaultValue); /** *
     * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
     * 
* * map<int32, string> configurations = 2; */ java.lang.String getConfigurationsOrThrow( int key); } /** *
   * Integration object contains configuration data to integrate PassKit application with third party application.
   * 
* * Protobuf type {@code io.IntegrationConfigs} */ public static final class IntegrationConfigs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.IntegrationConfigs) IntegrationConfigsOrBuilder { private static final long serialVersionUID = 0L; // Use IntegrationConfigs.newBuilder() to construct. private IntegrationConfigs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IntegrationConfigs() { classId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IntegrationConfigs(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IntegrationConfigs( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); classId_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { configurations_ = com.google.protobuf.MapField.newMapField( ConfigurationsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry configurations__ = input.readMessage( ConfigurationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); configurations_.getMutableMap().put( configurations__.getKey(), configurations__.getValue()); 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.Integration.internal_static_io_IntegrationConfigs_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetConfigurations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_IntegrationConfigs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.IntegrationConfigs.class, com.passkit.grpc.Integration.IntegrationConfigs.Builder.class); } public static final int CLASSID_FIELD_NUMBER = 1; private volatile java.lang.Object classId_; /** *
     * The uuid for the class object.
     * 
* * string classId = 1; * @return The classId. */ @java.lang.Override public java.lang.String getClassId() { java.lang.Object ref = classId_; 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(); classId_ = s; return s; } } /** *
     * The uuid for the class object.
     * 
* * string classId = 1; * @return The bytes for classId. */ @java.lang.Override public com.google.protobuf.ByteString getClassIdBytes() { java.lang.Object ref = classId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONFIGURATIONS_FIELD_NUMBER = 2; private static final class ConfigurationsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.passkit.grpc.Integration.internal_static_io_IntegrationConfigs_ConfigurationsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.Integer, java.lang.String> configurations_; private com.google.protobuf.MapField internalGetConfigurations() { if (configurations_ == null) { return com.google.protobuf.MapField.emptyMapField( ConfigurationsDefaultEntryHolder.defaultEntry); } return configurations_; } public int getConfigurationsCount() { return internalGetConfigurations().getMap().size(); } /** *
     * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
     * 
* * map<int32, string> configurations = 2; */ @java.lang.Override public boolean containsConfigurations( int key) { return internalGetConfigurations().getMap().containsKey(key); } /** * Use {@link #getConfigurationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConfigurations() { return getConfigurationsMap(); } /** *
     * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
     * 
* * map<int32, string> configurations = 2; */ @java.lang.Override public java.util.Map getConfigurationsMap() { return internalGetConfigurations().getMap(); } /** *
     * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
     * 
* * map<int32, string> configurations = 2; */ @java.lang.Override public java.lang.String getConfigurationsOrDefault( int key, java.lang.String defaultValue) { java.util.Map map = internalGetConfigurations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
     * 
* * map<int32, string> configurations = 2; */ @java.lang.Override public java.lang.String getConfigurationsOrThrow( int key) { java.util.Map map = internalGetConfigurations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (!getClassIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, classId_); } com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetConfigurations(), ConfigurationsDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getClassIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, classId_); } for (java.util.Map.Entry entry : internalGetConfigurations().getMap().entrySet()) { com.google.protobuf.MapEntry configurations__ = ConfigurationsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, configurations__); } 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.Integration.IntegrationConfigs)) { return super.equals(obj); } com.passkit.grpc.Integration.IntegrationConfigs other = (com.passkit.grpc.Integration.IntegrationConfigs) obj; if (!getClassId() .equals(other.getClassId())) return false; if (!internalGetConfigurations().equals( other.internalGetConfigurations())) 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) + CLASSID_FIELD_NUMBER; hash = (53 * hash) + getClassId().hashCode(); if (!internalGetConfigurations().getMap().isEmpty()) { hash = (37 * hash) + CONFIGURATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetConfigurations().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Integration.IntegrationConfigs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.IntegrationConfigs 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.Integration.IntegrationConfigs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.IntegrationConfigs 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.Integration.IntegrationConfigs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.IntegrationConfigs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Integration.IntegrationConfigs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.IntegrationConfigs 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.Integration.IntegrationConfigs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.IntegrationConfigs 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.Integration.IntegrationConfigs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.IntegrationConfigs 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.Integration.IntegrationConfigs 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; } /** *
     * Integration object contains configuration data to integrate PassKit application with third party application.
     * 
* * Protobuf type {@code io.IntegrationConfigs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.IntegrationConfigs) com.passkit.grpc.Integration.IntegrationConfigsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_IntegrationConfigs_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetConfigurations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableConfigurations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_IntegrationConfigs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.IntegrationConfigs.class, com.passkit.grpc.Integration.IntegrationConfigs.Builder.class); } // Construct using com.passkit.grpc.Integration.IntegrationConfigs.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(); classId_ = ""; internalGetMutableConfigurations().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Integration.internal_static_io_IntegrationConfigs_descriptor; } @java.lang.Override public com.passkit.grpc.Integration.IntegrationConfigs getDefaultInstanceForType() { return com.passkit.grpc.Integration.IntegrationConfigs.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Integration.IntegrationConfigs build() { com.passkit.grpc.Integration.IntegrationConfigs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Integration.IntegrationConfigs buildPartial() { com.passkit.grpc.Integration.IntegrationConfigs result = new com.passkit.grpc.Integration.IntegrationConfigs(this); int from_bitField0_ = bitField0_; result.classId_ = classId_; result.configurations_ = internalGetConfigurations(); result.configurations_.makeImmutable(); 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.Integration.IntegrationConfigs) { return mergeFrom((com.passkit.grpc.Integration.IntegrationConfigs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Integration.IntegrationConfigs other) { if (other == com.passkit.grpc.Integration.IntegrationConfigs.getDefaultInstance()) return this; if (!other.getClassId().isEmpty()) { classId_ = other.classId_; onChanged(); } internalGetMutableConfigurations().mergeFrom( other.internalGetConfigurations()); 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.Integration.IntegrationConfigs parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Integration.IntegrationConfigs) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object classId_ = ""; /** *
       * The uuid for the class object.
       * 
* * string classId = 1; * @return The classId. */ public java.lang.String getClassId() { java.lang.Object ref = classId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); classId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The uuid for the class object.
       * 
* * string classId = 1; * @return The bytes for classId. */ public com.google.protobuf.ByteString getClassIdBytes() { java.lang.Object ref = classId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The uuid for the class object.
       * 
* * string classId = 1; * @param value The classId to set. * @return This builder for chaining. */ public Builder setClassId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } classId_ = value; onChanged(); return this; } /** *
       * The uuid for the class object.
       * 
* * string classId = 1; * @return This builder for chaining. */ public Builder clearClassId() { classId_ = getDefaultInstance().getClassId(); onChanged(); return this; } /** *
       * The uuid for the class object.
       * 
* * string classId = 1; * @param value The bytes for classId to set. * @return This builder for chaining. */ public Builder setClassIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); classId_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.String> configurations_; private com.google.protobuf.MapField internalGetConfigurations() { if (configurations_ == null) { return com.google.protobuf.MapField.emptyMapField( ConfigurationsDefaultEntryHolder.defaultEntry); } return configurations_; } private com.google.protobuf.MapField internalGetMutableConfigurations() { onChanged();; if (configurations_ == null) { configurations_ = com.google.protobuf.MapField.newMapField( ConfigurationsDefaultEntryHolder.defaultEntry); } if (!configurations_.isMutable()) { configurations_ = configurations_.copy(); } return configurations_; } public int getConfigurationsCount() { return internalGetConfigurations().getMap().size(); } /** *
       * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
       * 
* * map<int32, string> configurations = 2; */ @java.lang.Override public boolean containsConfigurations( int key) { return internalGetConfigurations().getMap().containsKey(key); } /** * Use {@link #getConfigurationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConfigurations() { return getConfigurationsMap(); } /** *
       * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
       * 
* * map<int32, string> configurations = 2; */ @java.lang.Override public java.util.Map getConfigurationsMap() { return internalGetConfigurations().getMap(); } /** *
       * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
       * 
* * map<int32, string> configurations = 2; */ @java.lang.Override public java.lang.String getConfigurationsOrDefault( int key, java.lang.String defaultValue) { java.util.Map map = internalGetConfigurations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
       * 
* * map<int32, string> configurations = 2; */ @java.lang.Override public java.lang.String getConfigurationsOrThrow( int key) { java.util.Map map = internalGetConfigurations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearConfigurations() { internalGetMutableConfigurations().getMutableMap() .clear(); return this; } /** *
       * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
       * 
* * map<int32, string> configurations = 2; */ public Builder removeConfigurations( int key) { internalGetMutableConfigurations().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableConfigurations() { return internalGetMutableConfigurations().getMutableMap(); } /** *
       * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
       * 
* * map<int32, string> configurations = 2; */ public Builder putConfigurations( int key, java.lang.String value) { if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableConfigurations().getMutableMap() .put(key, value); return this; } /** *
       * Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
       * 
* * map<int32, string> configurations = 2; */ public Builder putAllConfigurations( java.util.Map values) { internalGetMutableConfigurations().getMutableMap() .putAll(values); 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:io.IntegrationConfigs) } // @@protoc_insertion_point(class_scope:io.IntegrationConfigs) private static final com.passkit.grpc.Integration.IntegrationConfigs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Integration.IntegrationConfigs(); } public static com.passkit.grpc.Integration.IntegrationConfigs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IntegrationConfigs parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IntegrationConfigs(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.Integration.IntegrationConfigs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProtocolIdInputOrBuilder extends // @@protoc_insertion_point(interface_extends:io.ProtocolIdInput) com.google.protobuf.MessageOrBuilder { /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ int getProtocolValue(); /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The protocol. */ com.passkit.grpc.Protocols.PassProtocol getProtocol(); /** *
     * The class object Id which integration belongs to.
     * 
* * string classId = 2; * @return The classId. */ java.lang.String getClassId(); /** *
     * The class object Id which integration belongs to.
     * 
* * string classId = 2; * @return The bytes for classId. */ com.google.protobuf.ByteString getClassIdBytes(); } /** * Protobuf type {@code io.ProtocolIdInput} */ public static final class ProtocolIdInput extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.ProtocolIdInput) ProtocolIdInputOrBuilder { private static final long serialVersionUID = 0L; // Use ProtocolIdInput.newBuilder() to construct. private ProtocolIdInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtocolIdInput() { protocol_ = 0; classId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProtocolIdInput(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProtocolIdInput( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); protocol_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); classId_ = 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.Integration.internal_static_io_ProtocolIdInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_ProtocolIdInput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.ProtocolIdInput.class, com.passkit.grpc.Integration.ProtocolIdInput.Builder.class); } public static final int PROTOCOL_FIELD_NUMBER = 1; private int protocol_; /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The protocol. */ @java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() { @SuppressWarnings("deprecation") com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_); return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result; } public static final int CLASSID_FIELD_NUMBER = 2; private volatile java.lang.Object classId_; /** *
     * The class object Id which integration belongs to.
     * 
* * string classId = 2; * @return The classId. */ @java.lang.Override public java.lang.String getClassId() { java.lang.Object ref = classId_; 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(); classId_ = s; return s; } } /** *
     * The class object Id which integration belongs to.
     * 
* * string classId = 2; * @return The bytes for classId. */ @java.lang.Override public com.google.protobuf.ByteString getClassIdBytes() { java.lang.Object ref = classId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classId_ = 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 (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) { output.writeEnum(1, protocol_); } if (!getClassIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, classId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, protocol_); } if (!getClassIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, classId_); } 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.Integration.ProtocolIdInput)) { return super.equals(obj); } com.passkit.grpc.Integration.ProtocolIdInput other = (com.passkit.grpc.Integration.ProtocolIdInput) obj; if (protocol_ != other.protocol_) return false; if (!getClassId() .equals(other.getClassId())) 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) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + protocol_; hash = (37 * hash) + CLASSID_FIELD_NUMBER; hash = (53 * hash) + getClassId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Integration.ProtocolIdInput parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.ProtocolIdInput 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.Integration.ProtocolIdInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.ProtocolIdInput 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.Integration.ProtocolIdInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.ProtocolIdInput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Integration.ProtocolIdInput parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.ProtocolIdInput 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.Integration.ProtocolIdInput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.ProtocolIdInput 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.Integration.ProtocolIdInput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.ProtocolIdInput 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.Integration.ProtocolIdInput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code io.ProtocolIdInput} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.ProtocolIdInput) com.passkit.grpc.Integration.ProtocolIdInputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_ProtocolIdInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_ProtocolIdInput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.ProtocolIdInput.class, com.passkit.grpc.Integration.ProtocolIdInput.Builder.class); } // Construct using com.passkit.grpc.Integration.ProtocolIdInput.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(); protocol_ = 0; classId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Integration.internal_static_io_ProtocolIdInput_descriptor; } @java.lang.Override public com.passkit.grpc.Integration.ProtocolIdInput getDefaultInstanceForType() { return com.passkit.grpc.Integration.ProtocolIdInput.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Integration.ProtocolIdInput build() { com.passkit.grpc.Integration.ProtocolIdInput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Integration.ProtocolIdInput buildPartial() { com.passkit.grpc.Integration.ProtocolIdInput result = new com.passkit.grpc.Integration.ProtocolIdInput(this); result.protocol_ = protocol_; result.classId_ = classId_; 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.Integration.ProtocolIdInput) { return mergeFrom((com.passkit.grpc.Integration.ProtocolIdInput)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Integration.ProtocolIdInput other) { if (other == com.passkit.grpc.Integration.ProtocolIdInput.getDefaultInstance()) return this; if (other.protocol_ != 0) { setProtocolValue(other.getProtocolValue()); } if (!other.getClassId().isEmpty()) { classId_ = other.classId_; 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.Integration.ProtocolIdInput parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Integration.ProtocolIdInput) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int protocol_ = 0; /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @param value The enum numeric value on the wire for protocol to set. * @return This builder for chaining. */ public Builder setProtocolValue(int value) { protocol_ = value; onChanged(); return this; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @return The protocol. */ @java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() { @SuppressWarnings("deprecation") com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_); return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @param value The protocol to set. * @return This builder for chaining. */ public Builder setProtocol(com.passkit.grpc.Protocols.PassProtocol value) { if (value == null) { throw new NullPointerException(); } protocol_ = value.getNumber(); onChanged(); return this; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = 0; onChanged(); return this; } private java.lang.Object classId_ = ""; /** *
       * The class object Id which integration belongs to.
       * 
* * string classId = 2; * @return The classId. */ public java.lang.String getClassId() { java.lang.Object ref = classId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); classId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The class object Id which integration belongs to.
       * 
* * string classId = 2; * @return The bytes for classId. */ public com.google.protobuf.ByteString getClassIdBytes() { java.lang.Object ref = classId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The class object Id which integration belongs to.
       * 
* * string classId = 2; * @param value The classId to set. * @return This builder for chaining. */ public Builder setClassId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } classId_ = value; onChanged(); return this; } /** *
       * The class object Id which integration belongs to.
       * 
* * string classId = 2; * @return This builder for chaining. */ public Builder clearClassId() { classId_ = getDefaultInstance().getClassId(); onChanged(); return this; } /** *
       * The class object Id which integration belongs to.
       * 
* * string classId = 2; * @param value The bytes for classId to set. * @return This builder for chaining. */ public Builder setClassIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); classId_ = 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:io.ProtocolIdInput) } // @@protoc_insertion_point(class_scope:io.ProtocolIdInput) private static final com.passkit.grpc.Integration.ProtocolIdInput DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Integration.ProtocolIdInput(); } public static com.passkit.grpc.Integration.ProtocolIdInput getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtocolIdInput parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProtocolIdInput(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.Integration.ProtocolIdInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:io.SubscriptionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ int getProtocolValue(); /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The protocol. */ com.passkit.grpc.Protocols.PassProtocol getProtocol(); /** *
     * The class object Id which integration belongs to.
     * 
* * string subscriptionId = 2; * @return The subscriptionId. */ java.lang.String getSubscriptionId(); /** *
     * The class object Id which integration belongs to.
     * 
* * string subscriptionId = 2; * @return The bytes for subscriptionId. */ com.google.protobuf.ByteString getSubscriptionIdBytes(); } /** * Protobuf type {@code io.SubscriptionRequest} */ public static final class SubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.SubscriptionRequest) SubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SubscriptionRequest.newBuilder() to construct. private SubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SubscriptionRequest() { protocol_ = 0; subscriptionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SubscriptionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); protocol_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); subscriptionId_ = 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.Integration.internal_static_io_SubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_SubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.SubscriptionRequest.class, com.passkit.grpc.Integration.SubscriptionRequest.Builder.class); } public static final int PROTOCOL_FIELD_NUMBER = 1; private int protocol_; /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The protocol. */ @java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() { @SuppressWarnings("deprecation") com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_); return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result; } public static final int SUBSCRIPTIONID_FIELD_NUMBER = 2; private volatile java.lang.Object subscriptionId_; /** *
     * The class object Id which integration belongs to.
     * 
* * string subscriptionId = 2; * @return The subscriptionId. */ @java.lang.Override public java.lang.String getSubscriptionId() { java.lang.Object ref = subscriptionId_; 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(); subscriptionId_ = s; return s; } } /** *
     * The class object Id which integration belongs to.
     * 
* * string subscriptionId = 2; * @return The bytes for subscriptionId. */ @java.lang.Override public com.google.protobuf.ByteString getSubscriptionIdBytes() { java.lang.Object ref = subscriptionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subscriptionId_ = 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 (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) { output.writeEnum(1, protocol_); } if (!getSubscriptionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscriptionId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, protocol_); } if (!getSubscriptionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscriptionId_); } 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.Integration.SubscriptionRequest)) { return super.equals(obj); } com.passkit.grpc.Integration.SubscriptionRequest other = (com.passkit.grpc.Integration.SubscriptionRequest) obj; if (protocol_ != other.protocol_) return false; if (!getSubscriptionId() .equals(other.getSubscriptionId())) 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) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + protocol_; hash = (37 * hash) + SUBSCRIPTIONID_FIELD_NUMBER; hash = (53 * hash) + getSubscriptionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Integration.SubscriptionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SubscriptionRequest 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.Integration.SubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SubscriptionRequest 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.Integration.SubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SubscriptionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Integration.SubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SubscriptionRequest 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.Integration.SubscriptionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SubscriptionRequest 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.Integration.SubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SubscriptionRequest 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.Integration.SubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code io.SubscriptionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.SubscriptionRequest) com.passkit.grpc.Integration.SubscriptionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_SubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_SubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.SubscriptionRequest.class, com.passkit.grpc.Integration.SubscriptionRequest.Builder.class); } // Construct using com.passkit.grpc.Integration.SubscriptionRequest.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(); protocol_ = 0; subscriptionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Integration.internal_static_io_SubscriptionRequest_descriptor; } @java.lang.Override public com.passkit.grpc.Integration.SubscriptionRequest getDefaultInstanceForType() { return com.passkit.grpc.Integration.SubscriptionRequest.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Integration.SubscriptionRequest build() { com.passkit.grpc.Integration.SubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Integration.SubscriptionRequest buildPartial() { com.passkit.grpc.Integration.SubscriptionRequest result = new com.passkit.grpc.Integration.SubscriptionRequest(this); result.protocol_ = protocol_; result.subscriptionId_ = subscriptionId_; 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.Integration.SubscriptionRequest) { return mergeFrom((com.passkit.grpc.Integration.SubscriptionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Integration.SubscriptionRequest other) { if (other == com.passkit.grpc.Integration.SubscriptionRequest.getDefaultInstance()) return this; if (other.protocol_ != 0) { setProtocolValue(other.getProtocolValue()); } if (!other.getSubscriptionId().isEmpty()) { subscriptionId_ = other.subscriptionId_; 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.Integration.SubscriptionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Integration.SubscriptionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int protocol_ = 0; /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @param value The enum numeric value on the wire for protocol to set. * @return This builder for chaining. */ public Builder setProtocolValue(int value) { protocol_ = value; onChanged(); return this; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @return The protocol. */ @java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() { @SuppressWarnings("deprecation") com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_); return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @param value The protocol to set. * @return This builder for chaining. */ public Builder setProtocol(com.passkit.grpc.Protocols.PassProtocol value) { if (value == null) { throw new NullPointerException(); } protocol_ = value.getNumber(); onChanged(); return this; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = 0; onChanged(); return this; } private java.lang.Object subscriptionId_ = ""; /** *
       * The class object Id which integration belongs to.
       * 
* * string subscriptionId = 2; * @return The subscriptionId. */ public java.lang.String getSubscriptionId() { java.lang.Object ref = subscriptionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscriptionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The class object Id which integration belongs to.
       * 
* * string subscriptionId = 2; * @return The bytes for subscriptionId. */ public com.google.protobuf.ByteString getSubscriptionIdBytes() { java.lang.Object ref = subscriptionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subscriptionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The class object Id which integration belongs to.
       * 
* * string subscriptionId = 2; * @param value The subscriptionId to set. * @return This builder for chaining. */ public Builder setSubscriptionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subscriptionId_ = value; onChanged(); return this; } /** *
       * The class object Id which integration belongs to.
       * 
* * string subscriptionId = 2; * @return This builder for chaining. */ public Builder clearSubscriptionId() { subscriptionId_ = getDefaultInstance().getSubscriptionId(); onChanged(); return this; } /** *
       * The class object Id which integration belongs to.
       * 
* * string subscriptionId = 2; * @param value The bytes for subscriptionId to set. * @return This builder for chaining. */ public Builder setSubscriptionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscriptionId_ = 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:io.SubscriptionRequest) } // @@protoc_insertion_point(class_scope:io.SubscriptionRequest) private static final com.passkit.grpc.Integration.SubscriptionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Integration.SubscriptionRequest(); } public static com.passkit.grpc.Integration.SubscriptionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SubscriptionRequest(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.Integration.SubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SubscriptionRequestByClassIdOrBuilder extends // @@protoc_insertion_point(interface_extends:io.SubscriptionRequestByClassId) com.google.protobuf.MessageOrBuilder { /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ int getProtocolValue(); /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The protocol. */ com.passkit.grpc.Protocols.PassProtocol getProtocol(); /** *
     * The uuid for the class object. For Membership it is ProgramId, Coupon is CampaignId, Flight is FlightId.
     * 
* * string classId = 2; * @return The classId. */ java.lang.String getClassId(); /** *
     * The uuid for the class object. For Membership it is ProgramId, Coupon is CampaignId, Flight is FlightId.
     * 
* * string classId = 2; * @return The bytes for classId. */ com.google.protobuf.ByteString getClassIdBytes(); /** * .io.ConfigurationType configType = 3; * @return The enum numeric value on the wire for configType. */ int getConfigTypeValue(); /** * .io.ConfigurationType configType = 3; * @return The configType. */ com.passkit.grpc.Integration.ConfigurationType getConfigType(); /** *
     * Identifies pass event type.
     * 
* * .io.PassEventId passEventId = 4; * @return The enum numeric value on the wire for passEventId. */ int getPassEventIdValue(); /** *
     * Identifies pass event type.
     * 
* * .io.PassEventId passEventId = 4; * @return The passEventId. */ com.passkit.grpc.Integration.PassEventId getPassEventId(); /** *
     * For membership protocol subscription.
     * 
* * .io.MembershipEventId membershipEventId = 5; * @return The enum numeric value on the wire for membershipEventId. */ int getMembershipEventIdValue(); /** *
     * For membership protocol subscription.
     * 
* * .io.MembershipEventId membershipEventId = 5; * @return The membershipEventId. */ com.passkit.grpc.Integration.MembershipEventId getMembershipEventId(); /** *
     * For coupon protocol subscription.
     * 
* * .io.CouponEventId couponEventId = 6; * @return The enum numeric value on the wire for couponEventId. */ int getCouponEventIdValue(); /** *
     * For coupon protocol subscription.
     * 
* * .io.CouponEventId couponEventId = 6; * @return The couponEventId. */ com.passkit.grpc.Integration.CouponEventId getCouponEventId(); public com.passkit.grpc.Integration.SubscriptionRequestByClassId.EventIdCase getEventIdCase(); } /** * Protobuf type {@code io.SubscriptionRequestByClassId} */ public static final class SubscriptionRequestByClassId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.SubscriptionRequestByClassId) SubscriptionRequestByClassIdOrBuilder { private static final long serialVersionUID = 0L; // Use SubscriptionRequestByClassId.newBuilder() to construct. private SubscriptionRequestByClassId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SubscriptionRequestByClassId() { protocol_ = 0; classId_ = ""; configType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SubscriptionRequestByClassId(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SubscriptionRequestByClassId( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); protocol_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); classId_ = s; break; } case 24: { int rawValue = input.readEnum(); configType_ = rawValue; break; } case 32: { int rawValue = input.readEnum(); eventIdCase_ = 4; eventId_ = rawValue; break; } case 40: { int rawValue = input.readEnum(); eventIdCase_ = 5; eventId_ = rawValue; break; } case 48: { int rawValue = input.readEnum(); eventIdCase_ = 6; eventId_ = rawValue; 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.Integration.internal_static_io_SubscriptionRequestByClassId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_SubscriptionRequestByClassId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.SubscriptionRequestByClassId.class, com.passkit.grpc.Integration.SubscriptionRequestByClassId.Builder.class); } private int eventIdCase_ = 0; private java.lang.Object eventId_; public enum EventIdCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PASSEVENTID(4), MEMBERSHIPEVENTID(5), COUPONEVENTID(6), EVENTID_NOT_SET(0); private final int value; private EventIdCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EventIdCase valueOf(int value) { return forNumber(value); } public static EventIdCase forNumber(int value) { switch (value) { case 4: return PASSEVENTID; case 5: return MEMBERSHIPEVENTID; case 6: return COUPONEVENTID; case 0: return EVENTID_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public EventIdCase getEventIdCase() { return EventIdCase.forNumber( eventIdCase_); } public static final int PROTOCOL_FIELD_NUMBER = 1; private int protocol_; /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
     * The protocol which the class object belongs to.
     * 
* * .io.PassProtocol protocol = 1; * @return The protocol. */ @java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() { @SuppressWarnings("deprecation") com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_); return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result; } public static final int CLASSID_FIELD_NUMBER = 2; private volatile java.lang.Object classId_; /** *
     * The uuid for the class object. For Membership it is ProgramId, Coupon is CampaignId, Flight is FlightId.
     * 
* * string classId = 2; * @return The classId. */ @java.lang.Override public java.lang.String getClassId() { java.lang.Object ref = classId_; 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(); classId_ = s; return s; } } /** *
     * The uuid for the class object. For Membership it is ProgramId, Coupon is CampaignId, Flight is FlightId.
     * 
* * string classId = 2; * @return The bytes for classId. */ @java.lang.Override public com.google.protobuf.ByteString getClassIdBytes() { java.lang.Object ref = classId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONFIGTYPE_FIELD_NUMBER = 3; private int configType_; /** * .io.ConfigurationType configType = 3; * @return The enum numeric value on the wire for configType. */ @java.lang.Override public int getConfigTypeValue() { return configType_; } /** * .io.ConfigurationType configType = 3; * @return The configType. */ @java.lang.Override public com.passkit.grpc.Integration.ConfigurationType getConfigType() { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.ConfigurationType result = com.passkit.grpc.Integration.ConfigurationType.valueOf(configType_); return result == null ? com.passkit.grpc.Integration.ConfigurationType.UNRECOGNIZED : result; } public static final int PASSEVENTID_FIELD_NUMBER = 4; /** *
     * Identifies pass event type.
     * 
* * .io.PassEventId passEventId = 4; * @return The enum numeric value on the wire for passEventId. */ public int getPassEventIdValue() { if (eventIdCase_ == 4) { return (java.lang.Integer) eventId_; } return 0; } /** *
     * Identifies pass event type.
     * 
* * .io.PassEventId passEventId = 4; * @return The passEventId. */ public com.passkit.grpc.Integration.PassEventId getPassEventId() { if (eventIdCase_ == 4) { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.PassEventId result = com.passkit.grpc.Integration.PassEventId.valueOf( (java.lang.Integer) eventId_); return result == null ? com.passkit.grpc.Integration.PassEventId.UNRECOGNIZED : result; } return com.passkit.grpc.Integration.PassEventId.PASS_EVENT_NONE; } public static final int MEMBERSHIPEVENTID_FIELD_NUMBER = 5; /** *
     * For membership protocol subscription.
     * 
* * .io.MembershipEventId membershipEventId = 5; * @return The enum numeric value on the wire for membershipEventId. */ public int getMembershipEventIdValue() { if (eventIdCase_ == 5) { return (java.lang.Integer) eventId_; } return 0; } /** *
     * For membership protocol subscription.
     * 
* * .io.MembershipEventId membershipEventId = 5; * @return The membershipEventId. */ public com.passkit.grpc.Integration.MembershipEventId getMembershipEventId() { if (eventIdCase_ == 5) { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.MembershipEventId result = com.passkit.grpc.Integration.MembershipEventId.valueOf( (java.lang.Integer) eventId_); return result == null ? com.passkit.grpc.Integration.MembershipEventId.UNRECOGNIZED : result; } return com.passkit.grpc.Integration.MembershipEventId.MEMBER_EVENT_NONE; } public static final int COUPONEVENTID_FIELD_NUMBER = 6; /** *
     * For coupon protocol subscription.
     * 
* * .io.CouponEventId couponEventId = 6; * @return The enum numeric value on the wire for couponEventId. */ public int getCouponEventIdValue() { if (eventIdCase_ == 6) { return (java.lang.Integer) eventId_; } return 0; } /** *
     * For coupon protocol subscription.
     * 
* * .io.CouponEventId couponEventId = 6; * @return The couponEventId. */ public com.passkit.grpc.Integration.CouponEventId getCouponEventId() { if (eventIdCase_ == 6) { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.CouponEventId result = com.passkit.grpc.Integration.CouponEventId.valueOf( (java.lang.Integer) eventId_); return result == null ? com.passkit.grpc.Integration.CouponEventId.UNRECOGNIZED : result; } return com.passkit.grpc.Integration.CouponEventId.COUPON_EVENT_NONE; } 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 (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) { output.writeEnum(1, protocol_); } if (!getClassIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, classId_); } if (configType_ != com.passkit.grpc.Integration.ConfigurationType.CONFIGURATION_NONE.getNumber()) { output.writeEnum(3, configType_); } if (eventIdCase_ == 4) { output.writeEnum(4, ((java.lang.Integer) eventId_)); } if (eventIdCase_ == 5) { output.writeEnum(5, ((java.lang.Integer) eventId_)); } if (eventIdCase_ == 6) { output.writeEnum(6, ((java.lang.Integer) eventId_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, protocol_); } if (!getClassIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, classId_); } if (configType_ != com.passkit.grpc.Integration.ConfigurationType.CONFIGURATION_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, configType_); } if (eventIdCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, ((java.lang.Integer) eventId_)); } if (eventIdCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, ((java.lang.Integer) eventId_)); } if (eventIdCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, ((java.lang.Integer) eventId_)); } 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.Integration.SubscriptionRequestByClassId)) { return super.equals(obj); } com.passkit.grpc.Integration.SubscriptionRequestByClassId other = (com.passkit.grpc.Integration.SubscriptionRequestByClassId) obj; if (protocol_ != other.protocol_) return false; if (!getClassId() .equals(other.getClassId())) return false; if (configType_ != other.configType_) return false; if (!getEventIdCase().equals(other.getEventIdCase())) return false; switch (eventIdCase_) { case 4: if (getPassEventIdValue() != other.getPassEventIdValue()) return false; break; case 5: if (getMembershipEventIdValue() != other.getMembershipEventIdValue()) return false; break; case 6: if (getCouponEventIdValue() != other.getCouponEventIdValue()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + protocol_; hash = (37 * hash) + CLASSID_FIELD_NUMBER; hash = (53 * hash) + getClassId().hashCode(); hash = (37 * hash) + CONFIGTYPE_FIELD_NUMBER; hash = (53 * hash) + configType_; switch (eventIdCase_) { case 4: hash = (37 * hash) + PASSEVENTID_FIELD_NUMBER; hash = (53 * hash) + getPassEventIdValue(); break; case 5: hash = (37 * hash) + MEMBERSHIPEVENTID_FIELD_NUMBER; hash = (53 * hash) + getMembershipEventIdValue(); break; case 6: hash = (37 * hash) + COUPONEVENTID_FIELD_NUMBER; hash = (53 * hash) + getCouponEventIdValue(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Integration.SubscriptionRequestByClassId parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SubscriptionRequestByClassId 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.Integration.SubscriptionRequestByClassId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SubscriptionRequestByClassId 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.Integration.SubscriptionRequestByClassId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SubscriptionRequestByClassId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Integration.SubscriptionRequestByClassId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SubscriptionRequestByClassId 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.Integration.SubscriptionRequestByClassId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SubscriptionRequestByClassId 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.Integration.SubscriptionRequestByClassId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SubscriptionRequestByClassId 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.Integration.SubscriptionRequestByClassId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code io.SubscriptionRequestByClassId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.SubscriptionRequestByClassId) com.passkit.grpc.Integration.SubscriptionRequestByClassIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_SubscriptionRequestByClassId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_SubscriptionRequestByClassId_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.SubscriptionRequestByClassId.class, com.passkit.grpc.Integration.SubscriptionRequestByClassId.Builder.class); } // Construct using com.passkit.grpc.Integration.SubscriptionRequestByClassId.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(); protocol_ = 0; classId_ = ""; configType_ = 0; eventIdCase_ = 0; eventId_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Integration.internal_static_io_SubscriptionRequestByClassId_descriptor; } @java.lang.Override public com.passkit.grpc.Integration.SubscriptionRequestByClassId getDefaultInstanceForType() { return com.passkit.grpc.Integration.SubscriptionRequestByClassId.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Integration.SubscriptionRequestByClassId build() { com.passkit.grpc.Integration.SubscriptionRequestByClassId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Integration.SubscriptionRequestByClassId buildPartial() { com.passkit.grpc.Integration.SubscriptionRequestByClassId result = new com.passkit.grpc.Integration.SubscriptionRequestByClassId(this); result.protocol_ = protocol_; result.classId_ = classId_; result.configType_ = configType_; if (eventIdCase_ == 4) { result.eventId_ = eventId_; } if (eventIdCase_ == 5) { result.eventId_ = eventId_; } if (eventIdCase_ == 6) { result.eventId_ = eventId_; } result.eventIdCase_ = eventIdCase_; 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.Integration.SubscriptionRequestByClassId) { return mergeFrom((com.passkit.grpc.Integration.SubscriptionRequestByClassId)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Integration.SubscriptionRequestByClassId other) { if (other == com.passkit.grpc.Integration.SubscriptionRequestByClassId.getDefaultInstance()) return this; if (other.protocol_ != 0) { setProtocolValue(other.getProtocolValue()); } if (!other.getClassId().isEmpty()) { classId_ = other.classId_; onChanged(); } if (other.configType_ != 0) { setConfigTypeValue(other.getConfigTypeValue()); } switch (other.getEventIdCase()) { case PASSEVENTID: { setPassEventIdValue(other.getPassEventIdValue()); break; } case MEMBERSHIPEVENTID: { setMembershipEventIdValue(other.getMembershipEventIdValue()); break; } case COUPONEVENTID: { setCouponEventIdValue(other.getCouponEventIdValue()); break; } case EVENTID_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.passkit.grpc.Integration.SubscriptionRequestByClassId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Integration.SubscriptionRequestByClassId) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int eventIdCase_ = 0; private java.lang.Object eventId_; public EventIdCase getEventIdCase() { return EventIdCase.forNumber( eventIdCase_); } public Builder clearEventId() { eventIdCase_ = 0; eventId_ = null; onChanged(); return this; } private int protocol_ = 0; /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @param value The enum numeric value on the wire for protocol to set. * @return This builder for chaining. */ public Builder setProtocolValue(int value) { protocol_ = value; onChanged(); return this; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @return The protocol. */ @java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() { @SuppressWarnings("deprecation") com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_); return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @param value The protocol to set. * @return This builder for chaining. */ public Builder setProtocol(com.passkit.grpc.Protocols.PassProtocol value) { if (value == null) { throw new NullPointerException(); } protocol_ = value.getNumber(); onChanged(); return this; } /** *
       * The protocol which the class object belongs to.
       * 
* * .io.PassProtocol protocol = 1; * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = 0; onChanged(); return this; } private java.lang.Object classId_ = ""; /** *
       * The uuid for the class object. For Membership it is ProgramId, Coupon is CampaignId, Flight is FlightId.
       * 
* * string classId = 2; * @return The classId. */ public java.lang.String getClassId() { java.lang.Object ref = classId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); classId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The uuid for the class object. For Membership it is ProgramId, Coupon is CampaignId, Flight is FlightId.
       * 
* * string classId = 2; * @return The bytes for classId. */ public com.google.protobuf.ByteString getClassIdBytes() { java.lang.Object ref = classId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The uuid for the class object. For Membership it is ProgramId, Coupon is CampaignId, Flight is FlightId.
       * 
* * string classId = 2; * @param value The classId to set. * @return This builder for chaining. */ public Builder setClassId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } classId_ = value; onChanged(); return this; } /** *
       * The uuid for the class object. For Membership it is ProgramId, Coupon is CampaignId, Flight is FlightId.
       * 
* * string classId = 2; * @return This builder for chaining. */ public Builder clearClassId() { classId_ = getDefaultInstance().getClassId(); onChanged(); return this; } /** *
       * The uuid for the class object. For Membership it is ProgramId, Coupon is CampaignId, Flight is FlightId.
       * 
* * string classId = 2; * @param value The bytes for classId to set. * @return This builder for chaining. */ public Builder setClassIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); classId_ = value; onChanged(); return this; } private int configType_ = 0; /** * .io.ConfigurationType configType = 3; * @return The enum numeric value on the wire for configType. */ @java.lang.Override public int getConfigTypeValue() { return configType_; } /** * .io.ConfigurationType configType = 3; * @param value The enum numeric value on the wire for configType to set. * @return This builder for chaining. */ public Builder setConfigTypeValue(int value) { configType_ = value; onChanged(); return this; } /** * .io.ConfigurationType configType = 3; * @return The configType. */ @java.lang.Override public com.passkit.grpc.Integration.ConfigurationType getConfigType() { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.ConfigurationType result = com.passkit.grpc.Integration.ConfigurationType.valueOf(configType_); return result == null ? com.passkit.grpc.Integration.ConfigurationType.UNRECOGNIZED : result; } /** * .io.ConfigurationType configType = 3; * @param value The configType to set. * @return This builder for chaining. */ public Builder setConfigType(com.passkit.grpc.Integration.ConfigurationType value) { if (value == null) { throw new NullPointerException(); } configType_ = value.getNumber(); onChanged(); return this; } /** * .io.ConfigurationType configType = 3; * @return This builder for chaining. */ public Builder clearConfigType() { configType_ = 0; onChanged(); return this; } /** *
       * Identifies pass event type.
       * 
* * .io.PassEventId passEventId = 4; * @return The enum numeric value on the wire for passEventId. */ @java.lang.Override public int getPassEventIdValue() { if (eventIdCase_ == 4) { return ((java.lang.Integer) eventId_).intValue(); } return 0; } /** *
       * Identifies pass event type.
       * 
* * .io.PassEventId passEventId = 4; * @param value The enum numeric value on the wire for passEventId to set. * @return This builder for chaining. */ public Builder setPassEventIdValue(int value) { eventIdCase_ = 4; eventId_ = value; onChanged(); return this; } /** *
       * Identifies pass event type.
       * 
* * .io.PassEventId passEventId = 4; * @return The passEventId. */ @java.lang.Override public com.passkit.grpc.Integration.PassEventId getPassEventId() { if (eventIdCase_ == 4) { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.PassEventId result = com.passkit.grpc.Integration.PassEventId.valueOf( (java.lang.Integer) eventId_); return result == null ? com.passkit.grpc.Integration.PassEventId.UNRECOGNIZED : result; } return com.passkit.grpc.Integration.PassEventId.PASS_EVENT_NONE; } /** *
       * Identifies pass event type.
       * 
* * .io.PassEventId passEventId = 4; * @param value The passEventId to set. * @return This builder for chaining. */ public Builder setPassEventId(com.passkit.grpc.Integration.PassEventId value) { if (value == null) { throw new NullPointerException(); } eventIdCase_ = 4; eventId_ = value.getNumber(); onChanged(); return this; } /** *
       * Identifies pass event type.
       * 
* * .io.PassEventId passEventId = 4; * @return This builder for chaining. */ public Builder clearPassEventId() { if (eventIdCase_ == 4) { eventIdCase_ = 0; eventId_ = null; onChanged(); } return this; } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventId membershipEventId = 5; * @return The enum numeric value on the wire for membershipEventId. */ @java.lang.Override public int getMembershipEventIdValue() { if (eventIdCase_ == 5) { return ((java.lang.Integer) eventId_).intValue(); } return 0; } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventId membershipEventId = 5; * @param value The enum numeric value on the wire for membershipEventId to set. * @return This builder for chaining. */ public Builder setMembershipEventIdValue(int value) { eventIdCase_ = 5; eventId_ = value; onChanged(); return this; } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventId membershipEventId = 5; * @return The membershipEventId. */ @java.lang.Override public com.passkit.grpc.Integration.MembershipEventId getMembershipEventId() { if (eventIdCase_ == 5) { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.MembershipEventId result = com.passkit.grpc.Integration.MembershipEventId.valueOf( (java.lang.Integer) eventId_); return result == null ? com.passkit.grpc.Integration.MembershipEventId.UNRECOGNIZED : result; } return com.passkit.grpc.Integration.MembershipEventId.MEMBER_EVENT_NONE; } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventId membershipEventId = 5; * @param value The membershipEventId to set. * @return This builder for chaining. */ public Builder setMembershipEventId(com.passkit.grpc.Integration.MembershipEventId value) { if (value == null) { throw new NullPointerException(); } eventIdCase_ = 5; eventId_ = value.getNumber(); onChanged(); return this; } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventId membershipEventId = 5; * @return This builder for chaining. */ public Builder clearMembershipEventId() { if (eventIdCase_ == 5) { eventIdCase_ = 0; eventId_ = null; onChanged(); } return this; } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventId couponEventId = 6; * @return The enum numeric value on the wire for couponEventId. */ @java.lang.Override public int getCouponEventIdValue() { if (eventIdCase_ == 6) { return ((java.lang.Integer) eventId_).intValue(); } return 0; } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventId couponEventId = 6; * @param value The enum numeric value on the wire for couponEventId to set. * @return This builder for chaining. */ public Builder setCouponEventIdValue(int value) { eventIdCase_ = 6; eventId_ = value; onChanged(); return this; } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventId couponEventId = 6; * @return The couponEventId. */ @java.lang.Override public com.passkit.grpc.Integration.CouponEventId getCouponEventId() { if (eventIdCase_ == 6) { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.CouponEventId result = com.passkit.grpc.Integration.CouponEventId.valueOf( (java.lang.Integer) eventId_); return result == null ? com.passkit.grpc.Integration.CouponEventId.UNRECOGNIZED : result; } return com.passkit.grpc.Integration.CouponEventId.COUPON_EVENT_NONE; } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventId couponEventId = 6; * @param value The couponEventId to set. * @return This builder for chaining. */ public Builder setCouponEventId(com.passkit.grpc.Integration.CouponEventId value) { if (value == null) { throw new NullPointerException(); } eventIdCase_ = 6; eventId_ = value.getNumber(); onChanged(); return this; } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventId couponEventId = 6; * @return This builder for chaining. */ public Builder clearCouponEventId() { if (eventIdCase_ == 6) { eventIdCase_ = 0; eventId_ = null; 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:io.SubscriptionRequestByClassId) } // @@protoc_insertion_point(class_scope:io.SubscriptionRequestByClassId) private static final com.passkit.grpc.Integration.SubscriptionRequestByClassId DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Integration.SubscriptionRequestByClassId(); } public static com.passkit.grpc.Integration.SubscriptionRequestByClassId getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SubscriptionRequestByClassId parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SubscriptionRequestByClassId(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.Integration.SubscriptionRequestByClassId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldMappingOrBuilder extends // @@protoc_insertion_point(interface_extends:io.FieldMapping) com.google.protobuf.MessageOrBuilder { /** *
     * Field string key of destination data field.
     * 
* * string destinationFieldKey = 1; * @return The destinationFieldKey. */ java.lang.String getDestinationFieldKey(); /** *
     * Field string key of destination data field.
     * 
* * string destinationFieldKey = 1; * @return The bytes for destinationFieldKey. */ com.google.protobuf.ByteString getDestinationFieldKeyBytes(); /** *
     * Field string key of destination data field.
     * 
* * .io.DataType destinationFieldDataType = 2; * @return The enum numeric value on the wire for destinationFieldDataType. */ int getDestinationFieldDataTypeValue(); /** *
     * Field string key of destination data field.
     * 
* * .io.DataType destinationFieldDataType = 2; * @return The destinationFieldDataType. */ com.passkit.grpc.Template.DataType getDestinationFieldDataType(); /** *
     * If true, when value is empty default data will be used.
     * 
* * bool isRequired = 3; * @return The isRequired. */ boolean getIsRequired(); /** *
     * Unique name of data field which becomes the data source.
     * 
* * string sourceFieldUniqueName = 4; * @return The sourceFieldUniqueName. */ java.lang.String getSourceFieldUniqueName(); /** *
     * Unique name of data field which becomes the data source.
     * 
* * string sourceFieldUniqueName = 4; * @return The bytes for sourceFieldUniqueName. */ com.google.protobuf.ByteString getSourceFieldUniqueNameBytes(); } /** *
   * Sets up source and destination field
   * 
* * Protobuf type {@code io.FieldMapping} */ public static final class FieldMapping extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.FieldMapping) FieldMappingOrBuilder { private static final long serialVersionUID = 0L; // Use FieldMapping.newBuilder() to construct. private FieldMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldMapping() { destinationFieldKey_ = ""; destinationFieldDataType_ = 0; sourceFieldUniqueName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldMapping(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FieldMapping( 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(); destinationFieldKey_ = s; break; } case 16: { int rawValue = input.readEnum(); destinationFieldDataType_ = rawValue; break; } case 24: { isRequired_ = input.readBool(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); sourceFieldUniqueName_ = 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.Integration.internal_static_io_FieldMapping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_FieldMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.FieldMapping.class, com.passkit.grpc.Integration.FieldMapping.Builder.class); } public static final int DESTINATIONFIELDKEY_FIELD_NUMBER = 1; private volatile java.lang.Object destinationFieldKey_; /** *
     * Field string key of destination data field.
     * 
* * string destinationFieldKey = 1; * @return The destinationFieldKey. */ @java.lang.Override public java.lang.String getDestinationFieldKey() { java.lang.Object ref = destinationFieldKey_; 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(); destinationFieldKey_ = s; return s; } } /** *
     * Field string key of destination data field.
     * 
* * string destinationFieldKey = 1; * @return The bytes for destinationFieldKey. */ @java.lang.Override public com.google.protobuf.ByteString getDestinationFieldKeyBytes() { java.lang.Object ref = destinationFieldKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationFieldKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESTINATIONFIELDDATATYPE_FIELD_NUMBER = 2; private int destinationFieldDataType_; /** *
     * Field string key of destination data field.
     * 
* * .io.DataType destinationFieldDataType = 2; * @return The enum numeric value on the wire for destinationFieldDataType. */ @java.lang.Override public int getDestinationFieldDataTypeValue() { return destinationFieldDataType_; } /** *
     * Field string key of destination data field.
     * 
* * .io.DataType destinationFieldDataType = 2; * @return The destinationFieldDataType. */ @java.lang.Override public com.passkit.grpc.Template.DataType getDestinationFieldDataType() { @SuppressWarnings("deprecation") com.passkit.grpc.Template.DataType result = com.passkit.grpc.Template.DataType.valueOf(destinationFieldDataType_); return result == null ? com.passkit.grpc.Template.DataType.UNRECOGNIZED : result; } public static final int ISREQUIRED_FIELD_NUMBER = 3; private boolean isRequired_; /** *
     * If true, when value is empty default data will be used.
     * 
* * bool isRequired = 3; * @return The isRequired. */ @java.lang.Override public boolean getIsRequired() { return isRequired_; } public static final int SOURCEFIELDUNIQUENAME_FIELD_NUMBER = 4; private volatile java.lang.Object sourceFieldUniqueName_; /** *
     * Unique name of data field which becomes the data source.
     * 
* * string sourceFieldUniqueName = 4; * @return The sourceFieldUniqueName. */ @java.lang.Override public java.lang.String getSourceFieldUniqueName() { java.lang.Object ref = sourceFieldUniqueName_; 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(); sourceFieldUniqueName_ = s; return s; } } /** *
     * Unique name of data field which becomes the data source.
     * 
* * string sourceFieldUniqueName = 4; * @return The bytes for sourceFieldUniqueName. */ @java.lang.Override public com.google.protobuf.ByteString getSourceFieldUniqueNameBytes() { java.lang.Object ref = sourceFieldUniqueName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sourceFieldUniqueName_ = 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 (!getDestinationFieldKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destinationFieldKey_); } if (destinationFieldDataType_ != com.passkit.grpc.Template.DataType.DATA_TYPE_NONE.getNumber()) { output.writeEnum(2, destinationFieldDataType_); } if (isRequired_ != false) { output.writeBool(3, isRequired_); } if (!getSourceFieldUniqueNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceFieldUniqueName_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDestinationFieldKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destinationFieldKey_); } if (destinationFieldDataType_ != com.passkit.grpc.Template.DataType.DATA_TYPE_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, destinationFieldDataType_); } if (isRequired_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isRequired_); } if (!getSourceFieldUniqueNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceFieldUniqueName_); } 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.Integration.FieldMapping)) { return super.equals(obj); } com.passkit.grpc.Integration.FieldMapping other = (com.passkit.grpc.Integration.FieldMapping) obj; if (!getDestinationFieldKey() .equals(other.getDestinationFieldKey())) return false; if (destinationFieldDataType_ != other.destinationFieldDataType_) return false; if (getIsRequired() != other.getIsRequired()) return false; if (!getSourceFieldUniqueName() .equals(other.getSourceFieldUniqueName())) 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) + DESTINATIONFIELDKEY_FIELD_NUMBER; hash = (53 * hash) + getDestinationFieldKey().hashCode(); hash = (37 * hash) + DESTINATIONFIELDDATATYPE_FIELD_NUMBER; hash = (53 * hash) + destinationFieldDataType_; hash = (37 * hash) + ISREQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsRequired()); hash = (37 * hash) + SOURCEFIELDUNIQUENAME_FIELD_NUMBER; hash = (53 * hash) + getSourceFieldUniqueName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Integration.FieldMapping parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.FieldMapping 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.Integration.FieldMapping parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.FieldMapping 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.Integration.FieldMapping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.FieldMapping parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Integration.FieldMapping parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.FieldMapping 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.Integration.FieldMapping parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.FieldMapping 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.Integration.FieldMapping parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.FieldMapping 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.Integration.FieldMapping 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; } /** *
     * Sets up source and destination field
     * 
* * Protobuf type {@code io.FieldMapping} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.FieldMapping) com.passkit.grpc.Integration.FieldMappingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_FieldMapping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_FieldMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.FieldMapping.class, com.passkit.grpc.Integration.FieldMapping.Builder.class); } // Construct using com.passkit.grpc.Integration.FieldMapping.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(); destinationFieldKey_ = ""; destinationFieldDataType_ = 0; isRequired_ = false; sourceFieldUniqueName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Integration.internal_static_io_FieldMapping_descriptor; } @java.lang.Override public com.passkit.grpc.Integration.FieldMapping getDefaultInstanceForType() { return com.passkit.grpc.Integration.FieldMapping.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Integration.FieldMapping build() { com.passkit.grpc.Integration.FieldMapping result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Integration.FieldMapping buildPartial() { com.passkit.grpc.Integration.FieldMapping result = new com.passkit.grpc.Integration.FieldMapping(this); result.destinationFieldKey_ = destinationFieldKey_; result.destinationFieldDataType_ = destinationFieldDataType_; result.isRequired_ = isRequired_; result.sourceFieldUniqueName_ = sourceFieldUniqueName_; 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.Integration.FieldMapping) { return mergeFrom((com.passkit.grpc.Integration.FieldMapping)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Integration.FieldMapping other) { if (other == com.passkit.grpc.Integration.FieldMapping.getDefaultInstance()) return this; if (!other.getDestinationFieldKey().isEmpty()) { destinationFieldKey_ = other.destinationFieldKey_; onChanged(); } if (other.destinationFieldDataType_ != 0) { setDestinationFieldDataTypeValue(other.getDestinationFieldDataTypeValue()); } if (other.getIsRequired() != false) { setIsRequired(other.getIsRequired()); } if (!other.getSourceFieldUniqueName().isEmpty()) { sourceFieldUniqueName_ = other.sourceFieldUniqueName_; 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.Integration.FieldMapping parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Integration.FieldMapping) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object destinationFieldKey_ = ""; /** *
       * Field string key of destination data field.
       * 
* * string destinationFieldKey = 1; * @return The destinationFieldKey. */ public java.lang.String getDestinationFieldKey() { java.lang.Object ref = destinationFieldKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationFieldKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Field string key of destination data field.
       * 
* * string destinationFieldKey = 1; * @return The bytes for destinationFieldKey. */ public com.google.protobuf.ByteString getDestinationFieldKeyBytes() { java.lang.Object ref = destinationFieldKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationFieldKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Field string key of destination data field.
       * 
* * string destinationFieldKey = 1; * @param value The destinationFieldKey to set. * @return This builder for chaining. */ public Builder setDestinationFieldKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } destinationFieldKey_ = value; onChanged(); return this; } /** *
       * Field string key of destination data field.
       * 
* * string destinationFieldKey = 1; * @return This builder for chaining. */ public Builder clearDestinationFieldKey() { destinationFieldKey_ = getDefaultInstance().getDestinationFieldKey(); onChanged(); return this; } /** *
       * Field string key of destination data field.
       * 
* * string destinationFieldKey = 1; * @param value The bytes for destinationFieldKey to set. * @return This builder for chaining. */ public Builder setDestinationFieldKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationFieldKey_ = value; onChanged(); return this; } private int destinationFieldDataType_ = 0; /** *
       * Field string key of destination data field.
       * 
* * .io.DataType destinationFieldDataType = 2; * @return The enum numeric value on the wire for destinationFieldDataType. */ @java.lang.Override public int getDestinationFieldDataTypeValue() { return destinationFieldDataType_; } /** *
       * Field string key of destination data field.
       * 
* * .io.DataType destinationFieldDataType = 2; * @param value The enum numeric value on the wire for destinationFieldDataType to set. * @return This builder for chaining. */ public Builder setDestinationFieldDataTypeValue(int value) { destinationFieldDataType_ = value; onChanged(); return this; } /** *
       * Field string key of destination data field.
       * 
* * .io.DataType destinationFieldDataType = 2; * @return The destinationFieldDataType. */ @java.lang.Override public com.passkit.grpc.Template.DataType getDestinationFieldDataType() { @SuppressWarnings("deprecation") com.passkit.grpc.Template.DataType result = com.passkit.grpc.Template.DataType.valueOf(destinationFieldDataType_); return result == null ? com.passkit.grpc.Template.DataType.UNRECOGNIZED : result; } /** *
       * Field string key of destination data field.
       * 
* * .io.DataType destinationFieldDataType = 2; * @param value The destinationFieldDataType to set. * @return This builder for chaining. */ public Builder setDestinationFieldDataType(com.passkit.grpc.Template.DataType value) { if (value == null) { throw new NullPointerException(); } destinationFieldDataType_ = value.getNumber(); onChanged(); return this; } /** *
       * Field string key of destination data field.
       * 
* * .io.DataType destinationFieldDataType = 2; * @return This builder for chaining. */ public Builder clearDestinationFieldDataType() { destinationFieldDataType_ = 0; onChanged(); return this; } private boolean isRequired_ ; /** *
       * If true, when value is empty default data will be used.
       * 
* * bool isRequired = 3; * @return The isRequired. */ @java.lang.Override public boolean getIsRequired() { return isRequired_; } /** *
       * If true, when value is empty default data will be used.
       * 
* * bool isRequired = 3; * @param value The isRequired to set. * @return This builder for chaining. */ public Builder setIsRequired(boolean value) { isRequired_ = value; onChanged(); return this; } /** *
       * If true, when value is empty default data will be used.
       * 
* * bool isRequired = 3; * @return This builder for chaining. */ public Builder clearIsRequired() { isRequired_ = false; onChanged(); return this; } private java.lang.Object sourceFieldUniqueName_ = ""; /** *
       * Unique name of data field which becomes the data source.
       * 
* * string sourceFieldUniqueName = 4; * @return The sourceFieldUniqueName. */ public java.lang.String getSourceFieldUniqueName() { java.lang.Object ref = sourceFieldUniqueName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFieldUniqueName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Unique name of data field which becomes the data source.
       * 
* * string sourceFieldUniqueName = 4; * @return The bytes for sourceFieldUniqueName. */ public com.google.protobuf.ByteString getSourceFieldUniqueNameBytes() { java.lang.Object ref = sourceFieldUniqueName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sourceFieldUniqueName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Unique name of data field which becomes the data source.
       * 
* * string sourceFieldUniqueName = 4; * @param value The sourceFieldUniqueName to set. * @return This builder for chaining. */ public Builder setSourceFieldUniqueName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceFieldUniqueName_ = value; onChanged(); return this; } /** *
       * Unique name of data field which becomes the data source.
       * 
* * string sourceFieldUniqueName = 4; * @return This builder for chaining. */ public Builder clearSourceFieldUniqueName() { sourceFieldUniqueName_ = getDefaultInstance().getSourceFieldUniqueName(); onChanged(); return this; } /** *
       * Unique name of data field which becomes the data source.
       * 
* * string sourceFieldUniqueName = 4; * @param value The bytes for sourceFieldUniqueName to set. * @return This builder for chaining. */ public Builder setSourceFieldUniqueNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceFieldUniqueName_ = 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:io.FieldMapping) } // @@protoc_insertion_point(class_scope:io.FieldMapping) private static final com.passkit.grpc.Integration.FieldMapping DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Integration.FieldMapping(); } public static com.passkit.grpc.Integration.FieldMapping getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FieldMapping parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FieldMapping(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.Integration.FieldMapping getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WebhookConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:io.WebhookConfig) com.google.protobuf.MessageOrBuilder { /** *
     * The destination url for PassKit backend to send the data to.
     * 
* * string targetUrl = 1; * @return The targetUrl. */ java.lang.String getTargetUrl(); /** *
     * The destination url for PassKit backend to send the data to.
     * 
* * string targetUrl = 1; * @return The bytes for targetUrl. */ com.google.protobuf.ByteString getTargetUrlBytes(); /** * .io.ActionMethod actionMethod = 2; * @return The enum numeric value on the wire for actionMethod. */ int getActionMethodValue(); /** * .io.ActionMethod actionMethod = 2; * @return The actionMethod. */ com.passkit.grpc.Integration.ActionMethod getActionMethod(); /** *
     * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
     * 
* * .io.FieldMapping fieldMapping = 3; * @return Whether the fieldMapping field is set. */ boolean hasFieldMapping(); /** *
     * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
     * 
* * .io.FieldMapping fieldMapping = 3; * @return The fieldMapping. */ com.passkit.grpc.Integration.FieldMapping getFieldMapping(); /** *
     * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
     * 
* * .io.FieldMapping fieldMapping = 3; */ com.passkit.grpc.Integration.FieldMappingOrBuilder getFieldMappingOrBuilder(); } /** * Protobuf type {@code io.WebhookConfig} */ public static final class WebhookConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.WebhookConfig) WebhookConfigOrBuilder { private static final long serialVersionUID = 0L; // Use WebhookConfig.newBuilder() to construct. private WebhookConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WebhookConfig() { targetUrl_ = ""; actionMethod_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WebhookConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WebhookConfig( 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(); targetUrl_ = s; break; } case 16: { int rawValue = input.readEnum(); actionMethod_ = rawValue; break; } case 26: { com.passkit.grpc.Integration.FieldMapping.Builder subBuilder = null; if (fieldMapping_ != null) { subBuilder = fieldMapping_.toBuilder(); } fieldMapping_ = input.readMessage(com.passkit.grpc.Integration.FieldMapping.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fieldMapping_); fieldMapping_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_WebhookConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_WebhookConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.WebhookConfig.class, com.passkit.grpc.Integration.WebhookConfig.Builder.class); } public static final int TARGETURL_FIELD_NUMBER = 1; private volatile java.lang.Object targetUrl_; /** *
     * The destination url for PassKit backend to send the data to.
     * 
* * string targetUrl = 1; * @return The targetUrl. */ @java.lang.Override public java.lang.String getTargetUrl() { java.lang.Object ref = targetUrl_; 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(); targetUrl_ = s; return s; } } /** *
     * The destination url for PassKit backend to send the data to.
     * 
* * string targetUrl = 1; * @return The bytes for targetUrl. */ @java.lang.Override public com.google.protobuf.ByteString getTargetUrlBytes() { java.lang.Object ref = targetUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACTIONMETHOD_FIELD_NUMBER = 2; private int actionMethod_; /** * .io.ActionMethod actionMethod = 2; * @return The enum numeric value on the wire for actionMethod. */ @java.lang.Override public int getActionMethodValue() { return actionMethod_; } /** * .io.ActionMethod actionMethod = 2; * @return The actionMethod. */ @java.lang.Override public com.passkit.grpc.Integration.ActionMethod getActionMethod() { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.ActionMethod result = com.passkit.grpc.Integration.ActionMethod.valueOf(actionMethod_); return result == null ? com.passkit.grpc.Integration.ActionMethod.UNRECOGNIZED : result; } public static final int FIELDMAPPING_FIELD_NUMBER = 3; private com.passkit.grpc.Integration.FieldMapping fieldMapping_; /** *
     * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
     * 
* * .io.FieldMapping fieldMapping = 3; * @return Whether the fieldMapping field is set. */ @java.lang.Override public boolean hasFieldMapping() { return fieldMapping_ != null; } /** *
     * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
     * 
* * .io.FieldMapping fieldMapping = 3; * @return The fieldMapping. */ @java.lang.Override public com.passkit.grpc.Integration.FieldMapping getFieldMapping() { return fieldMapping_ == null ? com.passkit.grpc.Integration.FieldMapping.getDefaultInstance() : fieldMapping_; } /** *
     * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
     * 
* * .io.FieldMapping fieldMapping = 3; */ @java.lang.Override public com.passkit.grpc.Integration.FieldMappingOrBuilder getFieldMappingOrBuilder() { return getFieldMapping(); } 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 (!getTargetUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetUrl_); } if (actionMethod_ != com.passkit.grpc.Integration.ActionMethod.METHOD_NONE.getNumber()) { output.writeEnum(2, actionMethod_); } if (fieldMapping_ != null) { output.writeMessage(3, getFieldMapping()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTargetUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetUrl_); } if (actionMethod_ != com.passkit.grpc.Integration.ActionMethod.METHOD_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, actionMethod_); } if (fieldMapping_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFieldMapping()); } 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.Integration.WebhookConfig)) { return super.equals(obj); } com.passkit.grpc.Integration.WebhookConfig other = (com.passkit.grpc.Integration.WebhookConfig) obj; if (!getTargetUrl() .equals(other.getTargetUrl())) return false; if (actionMethod_ != other.actionMethod_) return false; if (hasFieldMapping() != other.hasFieldMapping()) return false; if (hasFieldMapping()) { if (!getFieldMapping() .equals(other.getFieldMapping())) 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) + TARGETURL_FIELD_NUMBER; hash = (53 * hash) + getTargetUrl().hashCode(); hash = (37 * hash) + ACTIONMETHOD_FIELD_NUMBER; hash = (53 * hash) + actionMethod_; if (hasFieldMapping()) { hash = (37 * hash) + FIELDMAPPING_FIELD_NUMBER; hash = (53 * hash) + getFieldMapping().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Integration.WebhookConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.WebhookConfig 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.Integration.WebhookConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.WebhookConfig 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.Integration.WebhookConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.WebhookConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Integration.WebhookConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.WebhookConfig 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.Integration.WebhookConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.WebhookConfig 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.Integration.WebhookConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.WebhookConfig 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.Integration.WebhookConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code io.WebhookConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.WebhookConfig) com.passkit.grpc.Integration.WebhookConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_WebhookConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_WebhookConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.WebhookConfig.class, com.passkit.grpc.Integration.WebhookConfig.Builder.class); } // Construct using com.passkit.grpc.Integration.WebhookConfig.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(); targetUrl_ = ""; actionMethod_ = 0; if (fieldMappingBuilder_ == null) { fieldMapping_ = null; } else { fieldMapping_ = null; fieldMappingBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Integration.internal_static_io_WebhookConfig_descriptor; } @java.lang.Override public com.passkit.grpc.Integration.WebhookConfig getDefaultInstanceForType() { return com.passkit.grpc.Integration.WebhookConfig.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Integration.WebhookConfig build() { com.passkit.grpc.Integration.WebhookConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Integration.WebhookConfig buildPartial() { com.passkit.grpc.Integration.WebhookConfig result = new com.passkit.grpc.Integration.WebhookConfig(this); result.targetUrl_ = targetUrl_; result.actionMethod_ = actionMethod_; if (fieldMappingBuilder_ == null) { result.fieldMapping_ = fieldMapping_; } else { result.fieldMapping_ = fieldMappingBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.passkit.grpc.Integration.WebhookConfig) { return mergeFrom((com.passkit.grpc.Integration.WebhookConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Integration.WebhookConfig other) { if (other == com.passkit.grpc.Integration.WebhookConfig.getDefaultInstance()) return this; if (!other.getTargetUrl().isEmpty()) { targetUrl_ = other.targetUrl_; onChanged(); } if (other.actionMethod_ != 0) { setActionMethodValue(other.getActionMethodValue()); } if (other.hasFieldMapping()) { mergeFieldMapping(other.getFieldMapping()); } 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.Integration.WebhookConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Integration.WebhookConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object targetUrl_ = ""; /** *
       * The destination url for PassKit backend to send the data to.
       * 
* * string targetUrl = 1; * @return The targetUrl. */ public java.lang.String getTargetUrl() { java.lang.Object ref = targetUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The destination url for PassKit backend to send the data to.
       * 
* * string targetUrl = 1; * @return The bytes for targetUrl. */ public com.google.protobuf.ByteString getTargetUrlBytes() { java.lang.Object ref = targetUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The destination url for PassKit backend to send the data to.
       * 
* * string targetUrl = 1; * @param value The targetUrl to set. * @return This builder for chaining. */ public Builder setTargetUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } targetUrl_ = value; onChanged(); return this; } /** *
       * The destination url for PassKit backend to send the data to.
       * 
* * string targetUrl = 1; * @return This builder for chaining. */ public Builder clearTargetUrl() { targetUrl_ = getDefaultInstance().getTargetUrl(); onChanged(); return this; } /** *
       * The destination url for PassKit backend to send the data to.
       * 
* * string targetUrl = 1; * @param value The bytes for targetUrl to set. * @return This builder for chaining. */ public Builder setTargetUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetUrl_ = value; onChanged(); return this; } private int actionMethod_ = 0; /** * .io.ActionMethod actionMethod = 2; * @return The enum numeric value on the wire for actionMethod. */ @java.lang.Override public int getActionMethodValue() { return actionMethod_; } /** * .io.ActionMethod actionMethod = 2; * @param value The enum numeric value on the wire for actionMethod to set. * @return This builder for chaining. */ public Builder setActionMethodValue(int value) { actionMethod_ = value; onChanged(); return this; } /** * .io.ActionMethod actionMethod = 2; * @return The actionMethod. */ @java.lang.Override public com.passkit.grpc.Integration.ActionMethod getActionMethod() { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.ActionMethod result = com.passkit.grpc.Integration.ActionMethod.valueOf(actionMethod_); return result == null ? com.passkit.grpc.Integration.ActionMethod.UNRECOGNIZED : result; } /** * .io.ActionMethod actionMethod = 2; * @param value The actionMethod to set. * @return This builder for chaining. */ public Builder setActionMethod(com.passkit.grpc.Integration.ActionMethod value) { if (value == null) { throw new NullPointerException(); } actionMethod_ = value.getNumber(); onChanged(); return this; } /** * .io.ActionMethod actionMethod = 2; * @return This builder for chaining. */ public Builder clearActionMethod() { actionMethod_ = 0; onChanged(); return this; } private com.passkit.grpc.Integration.FieldMapping fieldMapping_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Integration.FieldMapping, com.passkit.grpc.Integration.FieldMapping.Builder, com.passkit.grpc.Integration.FieldMappingOrBuilder> fieldMappingBuilder_; /** *
       * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
       * 
* * .io.FieldMapping fieldMapping = 3; * @return Whether the fieldMapping field is set. */ public boolean hasFieldMapping() { return fieldMappingBuilder_ != null || fieldMapping_ != null; } /** *
       * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
       * 
* * .io.FieldMapping fieldMapping = 3; * @return The fieldMapping. */ public com.passkit.grpc.Integration.FieldMapping getFieldMapping() { if (fieldMappingBuilder_ == null) { return fieldMapping_ == null ? com.passkit.grpc.Integration.FieldMapping.getDefaultInstance() : fieldMapping_; } else { return fieldMappingBuilder_.getMessage(); } } /** *
       * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
       * 
* * .io.FieldMapping fieldMapping = 3; */ public Builder setFieldMapping(com.passkit.grpc.Integration.FieldMapping value) { if (fieldMappingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldMapping_ = value; onChanged(); } else { fieldMappingBuilder_.setMessage(value); } return this; } /** *
       * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
       * 
* * .io.FieldMapping fieldMapping = 3; */ public Builder setFieldMapping( com.passkit.grpc.Integration.FieldMapping.Builder builderForValue) { if (fieldMappingBuilder_ == null) { fieldMapping_ = builderForValue.build(); onChanged(); } else { fieldMappingBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
       * 
* * .io.FieldMapping fieldMapping = 3; */ public Builder mergeFieldMapping(com.passkit.grpc.Integration.FieldMapping value) { if (fieldMappingBuilder_ == null) { if (fieldMapping_ != null) { fieldMapping_ = com.passkit.grpc.Integration.FieldMapping.newBuilder(fieldMapping_).mergeFrom(value).buildPartial(); } else { fieldMapping_ = value; } onChanged(); } else { fieldMappingBuilder_.mergeFrom(value); } return this; } /** *
       * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
       * 
* * .io.FieldMapping fieldMapping = 3; */ public Builder clearFieldMapping() { if (fieldMappingBuilder_ == null) { fieldMapping_ = null; onChanged(); } else { fieldMapping_ = null; fieldMappingBuilder_ = null; } return this; } /** *
       * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
       * 
* * .io.FieldMapping fieldMapping = 3; */ public com.passkit.grpc.Integration.FieldMapping.Builder getFieldMappingBuilder() { onChanged(); return getFieldMappingFieldBuilder().getBuilder(); } /** *
       * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
       * 
* * .io.FieldMapping fieldMapping = 3; */ public com.passkit.grpc.Integration.FieldMappingOrBuilder getFieldMappingOrBuilder() { if (fieldMappingBuilder_ != null) { return fieldMappingBuilder_.getMessageOrBuilder(); } else { return fieldMapping_ == null ? com.passkit.grpc.Integration.FieldMapping.getDefaultInstance() : fieldMapping_; } } /** *
       * Set source fields (fields used within the PassKit platform) and destination fields (fields set on the third party app).
       * 
* * .io.FieldMapping fieldMapping = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Integration.FieldMapping, com.passkit.grpc.Integration.FieldMapping.Builder, com.passkit.grpc.Integration.FieldMappingOrBuilder> getFieldMappingFieldBuilder() { if (fieldMappingBuilder_ == null) { fieldMappingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Integration.FieldMapping, com.passkit.grpc.Integration.FieldMapping.Builder, com.passkit.grpc.Integration.FieldMappingOrBuilder>( getFieldMapping(), getParentForChildren(), isClean()); fieldMapping_ = null; } return fieldMappingBuilder_; } @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:io.WebhookConfig) } // @@protoc_insertion_point(class_scope:io.WebhookConfig) private static final com.passkit.grpc.Integration.WebhookConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Integration.WebhookConfig(); } public static com.passkit.grpc.Integration.WebhookConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WebhookConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WebhookConfig(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.Integration.WebhookConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SinkSubscriptionPayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:io.SinkSubscriptionPayload) com.google.protobuf.MessageOrBuilder { /** *
     * PassEventId enum string to identify trigger event type
     * 
* * string event = 1; * @return The event. */ java.lang.String getEvent(); /** *
     * PassEventId enum string to identify trigger event type
     * 
* * string event = 1; * @return The bytes for event. */ com.google.protobuf.ByteString getEventBytes(); /** * .io.Pass pass = 2; * @return Whether the pass field is set. */ boolean hasPass(); /** * .io.Pass pass = 2; * @return The pass. */ com.passkit.grpc.PassOuterClass.Pass getPass(); /** * .io.Pass pass = 2; */ com.passkit.grpc.PassOuterClass.PassOrBuilder getPassOrBuilder(); } /** * Protobuf type {@code io.SinkSubscriptionPayload} */ public static final class SinkSubscriptionPayload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.SinkSubscriptionPayload) SinkSubscriptionPayloadOrBuilder { private static final long serialVersionUID = 0L; // Use SinkSubscriptionPayload.newBuilder() to construct. private SinkSubscriptionPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SinkSubscriptionPayload() { event_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SinkSubscriptionPayload(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SinkSubscriptionPayload( 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(); event_ = s; break; } case 18: { com.passkit.grpc.PassOuterClass.Pass.Builder subBuilder = null; if (pass_ != null) { subBuilder = pass_.toBuilder(); } pass_ = input.readMessage(com.passkit.grpc.PassOuterClass.Pass.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pass_); pass_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_SinkSubscriptionPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_SinkSubscriptionPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.SinkSubscriptionPayload.class, com.passkit.grpc.Integration.SinkSubscriptionPayload.Builder.class); } public static final int EVENT_FIELD_NUMBER = 1; private volatile java.lang.Object event_; /** *
     * PassEventId enum string to identify trigger event type
     * 
* * string event = 1; * @return The event. */ @java.lang.Override public java.lang.String getEvent() { java.lang.Object ref = event_; 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(); event_ = s; return s; } } /** *
     * PassEventId enum string to identify trigger event type
     * 
* * string event = 1; * @return The bytes for event. */ @java.lang.Override public com.google.protobuf.ByteString getEventBytes() { java.lang.Object ref = event_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); event_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASS_FIELD_NUMBER = 2; private com.passkit.grpc.PassOuterClass.Pass pass_; /** * .io.Pass pass = 2; * @return Whether the pass field is set. */ @java.lang.Override public boolean hasPass() { return pass_ != null; } /** * .io.Pass pass = 2; * @return The pass. */ @java.lang.Override public com.passkit.grpc.PassOuterClass.Pass getPass() { return pass_ == null ? com.passkit.grpc.PassOuterClass.Pass.getDefaultInstance() : pass_; } /** * .io.Pass pass = 2; */ @java.lang.Override public com.passkit.grpc.PassOuterClass.PassOrBuilder getPassOrBuilder() { return getPass(); } 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 (!getEventBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, event_); } if (pass_ != null) { output.writeMessage(2, getPass()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getEventBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, event_); } if (pass_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPass()); } 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.Integration.SinkSubscriptionPayload)) { return super.equals(obj); } com.passkit.grpc.Integration.SinkSubscriptionPayload other = (com.passkit.grpc.Integration.SinkSubscriptionPayload) obj; if (!getEvent() .equals(other.getEvent())) return false; if (hasPass() != other.hasPass()) return false; if (hasPass()) { if (!getPass() .equals(other.getPass())) 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) + EVENT_FIELD_NUMBER; hash = (53 * hash) + getEvent().hashCode(); if (hasPass()) { hash = (37 * hash) + PASS_FIELD_NUMBER; hash = (53 * hash) + getPass().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Integration.SinkSubscriptionPayload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SinkSubscriptionPayload 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.Integration.SinkSubscriptionPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SinkSubscriptionPayload 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.Integration.SinkSubscriptionPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SinkSubscriptionPayload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Integration.SinkSubscriptionPayload parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SinkSubscriptionPayload 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.Integration.SinkSubscriptionPayload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SinkSubscriptionPayload 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.Integration.SinkSubscriptionPayload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SinkSubscriptionPayload 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.Integration.SinkSubscriptionPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code io.SinkSubscriptionPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.SinkSubscriptionPayload) com.passkit.grpc.Integration.SinkSubscriptionPayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_SinkSubscriptionPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_SinkSubscriptionPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.SinkSubscriptionPayload.class, com.passkit.grpc.Integration.SinkSubscriptionPayload.Builder.class); } // Construct using com.passkit.grpc.Integration.SinkSubscriptionPayload.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(); event_ = ""; if (passBuilder_ == null) { pass_ = null; } else { pass_ = null; passBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Integration.internal_static_io_SinkSubscriptionPayload_descriptor; } @java.lang.Override public com.passkit.grpc.Integration.SinkSubscriptionPayload getDefaultInstanceForType() { return com.passkit.grpc.Integration.SinkSubscriptionPayload.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Integration.SinkSubscriptionPayload build() { com.passkit.grpc.Integration.SinkSubscriptionPayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Integration.SinkSubscriptionPayload buildPartial() { com.passkit.grpc.Integration.SinkSubscriptionPayload result = new com.passkit.grpc.Integration.SinkSubscriptionPayload(this); result.event_ = event_; if (passBuilder_ == null) { result.pass_ = pass_; } else { result.pass_ = passBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.passkit.grpc.Integration.SinkSubscriptionPayload) { return mergeFrom((com.passkit.grpc.Integration.SinkSubscriptionPayload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Integration.SinkSubscriptionPayload other) { if (other == com.passkit.grpc.Integration.SinkSubscriptionPayload.getDefaultInstance()) return this; if (!other.getEvent().isEmpty()) { event_ = other.event_; onChanged(); } if (other.hasPass()) { mergePass(other.getPass()); } 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.Integration.SinkSubscriptionPayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Integration.SinkSubscriptionPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object event_ = ""; /** *
       * PassEventId enum string to identify trigger event type
       * 
* * string event = 1; * @return The event. */ public java.lang.String getEvent() { java.lang.Object ref = event_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); event_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * PassEventId enum string to identify trigger event type
       * 
* * string event = 1; * @return The bytes for event. */ public com.google.protobuf.ByteString getEventBytes() { java.lang.Object ref = event_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); event_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * PassEventId enum string to identify trigger event type
       * 
* * string event = 1; * @param value The event to set. * @return This builder for chaining. */ public Builder setEvent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); return this; } /** *
       * PassEventId enum string to identify trigger event type
       * 
* * string event = 1; * @return This builder for chaining. */ public Builder clearEvent() { event_ = getDefaultInstance().getEvent(); onChanged(); return this; } /** *
       * PassEventId enum string to identify trigger event type
       * 
* * string event = 1; * @param value The bytes for event to set. * @return This builder for chaining. */ public Builder setEventBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); event_ = value; onChanged(); return this; } private com.passkit.grpc.PassOuterClass.Pass pass_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.PassOuterClass.Pass, com.passkit.grpc.PassOuterClass.Pass.Builder, com.passkit.grpc.PassOuterClass.PassOrBuilder> passBuilder_; /** * .io.Pass pass = 2; * @return Whether the pass field is set. */ public boolean hasPass() { return passBuilder_ != null || pass_ != null; } /** * .io.Pass pass = 2; * @return The pass. */ public com.passkit.grpc.PassOuterClass.Pass getPass() { if (passBuilder_ == null) { return pass_ == null ? com.passkit.grpc.PassOuterClass.Pass.getDefaultInstance() : pass_; } else { return passBuilder_.getMessage(); } } /** * .io.Pass pass = 2; */ public Builder setPass(com.passkit.grpc.PassOuterClass.Pass value) { if (passBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pass_ = value; onChanged(); } else { passBuilder_.setMessage(value); } return this; } /** * .io.Pass pass = 2; */ public Builder setPass( com.passkit.grpc.PassOuterClass.Pass.Builder builderForValue) { if (passBuilder_ == null) { pass_ = builderForValue.build(); onChanged(); } else { passBuilder_.setMessage(builderForValue.build()); } return this; } /** * .io.Pass pass = 2; */ public Builder mergePass(com.passkit.grpc.PassOuterClass.Pass value) { if (passBuilder_ == null) { if (pass_ != null) { pass_ = com.passkit.grpc.PassOuterClass.Pass.newBuilder(pass_).mergeFrom(value).buildPartial(); } else { pass_ = value; } onChanged(); } else { passBuilder_.mergeFrom(value); } return this; } /** * .io.Pass pass = 2; */ public Builder clearPass() { if (passBuilder_ == null) { pass_ = null; onChanged(); } else { pass_ = null; passBuilder_ = null; } return this; } /** * .io.Pass pass = 2; */ public com.passkit.grpc.PassOuterClass.Pass.Builder getPassBuilder() { onChanged(); return getPassFieldBuilder().getBuilder(); } /** * .io.Pass pass = 2; */ public com.passkit.grpc.PassOuterClass.PassOrBuilder getPassOrBuilder() { if (passBuilder_ != null) { return passBuilder_.getMessageOrBuilder(); } else { return pass_ == null ? com.passkit.grpc.PassOuterClass.Pass.getDefaultInstance() : pass_; } } /** * .io.Pass pass = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.PassOuterClass.Pass, com.passkit.grpc.PassOuterClass.Pass.Builder, com.passkit.grpc.PassOuterClass.PassOrBuilder> getPassFieldBuilder() { if (passBuilder_ == null) { passBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.PassOuterClass.Pass, com.passkit.grpc.PassOuterClass.Pass.Builder, com.passkit.grpc.PassOuterClass.PassOrBuilder>( getPass(), getParentForChildren(), isClean()); pass_ = null; } return passBuilder_; } @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:io.SinkSubscriptionPayload) } // @@protoc_insertion_point(class_scope:io.SinkSubscriptionPayload) private static final com.passkit.grpc.Integration.SinkSubscriptionPayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Integration.SinkSubscriptionPayload(); } public static com.passkit.grpc.Integration.SinkSubscriptionPayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SinkSubscriptionPayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SinkSubscriptionPayload(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.Integration.SinkSubscriptionPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SinkSubscriptionOrBuilder extends // @@protoc_insertion_point(interface_extends:io.SinkSubscription) com.google.protobuf.MessageOrBuilder { /** *
     * The uuid for the sink subscription config.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * The uuid for the sink subscription config.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * The uuid for the class object.
     * 
* * string classId = 2; * @return The classId. */ java.lang.String getClassId(); /** *
     * The uuid for the class object.
     * 
* * string classId = 2; * @return The bytes for classId. */ com.google.protobuf.ByteString getClassIdBytes(); /** *
     * The protocol of class object which owns this sink subscription.
     * 
* * .io.PassProtocol protocol = 3; * @return The enum numeric value on the wire for protocol. */ int getProtocolValue(); /** *
     * The protocol of class object which owns this sink subscription.
     * 
* * .io.PassProtocol protocol = 3; * @return The protocol. */ com.passkit.grpc.Protocols.PassProtocol getProtocol(); /** *
     * Identifies pass event type you are subscribing to.
     * 
* * repeated .io.PassEventId passEventId = 4; * @return A list containing the passEventId. */ java.util.List getPassEventIdList(); /** *
     * Identifies pass event type you are subscribing to.
     * 
* * repeated .io.PassEventId passEventId = 4; * @return The count of passEventId. */ int getPassEventIdCount(); /** *
     * Identifies pass event type you are subscribing to.
     * 
* * repeated .io.PassEventId passEventId = 4; * @param index The index of the element to return. * @return The passEventId at the given index. */ com.passkit.grpc.Integration.PassEventId getPassEventId(int index); /** *
     * Identifies pass event type you are subscribing to.
     * 
* * repeated .io.PassEventId passEventId = 4; * @return A list containing the enum numeric values on the wire for passEventId. */ java.util.List getPassEventIdValueList(); /** *
     * Identifies pass event type you are subscribing to.
     * 
* * repeated .io.PassEventId passEventId = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of passEventId at the given index. */ int getPassEventIdValue(int index); /** * .io.IntegrationStatus status = 5; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .io.IntegrationStatus status = 5; * @return The status. */ com.passkit.grpc.Integration.IntegrationStatus getStatus(); /** * .io.ConfigurationType configType = 6; * @return The enum numeric value on the wire for configType. */ int getConfigTypeValue(); /** * .io.ConfigurationType configType = 6; * @return The configType. */ com.passkit.grpc.Integration.ConfigurationType getConfigType(); /** *
     * Configuration details for the integration.
     * 
* * string configuration = 7; * @return The configuration. */ java.lang.String getConfiguration(); /** *
     * Configuration details for the integration.
     * 
* * string configuration = 7; * @return The bytes for configuration. */ com.google.protobuf.ByteString getConfigurationBytes(); /** * .google.protobuf.Timestamp createdAt = 8; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** * .google.protobuf.Timestamp createdAt = 8; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** * .google.protobuf.Timestamp createdAt = 8; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** * .google.protobuf.Timestamp updatedAt = 9; * @return Whether the updatedAt field is set. */ boolean hasUpdatedAt(); /** * .google.protobuf.Timestamp updatedAt = 9; * @return The updatedAt. */ com.google.protobuf.Timestamp getUpdatedAt(); /** * .google.protobuf.Timestamp updatedAt = 9; */ com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); /** *
     * For membership protocol subscription.
     * 
* * .io.MembershipEventIds membershipEvents = 10; * @return Whether the membershipEvents field is set. */ boolean hasMembershipEvents(); /** *
     * For membership protocol subscription.
     * 
* * .io.MembershipEventIds membershipEvents = 10; * @return The membershipEvents. */ com.passkit.grpc.Integration.MembershipEventIds getMembershipEvents(); /** *
     * For membership protocol subscription.
     * 
* * .io.MembershipEventIds membershipEvents = 10; */ com.passkit.grpc.Integration.MembershipEventIdsOrBuilder getMembershipEventsOrBuilder(); /** *
     * For coupon protocol subscription.
     * 
* * .io.CouponEventIds couponEvents = 11; * @return Whether the couponEvents field is set. */ boolean hasCouponEvents(); /** *
     * For coupon protocol subscription.
     * 
* * .io.CouponEventIds couponEvents = 11; * @return The couponEvents. */ com.passkit.grpc.Integration.CouponEventIds getCouponEvents(); /** *
     * For coupon protocol subscription.
     * 
* * .io.CouponEventIds couponEvents = 11; */ com.passkit.grpc.Integration.CouponEventIdsOrBuilder getCouponEventsOrBuilder(); public com.passkit.grpc.Integration.SinkSubscription.ProtocolEventIdCase getProtocolEventIdCase(); } /** * Protobuf type {@code io.SinkSubscription} */ public static final class SinkSubscription extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.SinkSubscription) SinkSubscriptionOrBuilder { private static final long serialVersionUID = 0L; // Use SinkSubscription.newBuilder() to construct. private SinkSubscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SinkSubscription() { id_ = ""; classId_ = ""; protocol_ = 0; passEventId_ = java.util.Collections.emptyList(); status_ = 0; configType_ = 0; configuration_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SinkSubscription(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SinkSubscription( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); classId_ = s; break; } case 24: { int rawValue = input.readEnum(); protocol_ = rawValue; break; } case 32: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { passEventId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } passEventId_.add(rawValue); break; } case 34: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { passEventId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } passEventId_.add(rawValue); } input.popLimit(oldLimit); break; } case 40: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 48: { int rawValue = input.readEnum(); configType_ = rawValue; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); configuration_ = s; break; } case 66: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 74: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (updatedAt_ != null) { subBuilder = updatedAt_.toBuilder(); } updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updatedAt_); updatedAt_ = subBuilder.buildPartial(); } break; } case 82: { com.passkit.grpc.Integration.MembershipEventIds.Builder subBuilder = null; if (protocolEventIdCase_ == 10) { subBuilder = ((com.passkit.grpc.Integration.MembershipEventIds) protocolEventId_).toBuilder(); } protocolEventId_ = input.readMessage(com.passkit.grpc.Integration.MembershipEventIds.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.passkit.grpc.Integration.MembershipEventIds) protocolEventId_); protocolEventId_ = subBuilder.buildPartial(); } protocolEventIdCase_ = 10; break; } case 90: { com.passkit.grpc.Integration.CouponEventIds.Builder subBuilder = null; if (protocolEventIdCase_ == 11) { subBuilder = ((com.passkit.grpc.Integration.CouponEventIds) protocolEventId_).toBuilder(); } protocolEventId_ = input.readMessage(com.passkit.grpc.Integration.CouponEventIds.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.passkit.grpc.Integration.CouponEventIds) protocolEventId_); protocolEventId_ = subBuilder.buildPartial(); } protocolEventIdCase_ = 11; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { passEventId_ = java.util.Collections.unmodifiableList(passEventId_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_SinkSubscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_SinkSubscription_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.SinkSubscription.class, com.passkit.grpc.Integration.SinkSubscription.Builder.class); } private int protocolEventIdCase_ = 0; private java.lang.Object protocolEventId_; public enum ProtocolEventIdCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MEMBERSHIPEVENTS(10), COUPONEVENTS(11), PROTOCOLEVENTID_NOT_SET(0); private final int value; private ProtocolEventIdCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ProtocolEventIdCase valueOf(int value) { return forNumber(value); } public static ProtocolEventIdCase forNumber(int value) { switch (value) { case 10: return MEMBERSHIPEVENTS; case 11: return COUPONEVENTS; case 0: return PROTOCOLEVENTID_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ProtocolEventIdCase getProtocolEventIdCase() { return ProtocolEventIdCase.forNumber( protocolEventIdCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * The uuid for the sink subscription config.
     * 
* * 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; } } /** *
     * The uuid for the sink subscription config.
     * 
* * 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 CLASSID_FIELD_NUMBER = 2; private volatile java.lang.Object classId_; /** *
     * The uuid for the class object.
     * 
* * string classId = 2; * @return The classId. */ @java.lang.Override public java.lang.String getClassId() { java.lang.Object ref = classId_; 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(); classId_ = s; return s; } } /** *
     * The uuid for the class object.
     * 
* * string classId = 2; * @return The bytes for classId. */ @java.lang.Override public com.google.protobuf.ByteString getClassIdBytes() { java.lang.Object ref = classId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROTOCOL_FIELD_NUMBER = 3; private int protocol_; /** *
     * The protocol of class object which owns this sink subscription.
     * 
* * .io.PassProtocol protocol = 3; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
     * The protocol of class object which owns this sink subscription.
     * 
* * .io.PassProtocol protocol = 3; * @return The protocol. */ @java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() { @SuppressWarnings("deprecation") com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_); return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result; } public static final int PASSEVENTID_FIELD_NUMBER = 4; private java.util.List passEventId_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.Integration.PassEventId> passEventId_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.Integration.PassEventId>() { public com.passkit.grpc.Integration.PassEventId convert(java.lang.Integer from) { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.PassEventId result = com.passkit.grpc.Integration.PassEventId.valueOf(from); return result == null ? com.passkit.grpc.Integration.PassEventId.UNRECOGNIZED : result; } }; /** *
     * Identifies pass event type you are subscribing to.
     * 
* * repeated .io.PassEventId passEventId = 4; * @return A list containing the passEventId. */ @java.lang.Override public java.util.List getPassEventIdList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.Integration.PassEventId>(passEventId_, passEventId_converter_); } /** *
     * Identifies pass event type you are subscribing to.
     * 
* * repeated .io.PassEventId passEventId = 4; * @return The count of passEventId. */ @java.lang.Override public int getPassEventIdCount() { return passEventId_.size(); } /** *
     * Identifies pass event type you are subscribing to.
     * 
* * repeated .io.PassEventId passEventId = 4; * @param index The index of the element to return. * @return The passEventId at the given index. */ @java.lang.Override public com.passkit.grpc.Integration.PassEventId getPassEventId(int index) { return passEventId_converter_.convert(passEventId_.get(index)); } /** *
     * Identifies pass event type you are subscribing to.
     * 
* * repeated .io.PassEventId passEventId = 4; * @return A list containing the enum numeric values on the wire for passEventId. */ @java.lang.Override public java.util.List getPassEventIdValueList() { return passEventId_; } /** *
     * Identifies pass event type you are subscribing to.
     * 
* * repeated .io.PassEventId passEventId = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of passEventId at the given index. */ @java.lang.Override public int getPassEventIdValue(int index) { return passEventId_.get(index); } private int passEventIdMemoizedSerializedSize; public static final int STATUS_FIELD_NUMBER = 5; private int status_; /** * .io.IntegrationStatus status = 5; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .io.IntegrationStatus status = 5; * @return The status. */ @java.lang.Override public com.passkit.grpc.Integration.IntegrationStatus getStatus() { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.IntegrationStatus result = com.passkit.grpc.Integration.IntegrationStatus.valueOf(status_); return result == null ? com.passkit.grpc.Integration.IntegrationStatus.UNRECOGNIZED : result; } public static final int CONFIGTYPE_FIELD_NUMBER = 6; private int configType_; /** * .io.ConfigurationType configType = 6; * @return The enum numeric value on the wire for configType. */ @java.lang.Override public int getConfigTypeValue() { return configType_; } /** * .io.ConfigurationType configType = 6; * @return The configType. */ @java.lang.Override public com.passkit.grpc.Integration.ConfigurationType getConfigType() { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.ConfigurationType result = com.passkit.grpc.Integration.ConfigurationType.valueOf(configType_); return result == null ? com.passkit.grpc.Integration.ConfigurationType.UNRECOGNIZED : result; } public static final int CONFIGURATION_FIELD_NUMBER = 7; private volatile java.lang.Object configuration_; /** *
     * Configuration details for the integration.
     * 
* * string configuration = 7; * @return The configuration. */ @java.lang.Override public java.lang.String getConfiguration() { java.lang.Object ref = configuration_; 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(); configuration_ = s; return s; } } /** *
     * Configuration details for the integration.
     * 
* * string configuration = 7; * @return The bytes for configuration. */ @java.lang.Override public com.google.protobuf.ByteString getConfigurationBytes() { java.lang.Object ref = configuration_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); configuration_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATEDAT_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createdAt_; /** * .google.protobuf.Timestamp createdAt = 8; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** * .google.protobuf.Timestamp createdAt = 8; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** * .google.protobuf.Timestamp createdAt = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int UPDATEDAT_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updatedAt_; /** * .google.protobuf.Timestamp updatedAt = 9; * @return Whether the updatedAt field is set. */ @java.lang.Override public boolean hasUpdatedAt() { return updatedAt_ != null; } /** * .google.protobuf.Timestamp updatedAt = 9; * @return The updatedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdatedAt() { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } /** * .google.protobuf.Timestamp updatedAt = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { return getUpdatedAt(); } public static final int MEMBERSHIPEVENTS_FIELD_NUMBER = 10; /** *
     * For membership protocol subscription.
     * 
* * .io.MembershipEventIds membershipEvents = 10; * @return Whether the membershipEvents field is set. */ @java.lang.Override public boolean hasMembershipEvents() { return protocolEventIdCase_ == 10; } /** *
     * For membership protocol subscription.
     * 
* * .io.MembershipEventIds membershipEvents = 10; * @return The membershipEvents. */ @java.lang.Override public com.passkit.grpc.Integration.MembershipEventIds getMembershipEvents() { if (protocolEventIdCase_ == 10) { return (com.passkit.grpc.Integration.MembershipEventIds) protocolEventId_; } return com.passkit.grpc.Integration.MembershipEventIds.getDefaultInstance(); } /** *
     * For membership protocol subscription.
     * 
* * .io.MembershipEventIds membershipEvents = 10; */ @java.lang.Override public com.passkit.grpc.Integration.MembershipEventIdsOrBuilder getMembershipEventsOrBuilder() { if (protocolEventIdCase_ == 10) { return (com.passkit.grpc.Integration.MembershipEventIds) protocolEventId_; } return com.passkit.grpc.Integration.MembershipEventIds.getDefaultInstance(); } public static final int COUPONEVENTS_FIELD_NUMBER = 11; /** *
     * For coupon protocol subscription.
     * 
* * .io.CouponEventIds couponEvents = 11; * @return Whether the couponEvents field is set. */ @java.lang.Override public boolean hasCouponEvents() { return protocolEventIdCase_ == 11; } /** *
     * For coupon protocol subscription.
     * 
* * .io.CouponEventIds couponEvents = 11; * @return The couponEvents. */ @java.lang.Override public com.passkit.grpc.Integration.CouponEventIds getCouponEvents() { if (protocolEventIdCase_ == 11) { return (com.passkit.grpc.Integration.CouponEventIds) protocolEventId_; } return com.passkit.grpc.Integration.CouponEventIds.getDefaultInstance(); } /** *
     * For coupon protocol subscription.
     * 
* * .io.CouponEventIds couponEvents = 11; */ @java.lang.Override public com.passkit.grpc.Integration.CouponEventIdsOrBuilder getCouponEventsOrBuilder() { if (protocolEventIdCase_ == 11) { return (com.passkit.grpc.Integration.CouponEventIds) protocolEventId_; } return com.passkit.grpc.Integration.CouponEventIds.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!getClassIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, classId_); } if (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) { output.writeEnum(3, protocol_); } if (getPassEventIdList().size() > 0) { output.writeUInt32NoTag(34); output.writeUInt32NoTag(passEventIdMemoizedSerializedSize); } for (int i = 0; i < passEventId_.size(); i++) { output.writeEnumNoTag(passEventId_.get(i)); } if (status_ != com.passkit.grpc.Integration.IntegrationStatus.INTEGRATION_STATUS_NONE.getNumber()) { output.writeEnum(5, status_); } if (configType_ != com.passkit.grpc.Integration.ConfigurationType.CONFIGURATION_NONE.getNumber()) { output.writeEnum(6, configType_); } if (!getConfigurationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, configuration_); } if (createdAt_ != null) { output.writeMessage(8, getCreatedAt()); } if (updatedAt_ != null) { output.writeMessage(9, getUpdatedAt()); } if (protocolEventIdCase_ == 10) { output.writeMessage(10, (com.passkit.grpc.Integration.MembershipEventIds) protocolEventId_); } if (protocolEventIdCase_ == 11) { output.writeMessage(11, (com.passkit.grpc.Integration.CouponEventIds) protocolEventId_); } 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 (!getClassIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, classId_); } if (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, protocol_); } { int dataSize = 0; for (int i = 0; i < passEventId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(passEventId_.get(i)); } size += dataSize; if (!getPassEventIdList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }passEventIdMemoizedSerializedSize = dataSize; } if (status_ != com.passkit.grpc.Integration.IntegrationStatus.INTEGRATION_STATUS_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, status_); } if (configType_ != com.passkit.grpc.Integration.ConfigurationType.CONFIGURATION_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, configType_); } if (!getConfigurationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, configuration_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCreatedAt()); } if (updatedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getUpdatedAt()); } if (protocolEventIdCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.passkit.grpc.Integration.MembershipEventIds) protocolEventId_); } if (protocolEventIdCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.passkit.grpc.Integration.CouponEventIds) protocolEventId_); } 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.Integration.SinkSubscription)) { return super.equals(obj); } com.passkit.grpc.Integration.SinkSubscription other = (com.passkit.grpc.Integration.SinkSubscription) obj; if (!getId() .equals(other.getId())) return false; if (!getClassId() .equals(other.getClassId())) return false; if (protocol_ != other.protocol_) return false; if (!passEventId_.equals(other.passEventId_)) return false; if (status_ != other.status_) return false; if (configType_ != other.configType_) return false; if (!getConfiguration() .equals(other.getConfiguration())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasUpdatedAt() != other.hasUpdatedAt()) return false; if (hasUpdatedAt()) { if (!getUpdatedAt() .equals(other.getUpdatedAt())) return false; } if (!getProtocolEventIdCase().equals(other.getProtocolEventIdCase())) return false; switch (protocolEventIdCase_) { case 10: if (!getMembershipEvents() .equals(other.getMembershipEvents())) return false; break; case 11: if (!getCouponEvents() .equals(other.getCouponEvents())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + CLASSID_FIELD_NUMBER; hash = (53 * hash) + getClassId().hashCode(); hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + protocol_; if (getPassEventIdCount() > 0) { hash = (37 * hash) + PASSEVENTID_FIELD_NUMBER; hash = (53 * hash) + passEventId_.hashCode(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (37 * hash) + CONFIGTYPE_FIELD_NUMBER; hash = (53 * hash) + configType_; hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; hash = (53 * hash) + getConfiguration().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATEDAT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasUpdatedAt()) { hash = (37 * hash) + UPDATEDAT_FIELD_NUMBER; hash = (53 * hash) + getUpdatedAt().hashCode(); } switch (protocolEventIdCase_) { case 10: hash = (37 * hash) + MEMBERSHIPEVENTS_FIELD_NUMBER; hash = (53 * hash) + getMembershipEvents().hashCode(); break; case 11: hash = (37 * hash) + COUPONEVENTS_FIELD_NUMBER; hash = (53 * hash) + getCouponEvents().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Integration.SinkSubscription parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SinkSubscription 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.Integration.SinkSubscription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SinkSubscription 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.Integration.SinkSubscription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Integration.SinkSubscription parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Integration.SinkSubscription parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SinkSubscription 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.Integration.SinkSubscription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SinkSubscription 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.Integration.SinkSubscription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Integration.SinkSubscription 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.Integration.SinkSubscription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code io.SinkSubscription} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.SinkSubscription) com.passkit.grpc.Integration.SinkSubscriptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Integration.internal_static_io_SinkSubscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Integration.internal_static_io_SinkSubscription_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Integration.SinkSubscription.class, com.passkit.grpc.Integration.SinkSubscription.Builder.class); } // Construct using com.passkit.grpc.Integration.SinkSubscription.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_ = ""; classId_ = ""; protocol_ = 0; passEventId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; configType_ = 0; configuration_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (updatedAtBuilder_ == null) { updatedAt_ = null; } else { updatedAt_ = null; updatedAtBuilder_ = null; } protocolEventIdCase_ = 0; protocolEventId_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Integration.internal_static_io_SinkSubscription_descriptor; } @java.lang.Override public com.passkit.grpc.Integration.SinkSubscription getDefaultInstanceForType() { return com.passkit.grpc.Integration.SinkSubscription.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Integration.SinkSubscription build() { com.passkit.grpc.Integration.SinkSubscription result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Integration.SinkSubscription buildPartial() { com.passkit.grpc.Integration.SinkSubscription result = new com.passkit.grpc.Integration.SinkSubscription(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.classId_ = classId_; result.protocol_ = protocol_; if (((bitField0_ & 0x00000001) != 0)) { passEventId_ = java.util.Collections.unmodifiableList(passEventId_); bitField0_ = (bitField0_ & ~0x00000001); } result.passEventId_ = passEventId_; result.status_ = status_; result.configType_ = configType_; result.configuration_ = configuration_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (updatedAtBuilder_ == null) { result.updatedAt_ = updatedAt_; } else { result.updatedAt_ = updatedAtBuilder_.build(); } if (protocolEventIdCase_ == 10) { if (membershipEventsBuilder_ == null) { result.protocolEventId_ = protocolEventId_; } else { result.protocolEventId_ = membershipEventsBuilder_.build(); } } if (protocolEventIdCase_ == 11) { if (couponEventsBuilder_ == null) { result.protocolEventId_ = protocolEventId_; } else { result.protocolEventId_ = couponEventsBuilder_.build(); } } result.protocolEventIdCase_ = protocolEventIdCase_; 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.Integration.SinkSubscription) { return mergeFrom((com.passkit.grpc.Integration.SinkSubscription)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Integration.SinkSubscription other) { if (other == com.passkit.grpc.Integration.SinkSubscription.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getClassId().isEmpty()) { classId_ = other.classId_; onChanged(); } if (other.protocol_ != 0) { setProtocolValue(other.getProtocolValue()); } if (!other.passEventId_.isEmpty()) { if (passEventId_.isEmpty()) { passEventId_ = other.passEventId_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePassEventIdIsMutable(); passEventId_.addAll(other.passEventId_); } onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.configType_ != 0) { setConfigTypeValue(other.getConfigTypeValue()); } if (!other.getConfiguration().isEmpty()) { configuration_ = other.configuration_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasUpdatedAt()) { mergeUpdatedAt(other.getUpdatedAt()); } switch (other.getProtocolEventIdCase()) { case MEMBERSHIPEVENTS: { mergeMembershipEvents(other.getMembershipEvents()); break; } case COUPONEVENTS: { mergeCouponEvents(other.getCouponEvents()); break; } case PROTOCOLEVENTID_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.passkit.grpc.Integration.SinkSubscription parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Integration.SinkSubscription) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int protocolEventIdCase_ = 0; private java.lang.Object protocolEventId_; public ProtocolEventIdCase getProtocolEventIdCase() { return ProtocolEventIdCase.forNumber( protocolEventIdCase_); } public Builder clearProtocolEventId() { protocolEventIdCase_ = 0; protocolEventId_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * The uuid for the sink subscription config.
       * 
* * 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; } } /** *
       * The uuid for the sink subscription config.
       * 
* * 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; } } /** *
       * The uuid for the sink subscription config.
       * 
* * 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; } /** *
       * The uuid for the sink subscription config.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * The uuid for the sink subscription config.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object classId_ = ""; /** *
       * The uuid for the class object.
       * 
* * string classId = 2; * @return The classId. */ public java.lang.String getClassId() { java.lang.Object ref = classId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); classId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The uuid for the class object.
       * 
* * string classId = 2; * @return The bytes for classId. */ public com.google.protobuf.ByteString getClassIdBytes() { java.lang.Object ref = classId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); classId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The uuid for the class object.
       * 
* * string classId = 2; * @param value The classId to set. * @return This builder for chaining. */ public Builder setClassId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } classId_ = value; onChanged(); return this; } /** *
       * The uuid for the class object.
       * 
* * string classId = 2; * @return This builder for chaining. */ public Builder clearClassId() { classId_ = getDefaultInstance().getClassId(); onChanged(); return this; } /** *
       * The uuid for the class object.
       * 
* * string classId = 2; * @param value The bytes for classId to set. * @return This builder for chaining. */ public Builder setClassIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); classId_ = value; onChanged(); return this; } private int protocol_ = 0; /** *
       * The protocol of class object which owns this sink subscription.
       * 
* * .io.PassProtocol protocol = 3; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** *
       * The protocol of class object which owns this sink subscription.
       * 
* * .io.PassProtocol protocol = 3; * @param value The enum numeric value on the wire for protocol to set. * @return This builder for chaining. */ public Builder setProtocolValue(int value) { protocol_ = value; onChanged(); return this; } /** *
       * The protocol of class object which owns this sink subscription.
       * 
* * .io.PassProtocol protocol = 3; * @return The protocol. */ @java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() { @SuppressWarnings("deprecation") com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_); return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result; } /** *
       * The protocol of class object which owns this sink subscription.
       * 
* * .io.PassProtocol protocol = 3; * @param value The protocol to set. * @return This builder for chaining. */ public Builder setProtocol(com.passkit.grpc.Protocols.PassProtocol value) { if (value == null) { throw new NullPointerException(); } protocol_ = value.getNumber(); onChanged(); return this; } /** *
       * The protocol of class object which owns this sink subscription.
       * 
* * .io.PassProtocol protocol = 3; * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = 0; onChanged(); return this; } private java.util.List passEventId_ = java.util.Collections.emptyList(); private void ensurePassEventIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { passEventId_ = new java.util.ArrayList(passEventId_); bitField0_ |= 0x00000001; } } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @return A list containing the passEventId. */ public java.util.List getPassEventIdList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.Integration.PassEventId>(passEventId_, passEventId_converter_); } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @return The count of passEventId. */ public int getPassEventIdCount() { return passEventId_.size(); } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @param index The index of the element to return. * @return The passEventId at the given index. */ public com.passkit.grpc.Integration.PassEventId getPassEventId(int index) { return passEventId_converter_.convert(passEventId_.get(index)); } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @param index The index to set the value at. * @param value The passEventId to set. * @return This builder for chaining. */ public Builder setPassEventId( int index, com.passkit.grpc.Integration.PassEventId value) { if (value == null) { throw new NullPointerException(); } ensurePassEventIdIsMutable(); passEventId_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @param value The passEventId to add. * @return This builder for chaining. */ public Builder addPassEventId(com.passkit.grpc.Integration.PassEventId value) { if (value == null) { throw new NullPointerException(); } ensurePassEventIdIsMutable(); passEventId_.add(value.getNumber()); onChanged(); return this; } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @param values The passEventId to add. * @return This builder for chaining. */ public Builder addAllPassEventId( java.lang.Iterable values) { ensurePassEventIdIsMutable(); for (com.passkit.grpc.Integration.PassEventId value : values) { passEventId_.add(value.getNumber()); } onChanged(); return this; } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @return This builder for chaining. */ public Builder clearPassEventId() { passEventId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @return A list containing the enum numeric values on the wire for passEventId. */ public java.util.List getPassEventIdValueList() { return java.util.Collections.unmodifiableList(passEventId_); } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of passEventId at the given index. */ public int getPassEventIdValue(int index) { return passEventId_.get(index); } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of passEventId at the given index. * @return This builder for chaining. */ public Builder setPassEventIdValue( int index, int value) { ensurePassEventIdIsMutable(); passEventId_.set(index, value); onChanged(); return this; } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @param value The enum numeric value on the wire for passEventId to add. * @return This builder for chaining. */ public Builder addPassEventIdValue(int value) { ensurePassEventIdIsMutable(); passEventId_.add(value); onChanged(); return this; } /** *
       * Identifies pass event type you are subscribing to.
       * 
* * repeated .io.PassEventId passEventId = 4; * @param values The enum numeric values on the wire for passEventId to add. * @return This builder for chaining. */ public Builder addAllPassEventIdValue( java.lang.Iterable values) { ensurePassEventIdIsMutable(); for (int value : values) { passEventId_.add(value); } onChanged(); return this; } private int status_ = 0; /** * .io.IntegrationStatus status = 5; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .io.IntegrationStatus status = 5; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .io.IntegrationStatus status = 5; * @return The status. */ @java.lang.Override public com.passkit.grpc.Integration.IntegrationStatus getStatus() { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.IntegrationStatus result = com.passkit.grpc.Integration.IntegrationStatus.valueOf(status_); return result == null ? com.passkit.grpc.Integration.IntegrationStatus.UNRECOGNIZED : result; } /** * .io.IntegrationStatus status = 5; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.passkit.grpc.Integration.IntegrationStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .io.IntegrationStatus status = 5; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private int configType_ = 0; /** * .io.ConfigurationType configType = 6; * @return The enum numeric value on the wire for configType. */ @java.lang.Override public int getConfigTypeValue() { return configType_; } /** * .io.ConfigurationType configType = 6; * @param value The enum numeric value on the wire for configType to set. * @return This builder for chaining. */ public Builder setConfigTypeValue(int value) { configType_ = value; onChanged(); return this; } /** * .io.ConfigurationType configType = 6; * @return The configType. */ @java.lang.Override public com.passkit.grpc.Integration.ConfigurationType getConfigType() { @SuppressWarnings("deprecation") com.passkit.grpc.Integration.ConfigurationType result = com.passkit.grpc.Integration.ConfigurationType.valueOf(configType_); return result == null ? com.passkit.grpc.Integration.ConfigurationType.UNRECOGNIZED : result; } /** * .io.ConfigurationType configType = 6; * @param value The configType to set. * @return This builder for chaining. */ public Builder setConfigType(com.passkit.grpc.Integration.ConfigurationType value) { if (value == null) { throw new NullPointerException(); } configType_ = value.getNumber(); onChanged(); return this; } /** * .io.ConfigurationType configType = 6; * @return This builder for chaining. */ public Builder clearConfigType() { configType_ = 0; onChanged(); return this; } private java.lang.Object configuration_ = ""; /** *
       * Configuration details for the integration.
       * 
* * string configuration = 7; * @return The configuration. */ public java.lang.String getConfiguration() { java.lang.Object ref = configuration_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configuration_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Configuration details for the integration.
       * 
* * string configuration = 7; * @return The bytes for configuration. */ public com.google.protobuf.ByteString getConfigurationBytes() { java.lang.Object ref = configuration_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); configuration_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Configuration details for the integration.
       * 
* * string configuration = 7; * @param value The configuration to set. * @return This builder for chaining. */ public Builder setConfiguration( java.lang.String value) { if (value == null) { throw new NullPointerException(); } configuration_ = value; onChanged(); return this; } /** *
       * Configuration details for the integration.
       * 
* * string configuration = 7; * @return This builder for chaining. */ public Builder clearConfiguration() { configuration_ = getDefaultInstance().getConfiguration(); onChanged(); return this; } /** *
       * Configuration details for the integration.
       * 
* * string configuration = 7; * @param value The bytes for configuration to set. * @return This builder for chaining. */ public Builder setConfigurationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); configuration_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** * .google.protobuf.Timestamp createdAt = 8; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** * .google.protobuf.Timestamp createdAt = 8; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp createdAt = 8; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp createdAt = 8; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp createdAt = 8; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp createdAt = 8; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp createdAt = 8; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp createdAt = 8; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** * .google.protobuf.Timestamp createdAt = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp updatedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; /** * .google.protobuf.Timestamp updatedAt = 9; * @return Whether the updatedAt field is set. */ public boolean hasUpdatedAt() { return updatedAtBuilder_ != null || updatedAt_ != null; } /** * .google.protobuf.Timestamp updatedAt = 9; * @return The updatedAt. */ public com.google.protobuf.Timestamp getUpdatedAt() { if (updatedAtBuilder_ == null) { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } else { return updatedAtBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp updatedAt = 9; */ public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updatedAt_ = value; onChanged(); } else { updatedAtBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp updatedAt = 9; */ public Builder setUpdatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (updatedAtBuilder_ == null) { updatedAt_ = builderForValue.build(); onChanged(); } else { updatedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp updatedAt = 9; */ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (updatedAt_ != null) { updatedAt_ = com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); } else { updatedAt_ = value; } onChanged(); } else { updatedAtBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp updatedAt = 9; */ public Builder clearUpdatedAt() { if (updatedAtBuilder_ == null) { updatedAt_ = null; onChanged(); } else { updatedAt_ = null; updatedAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp updatedAt = 9; */ public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { onChanged(); return getUpdatedAtFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp updatedAt = 9; */ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { if (updatedAtBuilder_ != null) { return updatedAtBuilder_.getMessageOrBuilder(); } else { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } } /** * .google.protobuf.Timestamp updatedAt = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdatedAtFieldBuilder() { if (updatedAtBuilder_ == null) { updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdatedAt(), getParentForChildren(), isClean()); updatedAt_ = null; } return updatedAtBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Integration.MembershipEventIds, com.passkit.grpc.Integration.MembershipEventIds.Builder, com.passkit.grpc.Integration.MembershipEventIdsOrBuilder> membershipEventsBuilder_; /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventIds membershipEvents = 10; * @return Whether the membershipEvents field is set. */ @java.lang.Override public boolean hasMembershipEvents() { return protocolEventIdCase_ == 10; } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventIds membershipEvents = 10; * @return The membershipEvents. */ @java.lang.Override public com.passkit.grpc.Integration.MembershipEventIds getMembershipEvents() { if (membershipEventsBuilder_ == null) { if (protocolEventIdCase_ == 10) { return (com.passkit.grpc.Integration.MembershipEventIds) protocolEventId_; } return com.passkit.grpc.Integration.MembershipEventIds.getDefaultInstance(); } else { if (protocolEventIdCase_ == 10) { return membershipEventsBuilder_.getMessage(); } return com.passkit.grpc.Integration.MembershipEventIds.getDefaultInstance(); } } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventIds membershipEvents = 10; */ public Builder setMembershipEvents(com.passkit.grpc.Integration.MembershipEventIds value) { if (membershipEventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } protocolEventId_ = value; onChanged(); } else { membershipEventsBuilder_.setMessage(value); } protocolEventIdCase_ = 10; return this; } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventIds membershipEvents = 10; */ public Builder setMembershipEvents( com.passkit.grpc.Integration.MembershipEventIds.Builder builderForValue) { if (membershipEventsBuilder_ == null) { protocolEventId_ = builderForValue.build(); onChanged(); } else { membershipEventsBuilder_.setMessage(builderForValue.build()); } protocolEventIdCase_ = 10; return this; } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventIds membershipEvents = 10; */ public Builder mergeMembershipEvents(com.passkit.grpc.Integration.MembershipEventIds value) { if (membershipEventsBuilder_ == null) { if (protocolEventIdCase_ == 10 && protocolEventId_ != com.passkit.grpc.Integration.MembershipEventIds.getDefaultInstance()) { protocolEventId_ = com.passkit.grpc.Integration.MembershipEventIds.newBuilder((com.passkit.grpc.Integration.MembershipEventIds) protocolEventId_) .mergeFrom(value).buildPartial(); } else { protocolEventId_ = value; } onChanged(); } else { if (protocolEventIdCase_ == 10) { membershipEventsBuilder_.mergeFrom(value); } membershipEventsBuilder_.setMessage(value); } protocolEventIdCase_ = 10; return this; } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventIds membershipEvents = 10; */ public Builder clearMembershipEvents() { if (membershipEventsBuilder_ == null) { if (protocolEventIdCase_ == 10) { protocolEventIdCase_ = 0; protocolEventId_ = null; onChanged(); } } else { if (protocolEventIdCase_ == 10) { protocolEventIdCase_ = 0; protocolEventId_ = null; } membershipEventsBuilder_.clear(); } return this; } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventIds membershipEvents = 10; */ public com.passkit.grpc.Integration.MembershipEventIds.Builder getMembershipEventsBuilder() { return getMembershipEventsFieldBuilder().getBuilder(); } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventIds membershipEvents = 10; */ @java.lang.Override public com.passkit.grpc.Integration.MembershipEventIdsOrBuilder getMembershipEventsOrBuilder() { if ((protocolEventIdCase_ == 10) && (membershipEventsBuilder_ != null)) { return membershipEventsBuilder_.getMessageOrBuilder(); } else { if (protocolEventIdCase_ == 10) { return (com.passkit.grpc.Integration.MembershipEventIds) protocolEventId_; } return com.passkit.grpc.Integration.MembershipEventIds.getDefaultInstance(); } } /** *
       * For membership protocol subscription.
       * 
* * .io.MembershipEventIds membershipEvents = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Integration.MembershipEventIds, com.passkit.grpc.Integration.MembershipEventIds.Builder, com.passkit.grpc.Integration.MembershipEventIdsOrBuilder> getMembershipEventsFieldBuilder() { if (membershipEventsBuilder_ == null) { if (!(protocolEventIdCase_ == 10)) { protocolEventId_ = com.passkit.grpc.Integration.MembershipEventIds.getDefaultInstance(); } membershipEventsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Integration.MembershipEventIds, com.passkit.grpc.Integration.MembershipEventIds.Builder, com.passkit.grpc.Integration.MembershipEventIdsOrBuilder>( (com.passkit.grpc.Integration.MembershipEventIds) protocolEventId_, getParentForChildren(), isClean()); protocolEventId_ = null; } protocolEventIdCase_ = 10; onChanged();; return membershipEventsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Integration.CouponEventIds, com.passkit.grpc.Integration.CouponEventIds.Builder, com.passkit.grpc.Integration.CouponEventIdsOrBuilder> couponEventsBuilder_; /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventIds couponEvents = 11; * @return Whether the couponEvents field is set. */ @java.lang.Override public boolean hasCouponEvents() { return protocolEventIdCase_ == 11; } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventIds couponEvents = 11; * @return The couponEvents. */ @java.lang.Override public com.passkit.grpc.Integration.CouponEventIds getCouponEvents() { if (couponEventsBuilder_ == null) { if (protocolEventIdCase_ == 11) { return (com.passkit.grpc.Integration.CouponEventIds) protocolEventId_; } return com.passkit.grpc.Integration.CouponEventIds.getDefaultInstance(); } else { if (protocolEventIdCase_ == 11) { return couponEventsBuilder_.getMessage(); } return com.passkit.grpc.Integration.CouponEventIds.getDefaultInstance(); } } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventIds couponEvents = 11; */ public Builder setCouponEvents(com.passkit.grpc.Integration.CouponEventIds value) { if (couponEventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } protocolEventId_ = value; onChanged(); } else { couponEventsBuilder_.setMessage(value); } protocolEventIdCase_ = 11; return this; } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventIds couponEvents = 11; */ public Builder setCouponEvents( com.passkit.grpc.Integration.CouponEventIds.Builder builderForValue) { if (couponEventsBuilder_ == null) { protocolEventId_ = builderForValue.build(); onChanged(); } else { couponEventsBuilder_.setMessage(builderForValue.build()); } protocolEventIdCase_ = 11; return this; } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventIds couponEvents = 11; */ public Builder mergeCouponEvents(com.passkit.grpc.Integration.CouponEventIds value) { if (couponEventsBuilder_ == null) { if (protocolEventIdCase_ == 11 && protocolEventId_ != com.passkit.grpc.Integration.CouponEventIds.getDefaultInstance()) { protocolEventId_ = com.passkit.grpc.Integration.CouponEventIds.newBuilder((com.passkit.grpc.Integration.CouponEventIds) protocolEventId_) .mergeFrom(value).buildPartial(); } else { protocolEventId_ = value; } onChanged(); } else { if (protocolEventIdCase_ == 11) { couponEventsBuilder_.mergeFrom(value); } couponEventsBuilder_.setMessage(value); } protocolEventIdCase_ = 11; return this; } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventIds couponEvents = 11; */ public Builder clearCouponEvents() { if (couponEventsBuilder_ == null) { if (protocolEventIdCase_ == 11) { protocolEventIdCase_ = 0; protocolEventId_ = null; onChanged(); } } else { if (protocolEventIdCase_ == 11) { protocolEventIdCase_ = 0; protocolEventId_ = null; } couponEventsBuilder_.clear(); } return this; } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventIds couponEvents = 11; */ public com.passkit.grpc.Integration.CouponEventIds.Builder getCouponEventsBuilder() { return getCouponEventsFieldBuilder().getBuilder(); } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventIds couponEvents = 11; */ @java.lang.Override public com.passkit.grpc.Integration.CouponEventIdsOrBuilder getCouponEventsOrBuilder() { if ((protocolEventIdCase_ == 11) && (couponEventsBuilder_ != null)) { return couponEventsBuilder_.getMessageOrBuilder(); } else { if (protocolEventIdCase_ == 11) { return (com.passkit.grpc.Integration.CouponEventIds) protocolEventId_; } return com.passkit.grpc.Integration.CouponEventIds.getDefaultInstance(); } } /** *
       * For coupon protocol subscription.
       * 
* * .io.CouponEventIds couponEvents = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Integration.CouponEventIds, com.passkit.grpc.Integration.CouponEventIds.Builder, com.passkit.grpc.Integration.CouponEventIdsOrBuilder> getCouponEventsFieldBuilder() { if (couponEventsBuilder_ == null) { if (!(protocolEventIdCase_ == 11)) { protocolEventId_ = com.passkit.grpc.Integration.CouponEventIds.getDefaultInstance(); } couponEventsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Integration.CouponEventIds, com.passkit.grpc.Integration.CouponEventIds.Builder, com.passkit.grpc.Integration.CouponEventIdsOrBuilder>( (com.passkit.grpc.Integration.CouponEventIds) protocolEventId_, getParentForChildren(), isClean()); protocolEventId_ = null; } protocolEventIdCase_ = 11; onChanged();; return couponEventsBuilder_; } @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:io.SinkSubscription) } // @@protoc_insertion_point(class_scope:io.SinkSubscription) private static final com.passkit.grpc.Integration.SinkSubscription DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Integration.SinkSubscription(); } public static com.passkit.grpc.Integration.SinkSubscription getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SinkSubscription parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SinkSubscription(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.Integration.SinkSubscription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_MembershipEventIds_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_MembershipEventIds_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_CouponEventIds_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_CouponEventIds_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_IntegrationConfigs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_IntegrationConfigs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_IntegrationConfigs_ConfigurationsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_IntegrationConfigs_ConfigurationsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_ProtocolIdInput_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_ProtocolIdInput_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_SubscriptionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_SubscriptionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_SubscriptionRequestByClassId_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_SubscriptionRequestByClassId_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_FieldMapping_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_FieldMapping_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_WebhookConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_WebhookConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_SinkSubscriptionPayload_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_SinkSubscriptionPayload_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_SinkSubscription_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_SinkSubscription_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\033io/common/integration.proto\022\002io\032\024io/co" + "mmon/pass.proto\032\030io/common/template.prot" + "o\032.protoc-gen-openapiv2/options/annotati" + "ons.proto\032\031io/common/protocols.proto\032\037go" + "ogle/protobuf/timestamp.proto\"8\n\022Members" + "hipEventIds\022\"\n\003ids\030\001 \003(\0162\025.io.Membership" + "EventId\"0\n\016CouponEventIds\022\036\n\003ids\030\001 \003(\0162\021" + ".io.CouponEventId\"\240\001\n\022IntegrationConfigs" + "\022\017\n\007classId\030\001 \001(\t\022B\n\016configurations\030\002 \003(" + "\0132*.io.IntegrationConfigs.Configurations" + "Entry\0325\n\023ConfigurationsEntry\022\013\n\003key\030\001 \001(" + "\005\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\017ProtocolIdInput\022" + "\"\n\010protocol\030\001 \001(\0162\020.io.PassProtocol\022\017\n\007c" + "lassId\030\002 \001(\t\"Q\n\023SubscriptionRequest\022\"\n\010p" + "rotocol\030\001 \001(\0162\020.io.PassProtocol\022\026\n\016subsc" + "riptionId\030\002 \001(\t\"\221\002\n\034SubscriptionRequestB" + "yClassId\022\"\n\010protocol\030\001 \001(\0162\020.io.PassProt" + "ocol\022\017\n\007classId\030\002 \001(\t\022)\n\nconfigType\030\003 \001(" + "\0162\025.io.ConfigurationType\022&\n\013passEventId\030" + "\004 \001(\0162\017.io.PassEventIdH\000\0222\n\021membershipEv" + "entId\030\005 \001(\0162\025.io.MembershipEventIdH\000\022*\n\r" + "couponEventId\030\006 \001(\0162\021.io.CouponEventIdH\000" + "B\t\n\007eventId\"\216\001\n\014FieldMapping\022\033\n\023destinat" + "ionFieldKey\030\001 \001(\t\022.\n\030destinationFieldDat" + "aType\030\002 \001(\0162\014.io.DataType\022\022\n\nisRequired\030" + "\003 \001(\010\022\035\n\025sourceFieldUniqueName\030\004 \001(\t\"r\n\r" + "WebhookConfig\022\021\n\ttargetUrl\030\001 \001(\t\022&\n\014acti" + "onMethod\030\002 \001(\0162\020.io.ActionMethod\022&\n\014fiel" + "dMapping\030\003 \001(\0132\020.io.FieldMapping\"@\n\027Sink" + "SubscriptionPayload\022\r\n\005event\030\001 \001(\t\022\026\n\004pa" + "ss\030\002 \001(\0132\010.io.Pass\"\305\005\n\020SinkSubscription\022" + "\n\n\002id\030\001 \001(\t\022\017\n\007classId\030\002 \001(\t\022\"\n\010protocol" + "\030\003 \001(\0162\020.io.PassProtocol\022$\n\013passEventId\030" + "\004 \003(\0162\017.io.PassEventId\022%\n\006status\030\005 \001(\0162\025" + ".io.IntegrationStatus\022)\n\nconfigType\030\006 \001(" + "\0162\025.io.ConfigurationType\022\025\n\rconfiguratio" + "n\030\007 \001(\t\022-\n\tcreatedAt\030\010 \001(\0132\032.google.prot" + "obuf.Timestamp\022-\n\tupdatedAt\030\t \001(\0132\032.goog" + "le.protobuf.Timestamp\0222\n\020membershipEvent" + "s\030\n \001(\0132\026.io.MembershipEventIdsH\000\022*\n\014cou" + "ponEvents\030\013 \001(\0132\022.io.CouponEventIdsH\000:\217\002" + "\222A\213\002\n\210\002*\021Sink Subscription2\340\001Set up a su" + "bscription for sink integration. Sink su" + "bscription is triggered after all chain " + "of events finished inside PassKit. E.g. " + "Create a pass holder record and issue a " + "pass, then create a record on a third pa" + "rty platform.\322\001\017defaultLanguageB\021\n\017proto" + "colEventId*}\n\021IntegrationStatus\022\033\n\027INTEG" + "RATION_STATUS_NONE\020\000\022\030\n\024INTEGRATION_DISA" + "BLED\020\001\022\026\n\022INTEGRATION_ACTIVE\020\002\022\031\n\025INTEGR" + "ATION_SUSPENDED\020\003*\212\001\n\021ConfigurationType\022" + "\026\n\022CONFIGURATION_NONE\020\000\022\013\n\007WEBHOOK\020\001\022\014\n\010" + "DB_MYSQL\020\002\022\010\n\004ZOHO\020\003\022\t\n\005BRAZE\020\004\022\r\n\tCODER" + "EADR\020\005\022\n\n\006ZAPIER\020\006\022\022\n\016_CONFIG_TYPE_1\020d*\243" + "\004\n\017IntegrationType\022\031\n\025INTEGRATION_TYPE_N" + "ONE\020\000\022\026\n\022SOURCE_INTEGRATION\020\001\022&\n\"HOOK_BE" + "FORE_OBJECT_RECORD_CREATION\020\004\022%\n!HOOK_AF" + "TER_OBJECT_RECORD_CREATION\020\010\022\032\n\026HOOK_BEF" + "ORE_PASS_ISSUE\020\020\022\031\n\025HOOK_AFTER_PASS_ISSU" + "E\020 \022\033\n\027HOOK_AFTER_PASS_INSTALL\020@\022\036\n\031HOOK" + "_AFTER_PASS_UNINSTALL\020\200\001\022%\n HOOK_BEFORE_" + "OBJECT_RECORD_UPDATE\020\200\002\022$\n\037HOOK_AFTER_OB" + "JECT_RECORD_UPDATE\020\200\004\022#\n\036HOOK_BEFORE_PAS" + "S_RECORD_UPDATE\020\200\010\022\"\n\035HOOK_AFTER_PASS_RE" + "CORD_UPDATE\020\200\020\022\034\n\027HOOK_BEFORE_PASS_UPDAT" + "E\020\200 \022\033\n\026HOOK_AFTER_PASS_UPDATE\020\200@\022$\n\036HOO" + "K_BEFORE_PASS_RECORD_DELETE\020\200\200\001\022#\n\035HOOK_" + "AFTER_PASS_RECORD_DELETE\020\200\200\002*\321\001\n\013PassEve" + "ntId\022\023\n\017PASS_EVENT_NONE\020\000\022\035\n\031PASS_EVENT_" + "RECORD_CREATED\020\001\022\030\n\024PASS_EVENT_INSTALLED" + "\020\002\022\035\n\031PASS_EVENT_RECORD_UPDATED\020\004\022\032\n\026PAS" + "S_EVENT_UNINSTALLED\020\010\022\032\n\026PASS_EVENT_INVA" + "LIDATED\020\020\022\035\n\031PASS_EVENT_RECORD_DELETED\020 " + "*_\n\021MembershipEventId\022\025\n\021MEMBER_EVENT_NO" + "NE\020\000\022\031\n\025MEMBER_EVENT_ENROLLED\020\001\022\030\n\024MEMBE" + "R_EVENT_UPDATED\020\002*\217\001\n\rCouponEventId\022\025\n\021C" + "OUPON_EVENT_NONE\020\000\022\030\n\024COUPON_EVENT_CREAT" + "ED\020\001\022\031\n\025COUPON_EVENT_REDEEMED\020\002\022\030\n\024COUPO" + "N_EVENT_UPDATED\020\004\022\030\n\024COUPON_EVENT_DELETE" + "D\020\010*S\n\014ActionMethod\022\017\n\013METHOD_NONE\020\000\022\017\n\013" + "METHOD_POST\020\001\022\016\n\nMETHOD_PUT\020\002\022\021\n\rMETHOD_" + "DELETE\020\003BG\n\020com.passkit.grpcZ$stash.pass" + "kit.com/io/model/sdk/go/io\252\002\014PassKit.Grp" + "cb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.passkit.grpc.PassOuterClass.getDescriptor(), com.passkit.grpc.Template.getDescriptor(), grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(), com.passkit.grpc.Protocols.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_io_MembershipEventIds_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_io_MembershipEventIds_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_MembershipEventIds_descriptor, new java.lang.String[] { "Ids", }); internal_static_io_CouponEventIds_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_io_CouponEventIds_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_CouponEventIds_descriptor, new java.lang.String[] { "Ids", }); internal_static_io_IntegrationConfigs_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_io_IntegrationConfigs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_IntegrationConfigs_descriptor, new java.lang.String[] { "ClassId", "Configurations", }); internal_static_io_IntegrationConfigs_ConfigurationsEntry_descriptor = internal_static_io_IntegrationConfigs_descriptor.getNestedTypes().get(0); internal_static_io_IntegrationConfigs_ConfigurationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_IntegrationConfigs_ConfigurationsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_io_ProtocolIdInput_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_io_ProtocolIdInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_ProtocolIdInput_descriptor, new java.lang.String[] { "Protocol", "ClassId", }); internal_static_io_SubscriptionRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_io_SubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_SubscriptionRequest_descriptor, new java.lang.String[] { "Protocol", "SubscriptionId", }); internal_static_io_SubscriptionRequestByClassId_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_io_SubscriptionRequestByClassId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_SubscriptionRequestByClassId_descriptor, new java.lang.String[] { "Protocol", "ClassId", "ConfigType", "PassEventId", "MembershipEventId", "CouponEventId", "EventId", }); internal_static_io_FieldMapping_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_io_FieldMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_FieldMapping_descriptor, new java.lang.String[] { "DestinationFieldKey", "DestinationFieldDataType", "IsRequired", "SourceFieldUniqueName", }); internal_static_io_WebhookConfig_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_io_WebhookConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_WebhookConfig_descriptor, new java.lang.String[] { "TargetUrl", "ActionMethod", "FieldMapping", }); internal_static_io_SinkSubscriptionPayload_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_io_SinkSubscriptionPayload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_SinkSubscriptionPayload_descriptor, new java.lang.String[] { "Event", "Pass", }); internal_static_io_SinkSubscription_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_io_SinkSubscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_SinkSubscription_descriptor, new java.lang.String[] { "Id", "ClassId", "Protocol", "PassEventId", "Status", "ConfigType", "Configuration", "CreatedAt", "UpdatedAt", "MembershipEvents", "CouponEvents", "ProtocolEventId", }); 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.passkit.grpc.PassOuterClass.getDescriptor(); com.passkit.grpc.Template.getDescriptor(); grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(); com.passkit.grpc.Protocols.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy