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

com.passkit.grpc.CallbackOuterClass 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/callback.proto

package com.passkit.grpc;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code io.CallbackEvent}
   */
  public enum CallbackEvent
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * Object related events; for when protocol 'objects' are created / updated /removed in our system: i.e. member enrolled, boarding pass updated
     * 
* * CALLBACK_OBJECT_CREATED = 0; */ CALLBACK_OBJECT_CREATED(0), /** * CALLBACK_OBJECT_UPDATED = 1; */ CALLBACK_OBJECT_UPDATED(1), /** * CALLBACK_OBJECT_REMOVED = 2; */ CALLBACK_OBJECT_REMOVED(2), /** *
     * Pass related events; relating to wallet activity.
     * 
* * CALLBACK_PASS_ISSUED = 3; */ CALLBACK_PASS_ISSUED(3), /** * CALLBACK_PASS_INSTALLED = 4; */ CALLBACK_PASS_INSTALLED(4), /** * CALLBACK_PASS_UPDATED = 5; */ CALLBACK_PASS_UPDATED(5), /** * CALLBACK_PASS_REMOVED = 6; */ CALLBACK_PASS_REMOVED(6), /** *
     * Other events
     * 
* * EMAIL_OPENED = 7; */ EMAIL_OPENED(7), /** *
     * for when enrolment / issue link in an email sms or elsewhere (QR scan, FB link click) is visited.
     * 
* * LINK_VISITED = 8; */ LINK_VISITED(8), UNRECOGNIZED(-1), ; /** *
     * Object related events; for when protocol 'objects' are created / updated /removed in our system: i.e. member enrolled, boarding pass updated
     * 
* * CALLBACK_OBJECT_CREATED = 0; */ public static final int CALLBACK_OBJECT_CREATED_VALUE = 0; /** * CALLBACK_OBJECT_UPDATED = 1; */ public static final int CALLBACK_OBJECT_UPDATED_VALUE = 1; /** * CALLBACK_OBJECT_REMOVED = 2; */ public static final int CALLBACK_OBJECT_REMOVED_VALUE = 2; /** *
     * Pass related events; relating to wallet activity.
     * 
* * CALLBACK_PASS_ISSUED = 3; */ public static final int CALLBACK_PASS_ISSUED_VALUE = 3; /** * CALLBACK_PASS_INSTALLED = 4; */ public static final int CALLBACK_PASS_INSTALLED_VALUE = 4; /** * CALLBACK_PASS_UPDATED = 5; */ public static final int CALLBACK_PASS_UPDATED_VALUE = 5; /** * CALLBACK_PASS_REMOVED = 6; */ public static final int CALLBACK_PASS_REMOVED_VALUE = 6; /** *
     * Other events
     * 
* * EMAIL_OPENED = 7; */ public static final int EMAIL_OPENED_VALUE = 7; /** *
     * for when enrolment / issue link in an email sms or elsewhere (QR scan, FB link click) is visited.
     * 
* * LINK_VISITED = 8; */ public static final int LINK_VISITED_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 CallbackEvent 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 CallbackEvent forNumber(int value) { switch (value) { case 0: return CALLBACK_OBJECT_CREATED; case 1: return CALLBACK_OBJECT_UPDATED; case 2: return CALLBACK_OBJECT_REMOVED; case 3: return CALLBACK_PASS_ISSUED; case 4: return CALLBACK_PASS_INSTALLED; case 5: return CALLBACK_PASS_UPDATED; case 6: return CALLBACK_PASS_REMOVED; case 7: return EMAIL_OPENED; case 8: return LINK_VISITED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CallbackEvent> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CallbackEvent findValueByNumber(int number) { return CallbackEvent.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.CallbackOuterClass.getDescriptor().getEnumTypes().get(0); } private static final CallbackEvent[] VALUES = values(); public static CallbackEvent 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 CallbackEvent(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.CallbackEvent) } /** * Protobuf enum {@code io.CallbackType} */ public enum CallbackType implements com.google.protobuf.ProtocolMessageEnum { /** * CALLBACK_TYPE_SEND_EMAIL = 0; */ CALLBACK_TYPE_SEND_EMAIL(0), /** * CALLBACK_TYPE_SEND_SMS = 1; */ CALLBACK_TYPE_SEND_SMS(1), /** * CALLBACK_TYPE_SEND_POST = 2; */ CALLBACK_TYPE_SEND_POST(2), /** *
     * callback will be performed on the defined integrations
     * 
* * CALLBACK_TYPE_INTEGRATION = 3; */ CALLBACK_TYPE_INTEGRATION(3), UNRECOGNIZED(-1), ; /** * CALLBACK_TYPE_SEND_EMAIL = 0; */ public static final int CALLBACK_TYPE_SEND_EMAIL_VALUE = 0; /** * CALLBACK_TYPE_SEND_SMS = 1; */ public static final int CALLBACK_TYPE_SEND_SMS_VALUE = 1; /** * CALLBACK_TYPE_SEND_POST = 2; */ public static final int CALLBACK_TYPE_SEND_POST_VALUE = 2; /** *
     * callback will be performed on the defined integrations
     * 
* * CALLBACK_TYPE_INTEGRATION = 3; */ public static final int CALLBACK_TYPE_INTEGRATION_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 CallbackType 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 CallbackType forNumber(int value) { switch (value) { case 0: return CALLBACK_TYPE_SEND_EMAIL; case 1: return CALLBACK_TYPE_SEND_SMS; case 2: return CALLBACK_TYPE_SEND_POST; case 3: return CALLBACK_TYPE_INTEGRATION; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CallbackType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CallbackType findValueByNumber(int number) { return CallbackType.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.CallbackOuterClass.getDescriptor().getEnumTypes().get(1); } private static final CallbackType[] VALUES = values(); public static CallbackType 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 CallbackType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.CallbackType) } public interface CallbackOrBuilder extends // @@protoc_insertion_point(interface_extends:io.Callback) com.google.protobuf.MessageOrBuilder { /** *
     * The event the callback fires on
     * 
* * .io.CallbackEvent event = 1; * @return The enum numeric value on the wire for event. */ int getEventValue(); /** *
     * The event the callback fires on
     * 
* * .io.CallbackEvent event = 1; * @return The event. */ com.passkit.grpc.CallbackOuterClass.CallbackEvent getEvent(); /** *
     * The type of callback
     * 
* * .io.CallbackType type = 2; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * The type of callback
     * 
* * .io.CallbackType type = 2; * @return The type. */ com.passkit.grpc.CallbackOuterClass.CallbackType getType(); /** *
     * The received of the callback (email address, mobile number or URL)
     * 
* * string receiver = 3; * @return The receiver. */ java.lang.String getReceiver(); /** *
     * The received of the callback (email address, mobile number or URL)
     * 
* * string receiver = 3; * @return The bytes for receiver. */ com.google.protobuf.ByteString getReceiverBytes(); } /** * Protobuf type {@code io.Callback} */ public static final class Callback extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.Callback) CallbackOrBuilder { private static final long serialVersionUID = 0L; // Use Callback.newBuilder() to construct. private Callback(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Callback() { event_ = 0; type_ = 0; receiver_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Callback(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Callback( 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(); event_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); receiver_ = 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.CallbackOuterClass.internal_static_io_Callback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.CallbackOuterClass.internal_static_io_Callback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.CallbackOuterClass.Callback.class, com.passkit.grpc.CallbackOuterClass.Callback.Builder.class); } public static final int EVENT_FIELD_NUMBER = 1; private int event_; /** *
     * The event the callback fires on
     * 
* * .io.CallbackEvent event = 1; * @return The enum numeric value on the wire for event. */ @java.lang.Override public int getEventValue() { return event_; } /** *
     * The event the callback fires on
     * 
* * .io.CallbackEvent event = 1; * @return The event. */ @java.lang.Override public com.passkit.grpc.CallbackOuterClass.CallbackEvent getEvent() { @SuppressWarnings("deprecation") com.passkit.grpc.CallbackOuterClass.CallbackEvent result = com.passkit.grpc.CallbackOuterClass.CallbackEvent.valueOf(event_); return result == null ? com.passkit.grpc.CallbackOuterClass.CallbackEvent.UNRECOGNIZED : result; } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** *
     * The type of callback
     * 
* * .io.CallbackType type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * The type of callback
     * 
* * .io.CallbackType type = 2; * @return The type. */ @java.lang.Override public com.passkit.grpc.CallbackOuterClass.CallbackType getType() { @SuppressWarnings("deprecation") com.passkit.grpc.CallbackOuterClass.CallbackType result = com.passkit.grpc.CallbackOuterClass.CallbackType.valueOf(type_); return result == null ? com.passkit.grpc.CallbackOuterClass.CallbackType.UNRECOGNIZED : result; } public static final int RECEIVER_FIELD_NUMBER = 3; private volatile java.lang.Object receiver_; /** *
     * The received of the callback (email address, mobile number or URL)
     * 
* * string receiver = 3; * @return The receiver. */ @java.lang.Override public java.lang.String getReceiver() { java.lang.Object ref = receiver_; 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(); receiver_ = s; return s; } } /** *
     * The received of the callback (email address, mobile number or URL)
     * 
* * string receiver = 3; * @return The bytes for receiver. */ @java.lang.Override public com.google.protobuf.ByteString getReceiverBytes() { java.lang.Object ref = receiver_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); receiver_ = 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 (event_ != com.passkit.grpc.CallbackOuterClass.CallbackEvent.CALLBACK_OBJECT_CREATED.getNumber()) { output.writeEnum(1, event_); } if (type_ != com.passkit.grpc.CallbackOuterClass.CallbackType.CALLBACK_TYPE_SEND_EMAIL.getNumber()) { output.writeEnum(2, type_); } if (!getReceiverBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, receiver_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (event_ != com.passkit.grpc.CallbackOuterClass.CallbackEvent.CALLBACK_OBJECT_CREATED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, event_); } if (type_ != com.passkit.grpc.CallbackOuterClass.CallbackType.CALLBACK_TYPE_SEND_EMAIL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (!getReceiverBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, receiver_); } 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.CallbackOuterClass.Callback)) { return super.equals(obj); } com.passkit.grpc.CallbackOuterClass.Callback other = (com.passkit.grpc.CallbackOuterClass.Callback) obj; if (event_ != other.event_) return false; if (type_ != other.type_) return false; if (!getReceiver() .equals(other.getReceiver())) 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) + event_; hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + RECEIVER_FIELD_NUMBER; hash = (53 * hash) + getReceiver().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.CallbackOuterClass.Callback parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.CallbackOuterClass.Callback 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.CallbackOuterClass.Callback parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.CallbackOuterClass.Callback 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.CallbackOuterClass.Callback parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.CallbackOuterClass.Callback parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.CallbackOuterClass.Callback parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.CallbackOuterClass.Callback 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.CallbackOuterClass.Callback parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.CallbackOuterClass.Callback 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.CallbackOuterClass.Callback parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.CallbackOuterClass.Callback 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.CallbackOuterClass.Callback 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.Callback} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.Callback) com.passkit.grpc.CallbackOuterClass.CallbackOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.CallbackOuterClass.internal_static_io_Callback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.CallbackOuterClass.internal_static_io_Callback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.CallbackOuterClass.Callback.class, com.passkit.grpc.CallbackOuterClass.Callback.Builder.class); } // Construct using com.passkit.grpc.CallbackOuterClass.Callback.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_ = 0; type_ = 0; receiver_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.CallbackOuterClass.internal_static_io_Callback_descriptor; } @java.lang.Override public com.passkit.grpc.CallbackOuterClass.Callback getDefaultInstanceForType() { return com.passkit.grpc.CallbackOuterClass.Callback.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.CallbackOuterClass.Callback build() { com.passkit.grpc.CallbackOuterClass.Callback result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.CallbackOuterClass.Callback buildPartial() { com.passkit.grpc.CallbackOuterClass.Callback result = new com.passkit.grpc.CallbackOuterClass.Callback(this); result.event_ = event_; result.type_ = type_; result.receiver_ = receiver_; 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.CallbackOuterClass.Callback) { return mergeFrom((com.passkit.grpc.CallbackOuterClass.Callback)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.CallbackOuterClass.Callback other) { if (other == com.passkit.grpc.CallbackOuterClass.Callback.getDefaultInstance()) return this; if (other.event_ != 0) { setEventValue(other.getEventValue()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getReceiver().isEmpty()) { receiver_ = other.receiver_; 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.CallbackOuterClass.Callback parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.CallbackOuterClass.Callback) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int event_ = 0; /** *
       * The event the callback fires on
       * 
* * .io.CallbackEvent event = 1; * @return The enum numeric value on the wire for event. */ @java.lang.Override public int getEventValue() { return event_; } /** *
       * The event the callback fires on
       * 
* * .io.CallbackEvent event = 1; * @param value The enum numeric value on the wire for event to set. * @return This builder for chaining. */ public Builder setEventValue(int value) { event_ = value; onChanged(); return this; } /** *
       * The event the callback fires on
       * 
* * .io.CallbackEvent event = 1; * @return The event. */ @java.lang.Override public com.passkit.grpc.CallbackOuterClass.CallbackEvent getEvent() { @SuppressWarnings("deprecation") com.passkit.grpc.CallbackOuterClass.CallbackEvent result = com.passkit.grpc.CallbackOuterClass.CallbackEvent.valueOf(event_); return result == null ? com.passkit.grpc.CallbackOuterClass.CallbackEvent.UNRECOGNIZED : result; } /** *
       * The event the callback fires on
       * 
* * .io.CallbackEvent event = 1; * @param value The event to set. * @return This builder for chaining. */ public Builder setEvent(com.passkit.grpc.CallbackOuterClass.CallbackEvent value) { if (value == null) { throw new NullPointerException(); } event_ = value.getNumber(); onChanged(); return this; } /** *
       * The event the callback fires on
       * 
* * .io.CallbackEvent event = 1; * @return This builder for chaining. */ public Builder clearEvent() { event_ = 0; onChanged(); return this; } private int type_ = 0; /** *
       * The type of callback
       * 
* * .io.CallbackType type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * The type of callback
       * 
* * .io.CallbackType type = 2; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** *
       * The type of callback
       * 
* * .io.CallbackType type = 2; * @return The type. */ @java.lang.Override public com.passkit.grpc.CallbackOuterClass.CallbackType getType() { @SuppressWarnings("deprecation") com.passkit.grpc.CallbackOuterClass.CallbackType result = com.passkit.grpc.CallbackOuterClass.CallbackType.valueOf(type_); return result == null ? com.passkit.grpc.CallbackOuterClass.CallbackType.UNRECOGNIZED : result; } /** *
       * The type of callback
       * 
* * .io.CallbackType type = 2; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.passkit.grpc.CallbackOuterClass.CallbackType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
       * The type of callback
       * 
* * .io.CallbackType type = 2; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private java.lang.Object receiver_ = ""; /** *
       * The received of the callback (email address, mobile number or URL)
       * 
* * string receiver = 3; * @return The receiver. */ public java.lang.String getReceiver() { java.lang.Object ref = receiver_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); receiver_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The received of the callback (email address, mobile number or URL)
       * 
* * string receiver = 3; * @return The bytes for receiver. */ public com.google.protobuf.ByteString getReceiverBytes() { java.lang.Object ref = receiver_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); receiver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The received of the callback (email address, mobile number or URL)
       * 
* * string receiver = 3; * @param value The receiver to set. * @return This builder for chaining. */ public Builder setReceiver( java.lang.String value) { if (value == null) { throw new NullPointerException(); } receiver_ = value; onChanged(); return this; } /** *
       * The received of the callback (email address, mobile number or URL)
       * 
* * string receiver = 3; * @return This builder for chaining. */ public Builder clearReceiver() { receiver_ = getDefaultInstance().getReceiver(); onChanged(); return this; } /** *
       * The received of the callback (email address, mobile number or URL)
       * 
* * string receiver = 3; * @param value The bytes for receiver to set. * @return This builder for chaining. */ public Builder setReceiverBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); receiver_ = 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.Callback) } // @@protoc_insertion_point(class_scope:io.Callback) private static final com.passkit.grpc.CallbackOuterClass.Callback DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.CallbackOuterClass.Callback(); } public static com.passkit.grpc.CallbackOuterClass.Callback getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Callback parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Callback(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.CallbackOuterClass.Callback getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_Callback_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_Callback_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\030io/common/callback.proto\022\002io\"^\n\010Callba" + "ck\022 \n\005event\030\001 \001(\0162\021.io.CallbackEvent\022\036\n\004" + "type\030\002 \001(\0162\020.io.CallbackType\022\020\n\010receiver" + "\030\003 \001(\t*\367\001\n\rCallbackEvent\022\033\n\027CALLBACK_OBJ" + "ECT_CREATED\020\000\022\033\n\027CALLBACK_OBJECT_UPDATED" + "\020\001\022\033\n\027CALLBACK_OBJECT_REMOVED\020\002\022\030\n\024CALLB" + "ACK_PASS_ISSUED\020\003\022\033\n\027CALLBACK_PASS_INSTA" + "LLED\020\004\022\031\n\025CALLBACK_PASS_UPDATED\020\005\022\031\n\025CAL" + "LBACK_PASS_REMOVED\020\006\022\020\n\014EMAIL_OPENED\020\007\022\020" + "\n\014LINK_VISITED\020\010*\204\001\n\014CallbackType\022\034\n\030CAL" + "LBACK_TYPE_SEND_EMAIL\020\000\022\032\n\026CALLBACK_TYPE" + "_SEND_SMS\020\001\022\033\n\027CALLBACK_TYPE_SEND_POST\020\002" + "\022\035\n\031CALLBACK_TYPE_INTEGRATION\020\003BG\n\020com.p" + "asskit.grpcZ$stash.passkit.com/io/model/" + "sdk/go/io\252\002\014PassKit.Grpcb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_io_Callback_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_io_Callback_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_Callback_descriptor, new java.lang.String[] { "Event", "Type", "Receiver", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy