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

com.passkit.grpc.Distribution 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/distribution.proto

package com.passkit.grpc;

public final class Distribution {
  private Distribution() {}
  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.DistributionChannel}
   */
  public enum DistributionChannel
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * NO_DISTRIBUTION = 0;
     */
    NO_DISTRIBUTION(0),
    /**
     * 
     * Unique pass link is distributed via email (will use default PK email template if no custom Email Template is provided)
     * 
* * CHANNEL_EMAIL = 1; */ CHANNEL_EMAIL(1), /** *
     * Unique pass link is distributed via SMS (will use default PK SMS template if no custom SMS Template is provided)
     * 
* * CHANNEL_SMS = 2; */ CHANNEL_SMS(2), UNRECOGNIZED(-1), ; /** * NO_DISTRIBUTION = 0; */ public static final int NO_DISTRIBUTION_VALUE = 0; /** *
     * Unique pass link is distributed via email (will use default PK email template if no custom Email Template is provided)
     * 
* * CHANNEL_EMAIL = 1; */ public static final int CHANNEL_EMAIL_VALUE = 1; /** *
     * Unique pass link is distributed via SMS (will use default PK SMS template if no custom SMS Template is provided)
     * 
* * CHANNEL_SMS = 2; */ public static final int CHANNEL_SMS_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 DistributionChannel 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 DistributionChannel forNumber(int value) { switch (value) { case 0: return NO_DISTRIBUTION; case 1: return CHANNEL_EMAIL; case 2: return CHANNEL_SMS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DistributionChannel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DistributionChannel findValueByNumber(int number) { return DistributionChannel.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.Distribution.getDescriptor().getEnumTypes().get(0); } private static final DistributionChannel[] VALUES = values(); public static DistributionChannel 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 DistributionChannel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.DistributionChannel) } public interface EmailDistributionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:io.EmailDistributionRequest) com.google.protobuf.MessageOrBuilder { /** * string id = 1; * @return The id. */ java.lang.String getId(); /** * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * .io.PassProtocol protocol = 2; * @return The enum numeric value on the wire for protocol. */ int getProtocolValue(); /** * .io.PassProtocol protocol = 2; * @return The protocol. */ com.passkit.grpc.Protocols.PassProtocol getProtocol(); /** * string alternativeEmail = 3; * @return The alternativeEmail. */ java.lang.String getAlternativeEmail(); /** * string alternativeEmail = 3; * @return The bytes for alternativeEmail. */ com.google.protobuf.ByteString getAlternativeEmailBytes(); } /** * Protobuf type {@code io.EmailDistributionRequest} */ public static final class EmailDistributionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.EmailDistributionRequest) EmailDistributionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use EmailDistributionRequest.newBuilder() to construct. private EmailDistributionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EmailDistributionRequest() { id_ = ""; protocol_ = 0; alternativeEmail_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EmailDistributionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EmailDistributionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 16: { int rawValue = input.readEnum(); protocol_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); alternativeEmail_ = 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.Distribution.internal_static_io_EmailDistributionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_EmailDistributionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.EmailDistributionRequest.class, com.passkit.grpc.Distribution.EmailDistributionRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * 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; } } /** * 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 PROTOCOL_FIELD_NUMBER = 2; private int protocol_; /** * .io.PassProtocol protocol = 2; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** * .io.PassProtocol protocol = 2; * @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 ALTERNATIVEEMAIL_FIELD_NUMBER = 3; private volatile java.lang.Object alternativeEmail_; /** * string alternativeEmail = 3; * @return The alternativeEmail. */ @java.lang.Override public java.lang.String getAlternativeEmail() { java.lang.Object ref = alternativeEmail_; 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(); alternativeEmail_ = s; return s; } } /** * string alternativeEmail = 3; * @return The bytes for alternativeEmail. */ @java.lang.Override public com.google.protobuf.ByteString getAlternativeEmailBytes() { java.lang.Object ref = alternativeEmail_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alternativeEmail_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) { output.writeEnum(2, protocol_); } if (!getAlternativeEmailBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, alternativeEmail_); } 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 (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, protocol_); } if (!getAlternativeEmailBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, alternativeEmail_); } 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.Distribution.EmailDistributionRequest)) { return super.equals(obj); } com.passkit.grpc.Distribution.EmailDistributionRequest other = (com.passkit.grpc.Distribution.EmailDistributionRequest) obj; if (!getId() .equals(other.getId())) return false; if (protocol_ != other.protocol_) return false; if (!getAlternativeEmail() .equals(other.getAlternativeEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + protocol_; hash = (37 * hash) + ALTERNATIVEEMAIL_FIELD_NUMBER; hash = (53 * hash) + getAlternativeEmail().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Distribution.EmailDistributionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.EmailDistributionRequest 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.Distribution.EmailDistributionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.EmailDistributionRequest 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.Distribution.EmailDistributionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.EmailDistributionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Distribution.EmailDistributionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.EmailDistributionRequest 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.Distribution.EmailDistributionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.EmailDistributionRequest 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.Distribution.EmailDistributionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.EmailDistributionRequest 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.Distribution.EmailDistributionRequest 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.EmailDistributionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.EmailDistributionRequest) com.passkit.grpc.Distribution.EmailDistributionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Distribution.internal_static_io_EmailDistributionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_EmailDistributionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.EmailDistributionRequest.class, com.passkit.grpc.Distribution.EmailDistributionRequest.Builder.class); } // Construct using com.passkit.grpc.Distribution.EmailDistributionRequest.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_ = ""; protocol_ = 0; alternativeEmail_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Distribution.internal_static_io_EmailDistributionRequest_descriptor; } @java.lang.Override public com.passkit.grpc.Distribution.EmailDistributionRequest getDefaultInstanceForType() { return com.passkit.grpc.Distribution.EmailDistributionRequest.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Distribution.EmailDistributionRequest build() { com.passkit.grpc.Distribution.EmailDistributionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Distribution.EmailDistributionRequest buildPartial() { com.passkit.grpc.Distribution.EmailDistributionRequest result = new com.passkit.grpc.Distribution.EmailDistributionRequest(this); result.id_ = id_; result.protocol_ = protocol_; result.alternativeEmail_ = alternativeEmail_; 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.Distribution.EmailDistributionRequest) { return mergeFrom((com.passkit.grpc.Distribution.EmailDistributionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Distribution.EmailDistributionRequest other) { if (other == com.passkit.grpc.Distribution.EmailDistributionRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.protocol_ != 0) { setProtocolValue(other.getProtocolValue()); } if (!other.getAlternativeEmail().isEmpty()) { alternativeEmail_ = other.alternativeEmail_; 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.Distribution.EmailDistributionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Distribution.EmailDistributionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** * 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; } } /** * 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; } } /** * 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; } /** * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private int protocol_ = 0; /** * .io.PassProtocol protocol = 2; * @return The enum numeric value on the wire for protocol. */ @java.lang.Override public int getProtocolValue() { return protocol_; } /** * .io.PassProtocol protocol = 2; * @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; } /** * .io.PassProtocol protocol = 2; * @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; } /** * .io.PassProtocol protocol = 2; * @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; } /** * .io.PassProtocol protocol = 2; * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = 0; onChanged(); return this; } private java.lang.Object alternativeEmail_ = ""; /** * string alternativeEmail = 3; * @return The alternativeEmail. */ public java.lang.String getAlternativeEmail() { java.lang.Object ref = alternativeEmail_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alternativeEmail_ = s; return s; } else { return (java.lang.String) ref; } } /** * string alternativeEmail = 3; * @return The bytes for alternativeEmail. */ public com.google.protobuf.ByteString getAlternativeEmailBytes() { java.lang.Object ref = alternativeEmail_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alternativeEmail_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string alternativeEmail = 3; * @param value The alternativeEmail to set. * @return This builder for chaining. */ public Builder setAlternativeEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } alternativeEmail_ = value; onChanged(); return this; } /** * string alternativeEmail = 3; * @return This builder for chaining. */ public Builder clearAlternativeEmail() { alternativeEmail_ = getDefaultInstance().getAlternativeEmail(); onChanged(); return this; } /** * string alternativeEmail = 3; * @param value The bytes for alternativeEmail to set. * @return This builder for chaining. */ public Builder setAlternativeEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); alternativeEmail_ = 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.EmailDistributionRequest) } // @@protoc_insertion_point(class_scope:io.EmailDistributionRequest) private static final com.passkit.grpc.Distribution.EmailDistributionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Distribution.EmailDistributionRequest(); } public static com.passkit.grpc.Distribution.EmailDistributionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EmailDistributionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EmailDistributionRequest(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.Distribution.EmailDistributionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SmartPassLinkRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:io.SmartPassLinkRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
     * 
* * .io.Url projectDistributionUrl = 1; * @return Whether the projectDistributionUrl field is set. */ boolean hasProjectDistributionUrl(); /** *
     * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
     * 
* * .io.Url projectDistributionUrl = 1; * @return The projectDistributionUrl. */ com.passkit.grpc.CommonObjects.Url getProjectDistributionUrl(); /** *
     * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
     * 
* * .io.Url projectDistributionUrl = 1; */ com.passkit.grpc.CommonObjects.UrlOrBuilder getProjectDistributionUrlOrBuilder(); /** *
     * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
     * 
* * map<string, string> fields = 2; */ int getFieldsCount(); /** *
     * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
     * 
* * map<string, string> fields = 2; */ boolean containsFields( java.lang.String key); /** * Use {@link #getFieldsMap()} instead. */ @java.lang.Deprecated java.util.Map getFields(); /** *
     * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
     * 
* * map<string, string> fields = 2; */ java.util.Map getFieldsMap(); /** *
     * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
     * 
* * map<string, string> fields = 2; */ java.lang.String getFieldsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
     * 
* * map<string, string> fields = 2; */ java.lang.String getFieldsOrThrow( java.lang.String key); } /** * Protobuf type {@code io.SmartPassLinkRequest} */ public static final class SmartPassLinkRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.SmartPassLinkRequest) SmartPassLinkRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SmartPassLinkRequest.newBuilder() to construct. private SmartPassLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SmartPassLinkRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SmartPassLinkRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SmartPassLinkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.passkit.grpc.CommonObjects.Url.Builder subBuilder = null; if (projectDistributionUrl_ != null) { subBuilder = projectDistributionUrl_.toBuilder(); } projectDistributionUrl_ = input.readMessage(com.passkit.grpc.CommonObjects.Url.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(projectDistributionUrl_); projectDistributionUrl_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = com.google.protobuf.MapField.newMapField( FieldsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry fields__ = input.readMessage( FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); fields_.getMutableMap().put( fields__.getKey(), fields__.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.Distribution.internal_static_io_SmartPassLinkRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetFields(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_SmartPassLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.SmartPassLinkRequest.class, com.passkit.grpc.Distribution.SmartPassLinkRequest.Builder.class); } public static final int PROJECTDISTRIBUTIONURL_FIELD_NUMBER = 1; private com.passkit.grpc.CommonObjects.Url projectDistributionUrl_; /** *
     * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
     * 
* * .io.Url projectDistributionUrl = 1; * @return Whether the projectDistributionUrl field is set. */ @java.lang.Override public boolean hasProjectDistributionUrl() { return projectDistributionUrl_ != null; } /** *
     * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
     * 
* * .io.Url projectDistributionUrl = 1; * @return The projectDistributionUrl. */ @java.lang.Override public com.passkit.grpc.CommonObjects.Url getProjectDistributionUrl() { return projectDistributionUrl_ == null ? com.passkit.grpc.CommonObjects.Url.getDefaultInstance() : projectDistributionUrl_; } /** *
     * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
     * 
* * .io.Url projectDistributionUrl = 1; */ @java.lang.Override public com.passkit.grpc.CommonObjects.UrlOrBuilder getProjectDistributionUrlOrBuilder() { return getProjectDistributionUrl(); } public static final int FIELDS_FIELD_NUMBER = 2; private static final class FieldsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.passkit.grpc.Distribution.internal_static_io_SmartPassLinkRequest_FieldsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> fields_; private com.google.protobuf.MapField internalGetFields() { if (fields_ == null) { return com.google.protobuf.MapField.emptyMapField( FieldsDefaultEntryHolder.defaultEntry); } return fields_; } public int getFieldsCount() { return internalGetFields().getMap().size(); } /** *
     * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
     * 
* * map<string, string> fields = 2; */ @java.lang.Override public boolean containsFields( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFields().getMap().containsKey(key); } /** * Use {@link #getFieldsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFields() { return getFieldsMap(); } /** *
     * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
     * 
* * map<string, string> fields = 2; */ @java.lang.Override public java.util.Map getFieldsMap() { return internalGetFields().getMap(); } /** *
     * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
     * 
* * map<string, string> fields = 2; */ @java.lang.Override public java.lang.String getFieldsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
     * 
* * map<string, string> fields = 2; */ @java.lang.Override public java.lang.String getFieldsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFields().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 (projectDistributionUrl_ != null) { output.writeMessage(1, getProjectDistributionUrl()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (projectDistributionUrl_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getProjectDistributionUrl()); } for (java.util.Map.Entry entry : internalGetFields().getMap().entrySet()) { com.google.protobuf.MapEntry fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, fields__); } 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.Distribution.SmartPassLinkRequest)) { return super.equals(obj); } com.passkit.grpc.Distribution.SmartPassLinkRequest other = (com.passkit.grpc.Distribution.SmartPassLinkRequest) obj; if (hasProjectDistributionUrl() != other.hasProjectDistributionUrl()) return false; if (hasProjectDistributionUrl()) { if (!getProjectDistributionUrl() .equals(other.getProjectDistributionUrl())) return false; } if (!internalGetFields().equals( other.internalGetFields())) 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 (hasProjectDistributionUrl()) { hash = (37 * hash) + PROJECTDISTRIBUTIONURL_FIELD_NUMBER; hash = (53 * hash) + getProjectDistributionUrl().hashCode(); } if (!internalGetFields().getMap().isEmpty()) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + internalGetFields().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Distribution.SmartPassLinkRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.SmartPassLinkRequest 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.Distribution.SmartPassLinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.SmartPassLinkRequest 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.Distribution.SmartPassLinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.SmartPassLinkRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Distribution.SmartPassLinkRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.SmartPassLinkRequest 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.Distribution.SmartPassLinkRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.SmartPassLinkRequest 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.Distribution.SmartPassLinkRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.SmartPassLinkRequest 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.Distribution.SmartPassLinkRequest 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.SmartPassLinkRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.SmartPassLinkRequest) com.passkit.grpc.Distribution.SmartPassLinkRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Distribution.internal_static_io_SmartPassLinkRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetFields(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableFields(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_SmartPassLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.SmartPassLinkRequest.class, com.passkit.grpc.Distribution.SmartPassLinkRequest.Builder.class); } // Construct using com.passkit.grpc.Distribution.SmartPassLinkRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (projectDistributionUrlBuilder_ == null) { projectDistributionUrl_ = null; } else { projectDistributionUrl_ = null; projectDistributionUrlBuilder_ = null; } internalGetMutableFields().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Distribution.internal_static_io_SmartPassLinkRequest_descriptor; } @java.lang.Override public com.passkit.grpc.Distribution.SmartPassLinkRequest getDefaultInstanceForType() { return com.passkit.grpc.Distribution.SmartPassLinkRequest.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Distribution.SmartPassLinkRequest build() { com.passkit.grpc.Distribution.SmartPassLinkRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Distribution.SmartPassLinkRequest buildPartial() { com.passkit.grpc.Distribution.SmartPassLinkRequest result = new com.passkit.grpc.Distribution.SmartPassLinkRequest(this); int from_bitField0_ = bitField0_; if (projectDistributionUrlBuilder_ == null) { result.projectDistributionUrl_ = projectDistributionUrl_; } else { result.projectDistributionUrl_ = projectDistributionUrlBuilder_.build(); } result.fields_ = internalGetFields(); result.fields_.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.Distribution.SmartPassLinkRequest) { return mergeFrom((com.passkit.grpc.Distribution.SmartPassLinkRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Distribution.SmartPassLinkRequest other) { if (other == com.passkit.grpc.Distribution.SmartPassLinkRequest.getDefaultInstance()) return this; if (other.hasProjectDistributionUrl()) { mergeProjectDistributionUrl(other.getProjectDistributionUrl()); } internalGetMutableFields().mergeFrom( other.internalGetFields()); 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.Distribution.SmartPassLinkRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Distribution.SmartPassLinkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.passkit.grpc.CommonObjects.Url projectDistributionUrl_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Url, com.passkit.grpc.CommonObjects.Url.Builder, com.passkit.grpc.CommonObjects.UrlOrBuilder> projectDistributionUrlBuilder_; /** *
       * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
       * 
* * .io.Url projectDistributionUrl = 1; * @return Whether the projectDistributionUrl field is set. */ public boolean hasProjectDistributionUrl() { return projectDistributionUrlBuilder_ != null || projectDistributionUrl_ != null; } /** *
       * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
       * 
* * .io.Url projectDistributionUrl = 1; * @return The projectDistributionUrl. */ public com.passkit.grpc.CommonObjects.Url getProjectDistributionUrl() { if (projectDistributionUrlBuilder_ == null) { return projectDistributionUrl_ == null ? com.passkit.grpc.CommonObjects.Url.getDefaultInstance() : projectDistributionUrl_; } else { return projectDistributionUrlBuilder_.getMessage(); } } /** *
       * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
       * 
* * .io.Url projectDistributionUrl = 1; */ public Builder setProjectDistributionUrl(com.passkit.grpc.CommonObjects.Url value) { if (projectDistributionUrlBuilder_ == null) { if (value == null) { throw new NullPointerException(); } projectDistributionUrl_ = value; onChanged(); } else { projectDistributionUrlBuilder_.setMessage(value); } return this; } /** *
       * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
       * 
* * .io.Url projectDistributionUrl = 1; */ public Builder setProjectDistributionUrl( com.passkit.grpc.CommonObjects.Url.Builder builderForValue) { if (projectDistributionUrlBuilder_ == null) { projectDistributionUrl_ = builderForValue.build(); onChanged(); } else { projectDistributionUrlBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
       * 
* * .io.Url projectDistributionUrl = 1; */ public Builder mergeProjectDistributionUrl(com.passkit.grpc.CommonObjects.Url value) { if (projectDistributionUrlBuilder_ == null) { if (projectDistributionUrl_ != null) { projectDistributionUrl_ = com.passkit.grpc.CommonObjects.Url.newBuilder(projectDistributionUrl_).mergeFrom(value).buildPartial(); } else { projectDistributionUrl_ = value; } onChanged(); } else { projectDistributionUrlBuilder_.mergeFrom(value); } return this; } /** *
       * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
       * 
* * .io.Url projectDistributionUrl = 1; */ public Builder clearProjectDistributionUrl() { if (projectDistributionUrlBuilder_ == null) { projectDistributionUrl_ = null; onChanged(); } else { projectDistributionUrl_ = null; projectDistributionUrlBuilder_ = null; } return this; } /** *
       * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
       * 
* * .io.Url projectDistributionUrl = 1; */ public com.passkit.grpc.CommonObjects.Url.Builder getProjectDistributionUrlBuilder() { onChanged(); return getProjectDistributionUrlFieldBuilder().getBuilder(); } /** *
       * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
       * 
* * .io.Url projectDistributionUrl = 1; */ public com.passkit.grpc.CommonObjects.UrlOrBuilder getProjectDistributionUrlOrBuilder() { if (projectDistributionUrlBuilder_ != null) { return projectDistributionUrlBuilder_.getMessageOrBuilder(); } else { return projectDistributionUrl_ == null ? com.passkit.grpc.CommonObjects.Url.getDefaultInstance() : projectDistributionUrl_; } } /** *
       * The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
       * 
* * .io.Url projectDistributionUrl = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Url, com.passkit.grpc.CommonObjects.Url.Builder, com.passkit.grpc.CommonObjects.UrlOrBuilder> getProjectDistributionUrlFieldBuilder() { if (projectDistributionUrlBuilder_ == null) { projectDistributionUrlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Url, com.passkit.grpc.CommonObjects.Url.Builder, com.passkit.grpc.CommonObjects.UrlOrBuilder>( getProjectDistributionUrl(), getParentForChildren(), isClean()); projectDistributionUrl_ = null; } return projectDistributionUrlBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> fields_; private com.google.protobuf.MapField internalGetFields() { if (fields_ == null) { return com.google.protobuf.MapField.emptyMapField( FieldsDefaultEntryHolder.defaultEntry); } return fields_; } private com.google.protobuf.MapField internalGetMutableFields() { onChanged();; if (fields_ == null) { fields_ = com.google.protobuf.MapField.newMapField( FieldsDefaultEntryHolder.defaultEntry); } if (!fields_.isMutable()) { fields_ = fields_.copy(); } return fields_; } public int getFieldsCount() { return internalGetFields().getMap().size(); } /** *
       * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
       * 
* * map<string, string> fields = 2; */ @java.lang.Override public boolean containsFields( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFields().getMap().containsKey(key); } /** * Use {@link #getFieldsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFields() { return getFieldsMap(); } /** *
       * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
       * 
* * map<string, string> fields = 2; */ @java.lang.Override public java.util.Map getFieldsMap() { return internalGetFields().getMap(); } /** *
       * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
       * 
* * map<string, string> fields = 2; */ @java.lang.Override public java.lang.String getFieldsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
       * 
* * map<string, string> fields = 2; */ @java.lang.Override public java.lang.String getFieldsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFields().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearFields() { internalGetMutableFields().getMutableMap() .clear(); return this; } /** *
       * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
       * 
* * map<string, string> fields = 2; */ public Builder removeFields( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableFields().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFields() { return internalGetMutableFields().getMutableMap(); } /** *
       * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
       * 
* * map<string, string> fields = 2; */ public Builder putFields( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableFields().getMutableMap() .put(key, value); return this; } /** *
       * The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
       * 
* * map<string, string> fields = 2; */ public Builder putAllFields( java.util.Map values) { internalGetMutableFields().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.SmartPassLinkRequest) } // @@protoc_insertion_point(class_scope:io.SmartPassLinkRequest) private static final com.passkit.grpc.Distribution.SmartPassLinkRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Distribution.SmartPassLinkRequest(); } public static com.passkit.grpc.Distribution.SmartPassLinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SmartPassLinkRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SmartPassLinkRequest(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.Distribution.SmartPassLinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DistributionSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:io.DistributionSettings) com.google.protobuf.MessageOrBuilder { /** * repeated .io.DistributionChannel distributionChannels = 1; * @return A list containing the distributionChannels. */ java.util.List getDistributionChannelsList(); /** * repeated .io.DistributionChannel distributionChannels = 1; * @return The count of distributionChannels. */ int getDistributionChannelsCount(); /** * repeated .io.DistributionChannel distributionChannels = 1; * @param index The index of the element to return. * @return The distributionChannels at the given index. */ com.passkit.grpc.Distribution.DistributionChannel getDistributionChannels(int index); /** * repeated .io.DistributionChannel distributionChannels = 1; * @return A list containing the enum numeric values on the wire for distributionChannels. */ java.util.List getDistributionChannelsValueList(); /** * repeated .io.DistributionChannel distributionChannels = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of distributionChannels at the given index. */ int getDistributionChannelsValue(int index); /** *
     * Welcome email settings
     * 
* * .io.EmailTemplate welcomeEmail = 2; * @return Whether the welcomeEmail field is set. */ boolean hasWelcomeEmail(); /** *
     * Welcome email settings
     * 
* * .io.EmailTemplate welcomeEmail = 2; * @return The welcomeEmail. */ com.passkit.grpc.Distribution.EmailTemplate getWelcomeEmail(); /** *
     * Welcome email settings
     * 
* * .io.EmailTemplate welcomeEmail = 2; */ com.passkit.grpc.Distribution.EmailTemplateOrBuilder getWelcomeEmailOrBuilder(); /** *
     * Welcome SMS settings
     * 
* * .io.SmsTemplate welcomeSms = 3; * @return Whether the welcomeSms field is set. */ boolean hasWelcomeSms(); /** *
     * Welcome SMS settings
     * 
* * .io.SmsTemplate welcomeSms = 3; * @return The welcomeSms. */ com.passkit.grpc.Distribution.SmsTemplate getWelcomeSms(); /** *
     * Welcome SMS settings
     * 
* * .io.SmsTemplate welcomeSms = 3; */ com.passkit.grpc.Distribution.SmsTemplateOrBuilder getWelcomeSmsOrBuilder(); } /** *
   * DistributionSettings can be used by protocol top level elements to define the email / sms-es
   * 
* * Protobuf type {@code io.DistributionSettings} */ public static final class DistributionSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.DistributionSettings) DistributionSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use DistributionSettings.newBuilder() to construct. private DistributionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DistributionSettings() { distributionChannels_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DistributionSettings(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DistributionSettings( 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)) { distributionChannels_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } distributionChannels_.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)) { distributionChannels_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } distributionChannels_.add(rawValue); } input.popLimit(oldLimit); break; } case 18: { com.passkit.grpc.Distribution.EmailTemplate.Builder subBuilder = null; if (welcomeEmail_ != null) { subBuilder = welcomeEmail_.toBuilder(); } welcomeEmail_ = input.readMessage(com.passkit.grpc.Distribution.EmailTemplate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(welcomeEmail_); welcomeEmail_ = subBuilder.buildPartial(); } break; } case 26: { com.passkit.grpc.Distribution.SmsTemplate.Builder subBuilder = null; if (welcomeSms_ != null) { subBuilder = welcomeSms_.toBuilder(); } welcomeSms_ = input.readMessage(com.passkit.grpc.Distribution.SmsTemplate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(welcomeSms_); welcomeSms_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { distributionChannels_ = java.util.Collections.unmodifiableList(distributionChannels_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Distribution.internal_static_io_DistributionSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_DistributionSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.DistributionSettings.class, com.passkit.grpc.Distribution.DistributionSettings.Builder.class); } public static final int DISTRIBUTIONCHANNELS_FIELD_NUMBER = 1; private java.util.List distributionChannels_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.Distribution.DistributionChannel> distributionChannels_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.Distribution.DistributionChannel>() { public com.passkit.grpc.Distribution.DistributionChannel convert(java.lang.Integer from) { @SuppressWarnings("deprecation") com.passkit.grpc.Distribution.DistributionChannel result = com.passkit.grpc.Distribution.DistributionChannel.valueOf(from); return result == null ? com.passkit.grpc.Distribution.DistributionChannel.UNRECOGNIZED : result; } }; /** * repeated .io.DistributionChannel distributionChannels = 1; * @return A list containing the distributionChannels. */ @java.lang.Override public java.util.List getDistributionChannelsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.Distribution.DistributionChannel>(distributionChannels_, distributionChannels_converter_); } /** * repeated .io.DistributionChannel distributionChannels = 1; * @return The count of distributionChannels. */ @java.lang.Override public int getDistributionChannelsCount() { return distributionChannels_.size(); } /** * repeated .io.DistributionChannel distributionChannels = 1; * @param index The index of the element to return. * @return The distributionChannels at the given index. */ @java.lang.Override public com.passkit.grpc.Distribution.DistributionChannel getDistributionChannels(int index) { return distributionChannels_converter_.convert(distributionChannels_.get(index)); } /** * repeated .io.DistributionChannel distributionChannels = 1; * @return A list containing the enum numeric values on the wire for distributionChannels. */ @java.lang.Override public java.util.List getDistributionChannelsValueList() { return distributionChannels_; } /** * repeated .io.DistributionChannel distributionChannels = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of distributionChannels at the given index. */ @java.lang.Override public int getDistributionChannelsValue(int index) { return distributionChannels_.get(index); } private int distributionChannelsMemoizedSerializedSize; public static final int WELCOMEEMAIL_FIELD_NUMBER = 2; private com.passkit.grpc.Distribution.EmailTemplate welcomeEmail_; /** *
     * Welcome email settings
     * 
* * .io.EmailTemplate welcomeEmail = 2; * @return Whether the welcomeEmail field is set. */ @java.lang.Override public boolean hasWelcomeEmail() { return welcomeEmail_ != null; } /** *
     * Welcome email settings
     * 
* * .io.EmailTemplate welcomeEmail = 2; * @return The welcomeEmail. */ @java.lang.Override public com.passkit.grpc.Distribution.EmailTemplate getWelcomeEmail() { return welcomeEmail_ == null ? com.passkit.grpc.Distribution.EmailTemplate.getDefaultInstance() : welcomeEmail_; } /** *
     * Welcome email settings
     * 
* * .io.EmailTemplate welcomeEmail = 2; */ @java.lang.Override public com.passkit.grpc.Distribution.EmailTemplateOrBuilder getWelcomeEmailOrBuilder() { return getWelcomeEmail(); } public static final int WELCOMESMS_FIELD_NUMBER = 3; private com.passkit.grpc.Distribution.SmsTemplate welcomeSms_; /** *
     * Welcome SMS settings
     * 
* * .io.SmsTemplate welcomeSms = 3; * @return Whether the welcomeSms field is set. */ @java.lang.Override public boolean hasWelcomeSms() { return welcomeSms_ != null; } /** *
     * Welcome SMS settings
     * 
* * .io.SmsTemplate welcomeSms = 3; * @return The welcomeSms. */ @java.lang.Override public com.passkit.grpc.Distribution.SmsTemplate getWelcomeSms() { return welcomeSms_ == null ? com.passkit.grpc.Distribution.SmsTemplate.getDefaultInstance() : welcomeSms_; } /** *
     * Welcome SMS settings
     * 
* * .io.SmsTemplate welcomeSms = 3; */ @java.lang.Override public com.passkit.grpc.Distribution.SmsTemplateOrBuilder getWelcomeSmsOrBuilder() { return getWelcomeSms(); } 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 (getDistributionChannelsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(distributionChannelsMemoizedSerializedSize); } for (int i = 0; i < distributionChannels_.size(); i++) { output.writeEnumNoTag(distributionChannels_.get(i)); } if (welcomeEmail_ != null) { output.writeMessage(2, getWelcomeEmail()); } if (welcomeSms_ != null) { output.writeMessage(3, getWelcomeSms()); } 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 < distributionChannels_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(distributionChannels_.get(i)); } size += dataSize; if (!getDistributionChannelsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }distributionChannelsMemoizedSerializedSize = dataSize; } if (welcomeEmail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getWelcomeEmail()); } if (welcomeSms_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getWelcomeSms()); } 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.Distribution.DistributionSettings)) { return super.equals(obj); } com.passkit.grpc.Distribution.DistributionSettings other = (com.passkit.grpc.Distribution.DistributionSettings) obj; if (!distributionChannels_.equals(other.distributionChannels_)) return false; if (hasWelcomeEmail() != other.hasWelcomeEmail()) return false; if (hasWelcomeEmail()) { if (!getWelcomeEmail() .equals(other.getWelcomeEmail())) return false; } if (hasWelcomeSms() != other.hasWelcomeSms()) return false; if (hasWelcomeSms()) { if (!getWelcomeSms() .equals(other.getWelcomeSms())) 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 (getDistributionChannelsCount() > 0) { hash = (37 * hash) + DISTRIBUTIONCHANNELS_FIELD_NUMBER; hash = (53 * hash) + distributionChannels_.hashCode(); } if (hasWelcomeEmail()) { hash = (37 * hash) + WELCOMEEMAIL_FIELD_NUMBER; hash = (53 * hash) + getWelcomeEmail().hashCode(); } if (hasWelcomeSms()) { hash = (37 * hash) + WELCOMESMS_FIELD_NUMBER; hash = (53 * hash) + getWelcomeSms().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Distribution.DistributionSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.DistributionSettings 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.Distribution.DistributionSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.DistributionSettings 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.Distribution.DistributionSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.DistributionSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Distribution.DistributionSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.DistributionSettings 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.Distribution.DistributionSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.DistributionSettings 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.Distribution.DistributionSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.DistributionSettings 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.Distribution.DistributionSettings 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; } /** *
     * DistributionSettings can be used by protocol top level elements to define the email / sms-es
     * 
* * Protobuf type {@code io.DistributionSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.DistributionSettings) com.passkit.grpc.Distribution.DistributionSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Distribution.internal_static_io_DistributionSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_DistributionSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.DistributionSettings.class, com.passkit.grpc.Distribution.DistributionSettings.Builder.class); } // Construct using com.passkit.grpc.Distribution.DistributionSettings.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(); distributionChannels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (welcomeEmailBuilder_ == null) { welcomeEmail_ = null; } else { welcomeEmail_ = null; welcomeEmailBuilder_ = null; } if (welcomeSmsBuilder_ == null) { welcomeSms_ = null; } else { welcomeSms_ = null; welcomeSmsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Distribution.internal_static_io_DistributionSettings_descriptor; } @java.lang.Override public com.passkit.grpc.Distribution.DistributionSettings getDefaultInstanceForType() { return com.passkit.grpc.Distribution.DistributionSettings.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Distribution.DistributionSettings build() { com.passkit.grpc.Distribution.DistributionSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Distribution.DistributionSettings buildPartial() { com.passkit.grpc.Distribution.DistributionSettings result = new com.passkit.grpc.Distribution.DistributionSettings(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { distributionChannels_ = java.util.Collections.unmodifiableList(distributionChannels_); bitField0_ = (bitField0_ & ~0x00000001); } result.distributionChannels_ = distributionChannels_; if (welcomeEmailBuilder_ == null) { result.welcomeEmail_ = welcomeEmail_; } else { result.welcomeEmail_ = welcomeEmailBuilder_.build(); } if (welcomeSmsBuilder_ == null) { result.welcomeSms_ = welcomeSms_; } else { result.welcomeSms_ = welcomeSmsBuilder_.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.Distribution.DistributionSettings) { return mergeFrom((com.passkit.grpc.Distribution.DistributionSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Distribution.DistributionSettings other) { if (other == com.passkit.grpc.Distribution.DistributionSettings.getDefaultInstance()) return this; if (!other.distributionChannels_.isEmpty()) { if (distributionChannels_.isEmpty()) { distributionChannels_ = other.distributionChannels_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDistributionChannelsIsMutable(); distributionChannels_.addAll(other.distributionChannels_); } onChanged(); } if (other.hasWelcomeEmail()) { mergeWelcomeEmail(other.getWelcomeEmail()); } if (other.hasWelcomeSms()) { mergeWelcomeSms(other.getWelcomeSms()); } 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.Distribution.DistributionSettings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Distribution.DistributionSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List distributionChannels_ = java.util.Collections.emptyList(); private void ensureDistributionChannelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { distributionChannels_ = new java.util.ArrayList(distributionChannels_); bitField0_ |= 0x00000001; } } /** * repeated .io.DistributionChannel distributionChannels = 1; * @return A list containing the distributionChannels. */ public java.util.List getDistributionChannelsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.Distribution.DistributionChannel>(distributionChannels_, distributionChannels_converter_); } /** * repeated .io.DistributionChannel distributionChannels = 1; * @return The count of distributionChannels. */ public int getDistributionChannelsCount() { return distributionChannels_.size(); } /** * repeated .io.DistributionChannel distributionChannels = 1; * @param index The index of the element to return. * @return The distributionChannels at the given index. */ public com.passkit.grpc.Distribution.DistributionChannel getDistributionChannels(int index) { return distributionChannels_converter_.convert(distributionChannels_.get(index)); } /** * repeated .io.DistributionChannel distributionChannels = 1; * @param index The index to set the value at. * @param value The distributionChannels to set. * @return This builder for chaining. */ public Builder setDistributionChannels( int index, com.passkit.grpc.Distribution.DistributionChannel value) { if (value == null) { throw new NullPointerException(); } ensureDistributionChannelsIsMutable(); distributionChannels_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .io.DistributionChannel distributionChannels = 1; * @param value The distributionChannels to add. * @return This builder for chaining. */ public Builder addDistributionChannels(com.passkit.grpc.Distribution.DistributionChannel value) { if (value == null) { throw new NullPointerException(); } ensureDistributionChannelsIsMutable(); distributionChannels_.add(value.getNumber()); onChanged(); return this; } /** * repeated .io.DistributionChannel distributionChannels = 1; * @param values The distributionChannels to add. * @return This builder for chaining. */ public Builder addAllDistributionChannels( java.lang.Iterable values) { ensureDistributionChannelsIsMutable(); for (com.passkit.grpc.Distribution.DistributionChannel value : values) { distributionChannels_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .io.DistributionChannel distributionChannels = 1; * @return This builder for chaining. */ public Builder clearDistributionChannels() { distributionChannels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated .io.DistributionChannel distributionChannels = 1; * @return A list containing the enum numeric values on the wire for distributionChannels. */ public java.util.List getDistributionChannelsValueList() { return java.util.Collections.unmodifiableList(distributionChannels_); } /** * repeated .io.DistributionChannel distributionChannels = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of distributionChannels at the given index. */ public int getDistributionChannelsValue(int index) { return distributionChannels_.get(index); } /** * repeated .io.DistributionChannel distributionChannels = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of distributionChannels at the given index. * @return This builder for chaining. */ public Builder setDistributionChannelsValue( int index, int value) { ensureDistributionChannelsIsMutable(); distributionChannels_.set(index, value); onChanged(); return this; } /** * repeated .io.DistributionChannel distributionChannels = 1; * @param value The enum numeric value on the wire for distributionChannels to add. * @return This builder for chaining. */ public Builder addDistributionChannelsValue(int value) { ensureDistributionChannelsIsMutable(); distributionChannels_.add(value); onChanged(); return this; } /** * repeated .io.DistributionChannel distributionChannels = 1; * @param values The enum numeric values on the wire for distributionChannels to add. * @return This builder for chaining. */ public Builder addAllDistributionChannelsValue( java.lang.Iterable values) { ensureDistributionChannelsIsMutable(); for (int value : values) { distributionChannels_.add(value); } onChanged(); return this; } private com.passkit.grpc.Distribution.EmailTemplate welcomeEmail_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.EmailTemplate, com.passkit.grpc.Distribution.EmailTemplate.Builder, com.passkit.grpc.Distribution.EmailTemplateOrBuilder> welcomeEmailBuilder_; /** *
       * Welcome email settings
       * 
* * .io.EmailTemplate welcomeEmail = 2; * @return Whether the welcomeEmail field is set. */ public boolean hasWelcomeEmail() { return welcomeEmailBuilder_ != null || welcomeEmail_ != null; } /** *
       * Welcome email settings
       * 
* * .io.EmailTemplate welcomeEmail = 2; * @return The welcomeEmail. */ public com.passkit.grpc.Distribution.EmailTemplate getWelcomeEmail() { if (welcomeEmailBuilder_ == null) { return welcomeEmail_ == null ? com.passkit.grpc.Distribution.EmailTemplate.getDefaultInstance() : welcomeEmail_; } else { return welcomeEmailBuilder_.getMessage(); } } /** *
       * Welcome email settings
       * 
* * .io.EmailTemplate welcomeEmail = 2; */ public Builder setWelcomeEmail(com.passkit.grpc.Distribution.EmailTemplate value) { if (welcomeEmailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } welcomeEmail_ = value; onChanged(); } else { welcomeEmailBuilder_.setMessage(value); } return this; } /** *
       * Welcome email settings
       * 
* * .io.EmailTemplate welcomeEmail = 2; */ public Builder setWelcomeEmail( com.passkit.grpc.Distribution.EmailTemplate.Builder builderForValue) { if (welcomeEmailBuilder_ == null) { welcomeEmail_ = builderForValue.build(); onChanged(); } else { welcomeEmailBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Welcome email settings
       * 
* * .io.EmailTemplate welcomeEmail = 2; */ public Builder mergeWelcomeEmail(com.passkit.grpc.Distribution.EmailTemplate value) { if (welcomeEmailBuilder_ == null) { if (welcomeEmail_ != null) { welcomeEmail_ = com.passkit.grpc.Distribution.EmailTemplate.newBuilder(welcomeEmail_).mergeFrom(value).buildPartial(); } else { welcomeEmail_ = value; } onChanged(); } else { welcomeEmailBuilder_.mergeFrom(value); } return this; } /** *
       * Welcome email settings
       * 
* * .io.EmailTemplate welcomeEmail = 2; */ public Builder clearWelcomeEmail() { if (welcomeEmailBuilder_ == null) { welcomeEmail_ = null; onChanged(); } else { welcomeEmail_ = null; welcomeEmailBuilder_ = null; } return this; } /** *
       * Welcome email settings
       * 
* * .io.EmailTemplate welcomeEmail = 2; */ public com.passkit.grpc.Distribution.EmailTemplate.Builder getWelcomeEmailBuilder() { onChanged(); return getWelcomeEmailFieldBuilder().getBuilder(); } /** *
       * Welcome email settings
       * 
* * .io.EmailTemplate welcomeEmail = 2; */ public com.passkit.grpc.Distribution.EmailTemplateOrBuilder getWelcomeEmailOrBuilder() { if (welcomeEmailBuilder_ != null) { return welcomeEmailBuilder_.getMessageOrBuilder(); } else { return welcomeEmail_ == null ? com.passkit.grpc.Distribution.EmailTemplate.getDefaultInstance() : welcomeEmail_; } } /** *
       * Welcome email settings
       * 
* * .io.EmailTemplate welcomeEmail = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.EmailTemplate, com.passkit.grpc.Distribution.EmailTemplate.Builder, com.passkit.grpc.Distribution.EmailTemplateOrBuilder> getWelcomeEmailFieldBuilder() { if (welcomeEmailBuilder_ == null) { welcomeEmailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.EmailTemplate, com.passkit.grpc.Distribution.EmailTemplate.Builder, com.passkit.grpc.Distribution.EmailTemplateOrBuilder>( getWelcomeEmail(), getParentForChildren(), isClean()); welcomeEmail_ = null; } return welcomeEmailBuilder_; } private com.passkit.grpc.Distribution.SmsTemplate welcomeSms_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.SmsTemplate, com.passkit.grpc.Distribution.SmsTemplate.Builder, com.passkit.grpc.Distribution.SmsTemplateOrBuilder> welcomeSmsBuilder_; /** *
       * Welcome SMS settings
       * 
* * .io.SmsTemplate welcomeSms = 3; * @return Whether the welcomeSms field is set. */ public boolean hasWelcomeSms() { return welcomeSmsBuilder_ != null || welcomeSms_ != null; } /** *
       * Welcome SMS settings
       * 
* * .io.SmsTemplate welcomeSms = 3; * @return The welcomeSms. */ public com.passkit.grpc.Distribution.SmsTemplate getWelcomeSms() { if (welcomeSmsBuilder_ == null) { return welcomeSms_ == null ? com.passkit.grpc.Distribution.SmsTemplate.getDefaultInstance() : welcomeSms_; } else { return welcomeSmsBuilder_.getMessage(); } } /** *
       * Welcome SMS settings
       * 
* * .io.SmsTemplate welcomeSms = 3; */ public Builder setWelcomeSms(com.passkit.grpc.Distribution.SmsTemplate value) { if (welcomeSmsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } welcomeSms_ = value; onChanged(); } else { welcomeSmsBuilder_.setMessage(value); } return this; } /** *
       * Welcome SMS settings
       * 
* * .io.SmsTemplate welcomeSms = 3; */ public Builder setWelcomeSms( com.passkit.grpc.Distribution.SmsTemplate.Builder builderForValue) { if (welcomeSmsBuilder_ == null) { welcomeSms_ = builderForValue.build(); onChanged(); } else { welcomeSmsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Welcome SMS settings
       * 
* * .io.SmsTemplate welcomeSms = 3; */ public Builder mergeWelcomeSms(com.passkit.grpc.Distribution.SmsTemplate value) { if (welcomeSmsBuilder_ == null) { if (welcomeSms_ != null) { welcomeSms_ = com.passkit.grpc.Distribution.SmsTemplate.newBuilder(welcomeSms_).mergeFrom(value).buildPartial(); } else { welcomeSms_ = value; } onChanged(); } else { welcomeSmsBuilder_.mergeFrom(value); } return this; } /** *
       * Welcome SMS settings
       * 
* * .io.SmsTemplate welcomeSms = 3; */ public Builder clearWelcomeSms() { if (welcomeSmsBuilder_ == null) { welcomeSms_ = null; onChanged(); } else { welcomeSms_ = null; welcomeSmsBuilder_ = null; } return this; } /** *
       * Welcome SMS settings
       * 
* * .io.SmsTemplate welcomeSms = 3; */ public com.passkit.grpc.Distribution.SmsTemplate.Builder getWelcomeSmsBuilder() { onChanged(); return getWelcomeSmsFieldBuilder().getBuilder(); } /** *
       * Welcome SMS settings
       * 
* * .io.SmsTemplate welcomeSms = 3; */ public com.passkit.grpc.Distribution.SmsTemplateOrBuilder getWelcomeSmsOrBuilder() { if (welcomeSmsBuilder_ != null) { return welcomeSmsBuilder_.getMessageOrBuilder(); } else { return welcomeSms_ == null ? com.passkit.grpc.Distribution.SmsTemplate.getDefaultInstance() : welcomeSms_; } } /** *
       * Welcome SMS settings
       * 
* * .io.SmsTemplate welcomeSms = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.SmsTemplate, com.passkit.grpc.Distribution.SmsTemplate.Builder, com.passkit.grpc.Distribution.SmsTemplateOrBuilder> getWelcomeSmsFieldBuilder() { if (welcomeSmsBuilder_ == null) { welcomeSmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.SmsTemplate, com.passkit.grpc.Distribution.SmsTemplate.Builder, com.passkit.grpc.Distribution.SmsTemplateOrBuilder>( getWelcomeSms(), getParentForChildren(), isClean()); welcomeSms_ = null; } return welcomeSmsBuilder_; } @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.DistributionSettings) } // @@protoc_insertion_point(class_scope:io.DistributionSettings) private static final com.passkit.grpc.Distribution.DistributionSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Distribution.DistributionSettings(); } public static com.passkit.grpc.Distribution.DistributionSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DistributionSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DistributionSettings(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.Distribution.DistributionSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmailTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:io.EmailTemplate) com.google.protobuf.MessageOrBuilder { /** *
     * Subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc..
     * 
* * string subject = 1; * @return The subject. */ java.lang.String getSubject(); /** *
     * Subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc..
     * 
* * string subject = 1; * @return The bytes for subject. */ com.google.protobuf.ByteString getSubjectBytes(); /** *
     * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedSubject = 2; * @return Whether the localizedSubject field is set. */ boolean hasLocalizedSubject(); /** *
     * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedSubject = 2; * @return The localizedSubject. */ com.passkit.grpc.Localization.LocalizedString getLocalizedSubject(); /** *
     * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedSubject = 2; */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSubjectOrBuilder(); /** *
     * Text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string bodyTextContent = 3; * @return The bodyTextContent. */ java.lang.String getBodyTextContent(); /** *
     * Text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string bodyTextContent = 3; * @return The bytes for bodyTextContent. */ com.google.protobuf.ByteString getBodyTextContentBytes(); /** *
     * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyTextContent = 4; * @return Whether the localizedBodyTextContent field is set. */ boolean hasLocalizedBodyTextContent(); /** *
     * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyTextContent = 4; * @return The localizedBodyTextContent. */ com.passkit.grpc.Localization.LocalizedString getLocalizedBodyTextContent(); /** *
     * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyTextContent = 4; */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedBodyTextContentOrBuilder(); /** *
     * Content for HTML email rendered above the pass install button. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string bodyHtmlContent = 5; * @return The bodyHtmlContent. */ java.lang.String getBodyHtmlContent(); /** *
     * Content for HTML email rendered above the pass install button. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string bodyHtmlContent = 5; * @return The bytes for bodyHtmlContent. */ com.google.protobuf.ByteString getBodyHtmlContentBytes(); /** *
     * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; * @return Whether the localizedBodyHtmlContent field is set. */ boolean hasLocalizedBodyHtmlContent(); /** *
     * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; * @return The localizedBodyHtmlContent. */ com.passkit.grpc.Localization.LocalizedString getLocalizedBodyHtmlContent(); /** *
     * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedBodyHtmlContentOrBuilder(); /** *
     * 7 is reserved for custom email SMTP configuration
     * 
* * .io.EmailConfiguration configuration = 7; * @return Whether the configuration field is set. */ boolean hasConfiguration(); /** *
     * 7 is reserved for custom email SMTP configuration
     * 
* * .io.EmailConfiguration configuration = 7; * @return The configuration. */ com.passkit.grpc.Distribution.EmailConfiguration getConfiguration(); /** *
     * 7 is reserved for custom email SMTP configuration
     * 
* * .io.EmailConfiguration configuration = 7; */ com.passkit.grpc.Distribution.EmailConfigurationOrBuilder getConfigurationOrBuilder(); /** *
     * Text of the pass install button.
     * 
* * string buttonText = 8; * @return The buttonText. */ java.lang.String getButtonText(); /** *
     * Text of the pass install button.
     * 
* * string buttonText = 8; * @return The bytes for buttonText. */ com.google.protobuf.ByteString getButtonTextBytes(); /** *
     * Text color of the pass install button.
     * 
* * string buttonTextColor = 9; * @return The buttonTextColor. */ java.lang.String getButtonTextColor(); /** *
     * Text color of the pass install button.
     * 
* * string buttonTextColor = 9; * @return The bytes for buttonTextColor. */ com.google.protobuf.ByteString getButtonTextColorBytes(); /** *
     * Color of the pass install button.
     * 
* * string buttonBackgroundColor = 10; * @return The buttonBackgroundColor. */ java.lang.String getButtonBackgroundColor(); /** *
     * Color of the pass install button.
     * 
* * string buttonBackgroundColor = 10; * @return The bytes for buttonBackgroundColor. */ com.google.protobuf.ByteString getButtonBackgroundColorBytes(); /** *
     * Radius of the pass install button. The unit can be px or %. Default is px.
     * 
* * string buttonBorderRadius = 11; * @return The buttonBorderRadius. */ java.lang.String getButtonBorderRadius(); /** *
     * Radius of the pass install button. The unit can be px or %. Default is px.
     * 
* * string buttonBorderRadius = 11; * @return The bytes for buttonBorderRadius. */ com.google.protobuf.ByteString getButtonBorderRadiusBytes(); /** *
     * Footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
     * 
* * string footerTextContent = 12; * @return The footerTextContent. */ java.lang.String getFooterTextContent(); /** *
     * Footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
     * 
* * string footerTextContent = 12; * @return The bytes for footerTextContent. */ com.google.protobuf.ByteString getFooterTextContentBytes(); /** *
     * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
     * 
* * .io.LocalizedString localizedFooterTextContent = 13; * @return Whether the localizedFooterTextContent field is set. */ boolean hasLocalizedFooterTextContent(); /** *
     * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
     * 
* * .io.LocalizedString localizedFooterTextContent = 13; * @return The localizedFooterTextContent. */ com.passkit.grpc.Localization.LocalizedString getLocalizedFooterTextContent(); /** *
     * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
     * 
* * .io.LocalizedString localizedFooterTextContent = 13; */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterTextContentOrBuilder(); /** *
     * Footer HTML content rendered below the pass install button.
     * 
* * string footerHtmlContent = 14; * @return The footerHtmlContent. */ java.lang.String getFooterHtmlContent(); /** *
     * Footer HTML content rendered below the pass install button.
     * 
* * string footerHtmlContent = 14; * @return The bytes for footerHtmlContent. */ com.google.protobuf.ByteString getFooterHtmlContentBytes(); /** *
     * Localized content for HTML footer content which is rendered below the pass install button.
     * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; * @return Whether the localizedFooterHtmlContent field is set. */ boolean hasLocalizedFooterHtmlContent(); /** *
     * Localized content for HTML footer content which is rendered below the pass install button.
     * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; * @return The localizedFooterHtmlContent. */ com.passkit.grpc.Localization.LocalizedString getLocalizedFooterHtmlContent(); /** *
     * Localized content for HTML footer content which is rendered below the pass install button.
     * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterHtmlContentOrBuilder(); /** *
     * Background color for the message content section.
     * 
* * string messageBackgroundColor = 16; * @return The messageBackgroundColor. */ java.lang.String getMessageBackgroundColor(); /** *
     * Background color for the message content section.
     * 
* * string messageBackgroundColor = 16; * @return The bytes for messageBackgroundColor. */ com.google.protobuf.ByteString getMessageBackgroundColorBytes(); /** *
     * Background color for the margin space surrounding the message content. This setting is relevant for PC viewers.
     * 
* * string pageBackgroundColor = 17; * @return The pageBackgroundColor. */ java.lang.String getPageBackgroundColor(); /** *
     * Background color for the margin space surrounding the message content. This setting is relevant for PC viewers.
     * 
* * string pageBackgroundColor = 17; * @return The bytes for pageBackgroundColor. */ com.google.protobuf.ByteString getPageBackgroundColorBytes(); } /** *
   * EmailTemplate contains details for sending an email to a customer.
   * Uses the default PassKit email provider and sending credentials
   * 
* * Protobuf type {@code io.EmailTemplate} */ public static final class EmailTemplate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.EmailTemplate) EmailTemplateOrBuilder { private static final long serialVersionUID = 0L; // Use EmailTemplate.newBuilder() to construct. private EmailTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EmailTemplate() { subject_ = ""; bodyTextContent_ = ""; bodyHtmlContent_ = ""; buttonText_ = ""; buttonTextColor_ = ""; buttonBackgroundColor_ = ""; buttonBorderRadius_ = ""; footerTextContent_ = ""; footerHtmlContent_ = ""; messageBackgroundColor_ = ""; pageBackgroundColor_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EmailTemplate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EmailTemplate( 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(); subject_ = s; break; } case 18: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedSubject_ != null) { subBuilder = localizedSubject_.toBuilder(); } localizedSubject_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedSubject_); localizedSubject_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); bodyTextContent_ = s; break; } case 34: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedBodyTextContent_ != null) { subBuilder = localizedBodyTextContent_.toBuilder(); } localizedBodyTextContent_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedBodyTextContent_); localizedBodyTextContent_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); bodyHtmlContent_ = s; break; } case 50: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedBodyHtmlContent_ != null) { subBuilder = localizedBodyHtmlContent_.toBuilder(); } localizedBodyHtmlContent_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedBodyHtmlContent_); localizedBodyHtmlContent_ = subBuilder.buildPartial(); } break; } case 58: { com.passkit.grpc.Distribution.EmailConfiguration.Builder subBuilder = null; if (configuration_ != null) { subBuilder = configuration_.toBuilder(); } configuration_ = input.readMessage(com.passkit.grpc.Distribution.EmailConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configuration_); configuration_ = subBuilder.buildPartial(); } break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); buttonText_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); buttonTextColor_ = s; break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); buttonBackgroundColor_ = s; break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); buttonBorderRadius_ = s; break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); footerTextContent_ = s; break; } case 106: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedFooterTextContent_ != null) { subBuilder = localizedFooterTextContent_.toBuilder(); } localizedFooterTextContent_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedFooterTextContent_); localizedFooterTextContent_ = subBuilder.buildPartial(); } break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); footerHtmlContent_ = s; break; } case 122: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedFooterHtmlContent_ != null) { subBuilder = localizedFooterHtmlContent_.toBuilder(); } localizedFooterHtmlContent_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedFooterHtmlContent_); localizedFooterHtmlContent_ = subBuilder.buildPartial(); } break; } case 130: { java.lang.String s = input.readStringRequireUtf8(); messageBackgroundColor_ = s; break; } case 138: { java.lang.String s = input.readStringRequireUtf8(); pageBackgroundColor_ = 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.Distribution.internal_static_io_EmailTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_EmailTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.EmailTemplate.class, com.passkit.grpc.Distribution.EmailTemplate.Builder.class); } public static final int SUBJECT_FIELD_NUMBER = 1; private volatile java.lang.Object subject_; /** *
     * Subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc..
     * 
* * string subject = 1; * @return The subject. */ @java.lang.Override public java.lang.String getSubject() { java.lang.Object ref = subject_; 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(); subject_ = s; return s; } } /** *
     * Subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc..
     * 
* * string subject = 1; * @return The bytes for subject. */ @java.lang.Override public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALIZEDSUBJECT_FIELD_NUMBER = 2; private com.passkit.grpc.Localization.LocalizedString localizedSubject_; /** *
     * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedSubject = 2; * @return Whether the localizedSubject field is set. */ @java.lang.Override public boolean hasLocalizedSubject() { return localizedSubject_ != null; } /** *
     * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedSubject = 2; * @return The localizedSubject. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedSubject() { return localizedSubject_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSubject_; } /** *
     * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedSubject = 2; */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSubjectOrBuilder() { return getLocalizedSubject(); } public static final int BODYTEXTCONTENT_FIELD_NUMBER = 3; private volatile java.lang.Object bodyTextContent_; /** *
     * Text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string bodyTextContent = 3; * @return The bodyTextContent. */ @java.lang.Override public java.lang.String getBodyTextContent() { java.lang.Object ref = bodyTextContent_; 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(); bodyTextContent_ = s; return s; } } /** *
     * Text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string bodyTextContent = 3; * @return The bytes for bodyTextContent. */ @java.lang.Override public com.google.protobuf.ByteString getBodyTextContentBytes() { java.lang.Object ref = bodyTextContent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bodyTextContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALIZEDBODYTEXTCONTENT_FIELD_NUMBER = 4; private com.passkit.grpc.Localization.LocalizedString localizedBodyTextContent_; /** *
     * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyTextContent = 4; * @return Whether the localizedBodyTextContent field is set. */ @java.lang.Override public boolean hasLocalizedBodyTextContent() { return localizedBodyTextContent_ != null; } /** *
     * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyTextContent = 4; * @return The localizedBodyTextContent. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedBodyTextContent() { return localizedBodyTextContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedBodyTextContent_; } /** *
     * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyTextContent = 4; */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedBodyTextContentOrBuilder() { return getLocalizedBodyTextContent(); } public static final int BODYHTMLCONTENT_FIELD_NUMBER = 5; private volatile java.lang.Object bodyHtmlContent_; /** *
     * Content for HTML email rendered above the pass install button. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string bodyHtmlContent = 5; * @return The bodyHtmlContent. */ @java.lang.Override public java.lang.String getBodyHtmlContent() { java.lang.Object ref = bodyHtmlContent_; 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(); bodyHtmlContent_ = s; return s; } } /** *
     * Content for HTML email rendered above the pass install button. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string bodyHtmlContent = 5; * @return The bytes for bodyHtmlContent. */ @java.lang.Override public com.google.protobuf.ByteString getBodyHtmlContentBytes() { java.lang.Object ref = bodyHtmlContent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bodyHtmlContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALIZEDBODYHTMLCONTENT_FIELD_NUMBER = 6; private com.passkit.grpc.Localization.LocalizedString localizedBodyHtmlContent_; /** *
     * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; * @return Whether the localizedBodyHtmlContent field is set. */ @java.lang.Override public boolean hasLocalizedBodyHtmlContent() { return localizedBodyHtmlContent_ != null; } /** *
     * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; * @return The localizedBodyHtmlContent. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedBodyHtmlContent() { return localizedBodyHtmlContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedBodyHtmlContent_; } /** *
     * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedBodyHtmlContentOrBuilder() { return getLocalizedBodyHtmlContent(); } public static final int CONFIGURATION_FIELD_NUMBER = 7; private com.passkit.grpc.Distribution.EmailConfiguration configuration_; /** *
     * 7 is reserved for custom email SMTP configuration
     * 
* * .io.EmailConfiguration configuration = 7; * @return Whether the configuration field is set. */ @java.lang.Override public boolean hasConfiguration() { return configuration_ != null; } /** *
     * 7 is reserved for custom email SMTP configuration
     * 
* * .io.EmailConfiguration configuration = 7; * @return The configuration. */ @java.lang.Override public com.passkit.grpc.Distribution.EmailConfiguration getConfiguration() { return configuration_ == null ? com.passkit.grpc.Distribution.EmailConfiguration.getDefaultInstance() : configuration_; } /** *
     * 7 is reserved for custom email SMTP configuration
     * 
* * .io.EmailConfiguration configuration = 7; */ @java.lang.Override public com.passkit.grpc.Distribution.EmailConfigurationOrBuilder getConfigurationOrBuilder() { return getConfiguration(); } public static final int BUTTONTEXT_FIELD_NUMBER = 8; private volatile java.lang.Object buttonText_; /** *
     * Text of the pass install button.
     * 
* * string buttonText = 8; * @return The buttonText. */ @java.lang.Override public java.lang.String getButtonText() { java.lang.Object ref = buttonText_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buttonText_ = s; return s; } } /** *
     * Text of the pass install button.
     * 
* * string buttonText = 8; * @return The bytes for buttonText. */ @java.lang.Override public com.google.protobuf.ByteString getButtonTextBytes() { java.lang.Object ref = buttonText_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buttonText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUTTONTEXTCOLOR_FIELD_NUMBER = 9; private volatile java.lang.Object buttonTextColor_; /** *
     * Text color of the pass install button.
     * 
* * string buttonTextColor = 9; * @return The buttonTextColor. */ @java.lang.Override public java.lang.String getButtonTextColor() { java.lang.Object ref = buttonTextColor_; 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(); buttonTextColor_ = s; return s; } } /** *
     * Text color of the pass install button.
     * 
* * string buttonTextColor = 9; * @return The bytes for buttonTextColor. */ @java.lang.Override public com.google.protobuf.ByteString getButtonTextColorBytes() { java.lang.Object ref = buttonTextColor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buttonTextColor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUTTONBACKGROUNDCOLOR_FIELD_NUMBER = 10; private volatile java.lang.Object buttonBackgroundColor_; /** *
     * Color of the pass install button.
     * 
* * string buttonBackgroundColor = 10; * @return The buttonBackgroundColor. */ @java.lang.Override public java.lang.String getButtonBackgroundColor() { java.lang.Object ref = buttonBackgroundColor_; 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(); buttonBackgroundColor_ = s; return s; } } /** *
     * Color of the pass install button.
     * 
* * string buttonBackgroundColor = 10; * @return The bytes for buttonBackgroundColor. */ @java.lang.Override public com.google.protobuf.ByteString getButtonBackgroundColorBytes() { java.lang.Object ref = buttonBackgroundColor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buttonBackgroundColor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUTTONBORDERRADIUS_FIELD_NUMBER = 11; private volatile java.lang.Object buttonBorderRadius_; /** *
     * Radius of the pass install button. The unit can be px or %. Default is px.
     * 
* * string buttonBorderRadius = 11; * @return The buttonBorderRadius. */ @java.lang.Override public java.lang.String getButtonBorderRadius() { java.lang.Object ref = buttonBorderRadius_; 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(); buttonBorderRadius_ = s; return s; } } /** *
     * Radius of the pass install button. The unit can be px or %. Default is px.
     * 
* * string buttonBorderRadius = 11; * @return The bytes for buttonBorderRadius. */ @java.lang.Override public com.google.protobuf.ByteString getButtonBorderRadiusBytes() { java.lang.Object ref = buttonBorderRadius_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buttonBorderRadius_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOOTERTEXTCONTENT_FIELD_NUMBER = 12; private volatile java.lang.Object footerTextContent_; /** *
     * Footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
     * 
* * string footerTextContent = 12; * @return The footerTextContent. */ @java.lang.Override public java.lang.String getFooterTextContent() { java.lang.Object ref = footerTextContent_; 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(); footerTextContent_ = s; return s; } } /** *
     * Footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
     * 
* * string footerTextContent = 12; * @return The bytes for footerTextContent. */ @java.lang.Override public com.google.protobuf.ByteString getFooterTextContentBytes() { java.lang.Object ref = footerTextContent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); footerTextContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALIZEDFOOTERTEXTCONTENT_FIELD_NUMBER = 13; private com.passkit.grpc.Localization.LocalizedString localizedFooterTextContent_; /** *
     * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
     * 
* * .io.LocalizedString localizedFooterTextContent = 13; * @return Whether the localizedFooterTextContent field is set. */ @java.lang.Override public boolean hasLocalizedFooterTextContent() { return localizedFooterTextContent_ != null; } /** *
     * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
     * 
* * .io.LocalizedString localizedFooterTextContent = 13; * @return The localizedFooterTextContent. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedFooterTextContent() { return localizedFooterTextContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterTextContent_; } /** *
     * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
     * 
* * .io.LocalizedString localizedFooterTextContent = 13; */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterTextContentOrBuilder() { return getLocalizedFooterTextContent(); } public static final int FOOTERHTMLCONTENT_FIELD_NUMBER = 14; private volatile java.lang.Object footerHtmlContent_; /** *
     * Footer HTML content rendered below the pass install button.
     * 
* * string footerHtmlContent = 14; * @return The footerHtmlContent. */ @java.lang.Override public java.lang.String getFooterHtmlContent() { java.lang.Object ref = footerHtmlContent_; 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(); footerHtmlContent_ = s; return s; } } /** *
     * Footer HTML content rendered below the pass install button.
     * 
* * string footerHtmlContent = 14; * @return The bytes for footerHtmlContent. */ @java.lang.Override public com.google.protobuf.ByteString getFooterHtmlContentBytes() { java.lang.Object ref = footerHtmlContent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); footerHtmlContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALIZEDFOOTERHTMLCONTENT_FIELD_NUMBER = 15; private com.passkit.grpc.Localization.LocalizedString localizedFooterHtmlContent_; /** *
     * Localized content for HTML footer content which is rendered below the pass install button.
     * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; * @return Whether the localizedFooterHtmlContent field is set. */ @java.lang.Override public boolean hasLocalizedFooterHtmlContent() { return localizedFooterHtmlContent_ != null; } /** *
     * Localized content for HTML footer content which is rendered below the pass install button.
     * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; * @return The localizedFooterHtmlContent. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedFooterHtmlContent() { return localizedFooterHtmlContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterHtmlContent_; } /** *
     * Localized content for HTML footer content which is rendered below the pass install button.
     * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterHtmlContentOrBuilder() { return getLocalizedFooterHtmlContent(); } public static final int MESSAGEBACKGROUNDCOLOR_FIELD_NUMBER = 16; private volatile java.lang.Object messageBackgroundColor_; /** *
     * Background color for the message content section.
     * 
* * string messageBackgroundColor = 16; * @return The messageBackgroundColor. */ @java.lang.Override public java.lang.String getMessageBackgroundColor() { java.lang.Object ref = messageBackgroundColor_; 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(); messageBackgroundColor_ = s; return s; } } /** *
     * Background color for the message content section.
     * 
* * string messageBackgroundColor = 16; * @return The bytes for messageBackgroundColor. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBackgroundColorBytes() { java.lang.Object ref = messageBackgroundColor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageBackgroundColor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGEBACKGROUNDCOLOR_FIELD_NUMBER = 17; private volatile java.lang.Object pageBackgroundColor_; /** *
     * Background color for the margin space surrounding the message content. This setting is relevant for PC viewers.
     * 
* * string pageBackgroundColor = 17; * @return The pageBackgroundColor. */ @java.lang.Override public java.lang.String getPageBackgroundColor() { java.lang.Object ref = pageBackgroundColor_; 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(); pageBackgroundColor_ = s; return s; } } /** *
     * Background color for the margin space surrounding the message content. This setting is relevant for PC viewers.
     * 
* * string pageBackgroundColor = 17; * @return The bytes for pageBackgroundColor. */ @java.lang.Override public com.google.protobuf.ByteString getPageBackgroundColorBytes() { java.lang.Object ref = pageBackgroundColor_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageBackgroundColor_ = 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 (!getSubjectBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subject_); } if (localizedSubject_ != null) { output.writeMessage(2, getLocalizedSubject()); } if (!getBodyTextContentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bodyTextContent_); } if (localizedBodyTextContent_ != null) { output.writeMessage(4, getLocalizedBodyTextContent()); } if (!getBodyHtmlContentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bodyHtmlContent_); } if (localizedBodyHtmlContent_ != null) { output.writeMessage(6, getLocalizedBodyHtmlContent()); } if (configuration_ != null) { output.writeMessage(7, getConfiguration()); } if (!getButtonTextBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, buttonText_); } if (!getButtonTextColorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, buttonTextColor_); } if (!getButtonBackgroundColorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, buttonBackgroundColor_); } if (!getButtonBorderRadiusBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, buttonBorderRadius_); } if (!getFooterTextContentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, footerTextContent_); } if (localizedFooterTextContent_ != null) { output.writeMessage(13, getLocalizedFooterTextContent()); } if (!getFooterHtmlContentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, footerHtmlContent_); } if (localizedFooterHtmlContent_ != null) { output.writeMessage(15, getLocalizedFooterHtmlContent()); } if (!getMessageBackgroundColorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, messageBackgroundColor_); } if (!getPageBackgroundColorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, pageBackgroundColor_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSubjectBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subject_); } if (localizedSubject_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLocalizedSubject()); } if (!getBodyTextContentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bodyTextContent_); } if (localizedBodyTextContent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLocalizedBodyTextContent()); } if (!getBodyHtmlContentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bodyHtmlContent_); } if (localizedBodyHtmlContent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLocalizedBodyHtmlContent()); } if (configuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getConfiguration()); } if (!getButtonTextBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, buttonText_); } if (!getButtonTextColorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, buttonTextColor_); } if (!getButtonBackgroundColorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, buttonBackgroundColor_); } if (!getButtonBorderRadiusBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, buttonBorderRadius_); } if (!getFooterTextContentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, footerTextContent_); } if (localizedFooterTextContent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getLocalizedFooterTextContent()); } if (!getFooterHtmlContentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, footerHtmlContent_); } if (localizedFooterHtmlContent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getLocalizedFooterHtmlContent()); } if (!getMessageBackgroundColorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, messageBackgroundColor_); } if (!getPageBackgroundColorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, pageBackgroundColor_); } 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.Distribution.EmailTemplate)) { return super.equals(obj); } com.passkit.grpc.Distribution.EmailTemplate other = (com.passkit.grpc.Distribution.EmailTemplate) obj; if (!getSubject() .equals(other.getSubject())) return false; if (hasLocalizedSubject() != other.hasLocalizedSubject()) return false; if (hasLocalizedSubject()) { if (!getLocalizedSubject() .equals(other.getLocalizedSubject())) return false; } if (!getBodyTextContent() .equals(other.getBodyTextContent())) return false; if (hasLocalizedBodyTextContent() != other.hasLocalizedBodyTextContent()) return false; if (hasLocalizedBodyTextContent()) { if (!getLocalizedBodyTextContent() .equals(other.getLocalizedBodyTextContent())) return false; } if (!getBodyHtmlContent() .equals(other.getBodyHtmlContent())) return false; if (hasLocalizedBodyHtmlContent() != other.hasLocalizedBodyHtmlContent()) return false; if (hasLocalizedBodyHtmlContent()) { if (!getLocalizedBodyHtmlContent() .equals(other.getLocalizedBodyHtmlContent())) return false; } if (hasConfiguration() != other.hasConfiguration()) return false; if (hasConfiguration()) { if (!getConfiguration() .equals(other.getConfiguration())) return false; } if (!getButtonText() .equals(other.getButtonText())) return false; if (!getButtonTextColor() .equals(other.getButtonTextColor())) return false; if (!getButtonBackgroundColor() .equals(other.getButtonBackgroundColor())) return false; if (!getButtonBorderRadius() .equals(other.getButtonBorderRadius())) return false; if (!getFooterTextContent() .equals(other.getFooterTextContent())) return false; if (hasLocalizedFooterTextContent() != other.hasLocalizedFooterTextContent()) return false; if (hasLocalizedFooterTextContent()) { if (!getLocalizedFooterTextContent() .equals(other.getLocalizedFooterTextContent())) return false; } if (!getFooterHtmlContent() .equals(other.getFooterHtmlContent())) return false; if (hasLocalizedFooterHtmlContent() != other.hasLocalizedFooterHtmlContent()) return false; if (hasLocalizedFooterHtmlContent()) { if (!getLocalizedFooterHtmlContent() .equals(other.getLocalizedFooterHtmlContent())) return false; } if (!getMessageBackgroundColor() .equals(other.getMessageBackgroundColor())) return false; if (!getPageBackgroundColor() .equals(other.getPageBackgroundColor())) 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) + SUBJECT_FIELD_NUMBER; hash = (53 * hash) + getSubject().hashCode(); if (hasLocalizedSubject()) { hash = (37 * hash) + LOCALIZEDSUBJECT_FIELD_NUMBER; hash = (53 * hash) + getLocalizedSubject().hashCode(); } hash = (37 * hash) + BODYTEXTCONTENT_FIELD_NUMBER; hash = (53 * hash) + getBodyTextContent().hashCode(); if (hasLocalizedBodyTextContent()) { hash = (37 * hash) + LOCALIZEDBODYTEXTCONTENT_FIELD_NUMBER; hash = (53 * hash) + getLocalizedBodyTextContent().hashCode(); } hash = (37 * hash) + BODYHTMLCONTENT_FIELD_NUMBER; hash = (53 * hash) + getBodyHtmlContent().hashCode(); if (hasLocalizedBodyHtmlContent()) { hash = (37 * hash) + LOCALIZEDBODYHTMLCONTENT_FIELD_NUMBER; hash = (53 * hash) + getLocalizedBodyHtmlContent().hashCode(); } if (hasConfiguration()) { hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; hash = (53 * hash) + getConfiguration().hashCode(); } hash = (37 * hash) + BUTTONTEXT_FIELD_NUMBER; hash = (53 * hash) + getButtonText().hashCode(); hash = (37 * hash) + BUTTONTEXTCOLOR_FIELD_NUMBER; hash = (53 * hash) + getButtonTextColor().hashCode(); hash = (37 * hash) + BUTTONBACKGROUNDCOLOR_FIELD_NUMBER; hash = (53 * hash) + getButtonBackgroundColor().hashCode(); hash = (37 * hash) + BUTTONBORDERRADIUS_FIELD_NUMBER; hash = (53 * hash) + getButtonBorderRadius().hashCode(); hash = (37 * hash) + FOOTERTEXTCONTENT_FIELD_NUMBER; hash = (53 * hash) + getFooterTextContent().hashCode(); if (hasLocalizedFooterTextContent()) { hash = (37 * hash) + LOCALIZEDFOOTERTEXTCONTENT_FIELD_NUMBER; hash = (53 * hash) + getLocalizedFooterTextContent().hashCode(); } hash = (37 * hash) + FOOTERHTMLCONTENT_FIELD_NUMBER; hash = (53 * hash) + getFooterHtmlContent().hashCode(); if (hasLocalizedFooterHtmlContent()) { hash = (37 * hash) + LOCALIZEDFOOTERHTMLCONTENT_FIELD_NUMBER; hash = (53 * hash) + getLocalizedFooterHtmlContent().hashCode(); } hash = (37 * hash) + MESSAGEBACKGROUNDCOLOR_FIELD_NUMBER; hash = (53 * hash) + getMessageBackgroundColor().hashCode(); hash = (37 * hash) + PAGEBACKGROUNDCOLOR_FIELD_NUMBER; hash = (53 * hash) + getPageBackgroundColor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Distribution.EmailTemplate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.EmailTemplate 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.Distribution.EmailTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.EmailTemplate 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.Distribution.EmailTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.EmailTemplate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Distribution.EmailTemplate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.EmailTemplate 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.Distribution.EmailTemplate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.EmailTemplate 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.Distribution.EmailTemplate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.EmailTemplate 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.Distribution.EmailTemplate 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; } /** *
     * EmailTemplate contains details for sending an email to a customer.
     * Uses the default PassKit email provider and sending credentials
     * 
* * Protobuf type {@code io.EmailTemplate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.EmailTemplate) com.passkit.grpc.Distribution.EmailTemplateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Distribution.internal_static_io_EmailTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_EmailTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.EmailTemplate.class, com.passkit.grpc.Distribution.EmailTemplate.Builder.class); } // Construct using com.passkit.grpc.Distribution.EmailTemplate.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(); subject_ = ""; if (localizedSubjectBuilder_ == null) { localizedSubject_ = null; } else { localizedSubject_ = null; localizedSubjectBuilder_ = null; } bodyTextContent_ = ""; if (localizedBodyTextContentBuilder_ == null) { localizedBodyTextContent_ = null; } else { localizedBodyTextContent_ = null; localizedBodyTextContentBuilder_ = null; } bodyHtmlContent_ = ""; if (localizedBodyHtmlContentBuilder_ == null) { localizedBodyHtmlContent_ = null; } else { localizedBodyHtmlContent_ = null; localizedBodyHtmlContentBuilder_ = null; } if (configurationBuilder_ == null) { configuration_ = null; } else { configuration_ = null; configurationBuilder_ = null; } buttonText_ = ""; buttonTextColor_ = ""; buttonBackgroundColor_ = ""; buttonBorderRadius_ = ""; footerTextContent_ = ""; if (localizedFooterTextContentBuilder_ == null) { localizedFooterTextContent_ = null; } else { localizedFooterTextContent_ = null; localizedFooterTextContentBuilder_ = null; } footerHtmlContent_ = ""; if (localizedFooterHtmlContentBuilder_ == null) { localizedFooterHtmlContent_ = null; } else { localizedFooterHtmlContent_ = null; localizedFooterHtmlContentBuilder_ = null; } messageBackgroundColor_ = ""; pageBackgroundColor_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Distribution.internal_static_io_EmailTemplate_descriptor; } @java.lang.Override public com.passkit.grpc.Distribution.EmailTemplate getDefaultInstanceForType() { return com.passkit.grpc.Distribution.EmailTemplate.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Distribution.EmailTemplate build() { com.passkit.grpc.Distribution.EmailTemplate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Distribution.EmailTemplate buildPartial() { com.passkit.grpc.Distribution.EmailTemplate result = new com.passkit.grpc.Distribution.EmailTemplate(this); result.subject_ = subject_; if (localizedSubjectBuilder_ == null) { result.localizedSubject_ = localizedSubject_; } else { result.localizedSubject_ = localizedSubjectBuilder_.build(); } result.bodyTextContent_ = bodyTextContent_; if (localizedBodyTextContentBuilder_ == null) { result.localizedBodyTextContent_ = localizedBodyTextContent_; } else { result.localizedBodyTextContent_ = localizedBodyTextContentBuilder_.build(); } result.bodyHtmlContent_ = bodyHtmlContent_; if (localizedBodyHtmlContentBuilder_ == null) { result.localizedBodyHtmlContent_ = localizedBodyHtmlContent_; } else { result.localizedBodyHtmlContent_ = localizedBodyHtmlContentBuilder_.build(); } if (configurationBuilder_ == null) { result.configuration_ = configuration_; } else { result.configuration_ = configurationBuilder_.build(); } result.buttonText_ = buttonText_; result.buttonTextColor_ = buttonTextColor_; result.buttonBackgroundColor_ = buttonBackgroundColor_; result.buttonBorderRadius_ = buttonBorderRadius_; result.footerTextContent_ = footerTextContent_; if (localizedFooterTextContentBuilder_ == null) { result.localizedFooterTextContent_ = localizedFooterTextContent_; } else { result.localizedFooterTextContent_ = localizedFooterTextContentBuilder_.build(); } result.footerHtmlContent_ = footerHtmlContent_; if (localizedFooterHtmlContentBuilder_ == null) { result.localizedFooterHtmlContent_ = localizedFooterHtmlContent_; } else { result.localizedFooterHtmlContent_ = localizedFooterHtmlContentBuilder_.build(); } result.messageBackgroundColor_ = messageBackgroundColor_; result.pageBackgroundColor_ = pageBackgroundColor_; 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.Distribution.EmailTemplate) { return mergeFrom((com.passkit.grpc.Distribution.EmailTemplate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Distribution.EmailTemplate other) { if (other == com.passkit.grpc.Distribution.EmailTemplate.getDefaultInstance()) return this; if (!other.getSubject().isEmpty()) { subject_ = other.subject_; onChanged(); } if (other.hasLocalizedSubject()) { mergeLocalizedSubject(other.getLocalizedSubject()); } if (!other.getBodyTextContent().isEmpty()) { bodyTextContent_ = other.bodyTextContent_; onChanged(); } if (other.hasLocalizedBodyTextContent()) { mergeLocalizedBodyTextContent(other.getLocalizedBodyTextContent()); } if (!other.getBodyHtmlContent().isEmpty()) { bodyHtmlContent_ = other.bodyHtmlContent_; onChanged(); } if (other.hasLocalizedBodyHtmlContent()) { mergeLocalizedBodyHtmlContent(other.getLocalizedBodyHtmlContent()); } if (other.hasConfiguration()) { mergeConfiguration(other.getConfiguration()); } if (!other.getButtonText().isEmpty()) { buttonText_ = other.buttonText_; onChanged(); } if (!other.getButtonTextColor().isEmpty()) { buttonTextColor_ = other.buttonTextColor_; onChanged(); } if (!other.getButtonBackgroundColor().isEmpty()) { buttonBackgroundColor_ = other.buttonBackgroundColor_; onChanged(); } if (!other.getButtonBorderRadius().isEmpty()) { buttonBorderRadius_ = other.buttonBorderRadius_; onChanged(); } if (!other.getFooterTextContent().isEmpty()) { footerTextContent_ = other.footerTextContent_; onChanged(); } if (other.hasLocalizedFooterTextContent()) { mergeLocalizedFooterTextContent(other.getLocalizedFooterTextContent()); } if (!other.getFooterHtmlContent().isEmpty()) { footerHtmlContent_ = other.footerHtmlContent_; onChanged(); } if (other.hasLocalizedFooterHtmlContent()) { mergeLocalizedFooterHtmlContent(other.getLocalizedFooterHtmlContent()); } if (!other.getMessageBackgroundColor().isEmpty()) { messageBackgroundColor_ = other.messageBackgroundColor_; onChanged(); } if (!other.getPageBackgroundColor().isEmpty()) { pageBackgroundColor_ = other.pageBackgroundColor_; 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.Distribution.EmailTemplate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Distribution.EmailTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object subject_ = ""; /** *
       * Subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc..
       * 
* * string subject = 1; * @return The subject. */ public java.lang.String getSubject() { java.lang.Object ref = subject_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc..
       * 
* * string subject = 1; * @return The bytes for subject. */ public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc..
       * 
* * string subject = 1; * @param value The subject to set. * @return This builder for chaining. */ public Builder setSubject( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subject_ = value; onChanged(); return this; } /** *
       * Subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc..
       * 
* * string subject = 1; * @return This builder for chaining. */ public Builder clearSubject() { subject_ = getDefaultInstance().getSubject(); onChanged(); return this; } /** *
       * Subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc..
       * 
* * string subject = 1; * @param value The bytes for subject to set. * @return This builder for chaining. */ public Builder setSubjectBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subject_ = value; onChanged(); return this; } private com.passkit.grpc.Localization.LocalizedString localizedSubject_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedSubjectBuilder_; /** *
       * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedSubject = 2; * @return Whether the localizedSubject field is set. */ public boolean hasLocalizedSubject() { return localizedSubjectBuilder_ != null || localizedSubject_ != null; } /** *
       * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedSubject = 2; * @return The localizedSubject. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedSubject() { if (localizedSubjectBuilder_ == null) { return localizedSubject_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSubject_; } else { return localizedSubjectBuilder_.getMessage(); } } /** *
       * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedSubject = 2; */ public Builder setLocalizedSubject(com.passkit.grpc.Localization.LocalizedString value) { if (localizedSubjectBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedSubject_ = value; onChanged(); } else { localizedSubjectBuilder_.setMessage(value); } return this; } /** *
       * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedSubject = 2; */ public Builder setLocalizedSubject( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedSubjectBuilder_ == null) { localizedSubject_ = builderForValue.build(); onChanged(); } else { localizedSubjectBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedSubject = 2; */ public Builder mergeLocalizedSubject(com.passkit.grpc.Localization.LocalizedString value) { if (localizedSubjectBuilder_ == null) { if (localizedSubject_ != null) { localizedSubject_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedSubject_).mergeFrom(value).buildPartial(); } else { localizedSubject_ = value; } onChanged(); } else { localizedSubjectBuilder_.mergeFrom(value); } return this; } /** *
       * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedSubject = 2; */ public Builder clearLocalizedSubject() { if (localizedSubjectBuilder_ == null) { localizedSubject_ = null; onChanged(); } else { localizedSubject_ = null; localizedSubjectBuilder_ = null; } return this; } /** *
       * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedSubject = 2; */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedSubjectBuilder() { onChanged(); return getLocalizedSubjectFieldBuilder().getBuilder(); } /** *
       * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedSubject = 2; */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedSubjectOrBuilder() { if (localizedSubjectBuilder_ != null) { return localizedSubjectBuilder_.getMessageOrBuilder(); } else { return localizedSubject_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedSubject_; } } /** *
       * Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedSubject = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedSubjectFieldBuilder() { if (localizedSubjectBuilder_ == null) { localizedSubjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedSubject(), getParentForChildren(), isClean()); localizedSubject_ = null; } return localizedSubjectBuilder_; } private java.lang.Object bodyTextContent_ = ""; /** *
       * Text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string bodyTextContent = 3; * @return The bodyTextContent. */ public java.lang.String getBodyTextContent() { java.lang.Object ref = bodyTextContent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bodyTextContent_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string bodyTextContent = 3; * @return The bytes for bodyTextContent. */ public com.google.protobuf.ByteString getBodyTextContentBytes() { java.lang.Object ref = bodyTextContent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bodyTextContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string bodyTextContent = 3; * @param value The bodyTextContent to set. * @return This builder for chaining. */ public Builder setBodyTextContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bodyTextContent_ = value; onChanged(); return this; } /** *
       * Text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string bodyTextContent = 3; * @return This builder for chaining. */ public Builder clearBodyTextContent() { bodyTextContent_ = getDefaultInstance().getBodyTextContent(); onChanged(); return this; } /** *
       * Text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string bodyTextContent = 3; * @param value The bytes for bodyTextContent to set. * @return This builder for chaining. */ public Builder setBodyTextContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bodyTextContent_ = value; onChanged(); return this; } private com.passkit.grpc.Localization.LocalizedString localizedBodyTextContent_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedBodyTextContentBuilder_; /** *
       * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyTextContent = 4; * @return Whether the localizedBodyTextContent field is set. */ public boolean hasLocalizedBodyTextContent() { return localizedBodyTextContentBuilder_ != null || localizedBodyTextContent_ != null; } /** *
       * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyTextContent = 4; * @return The localizedBodyTextContent. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedBodyTextContent() { if (localizedBodyTextContentBuilder_ == null) { return localizedBodyTextContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedBodyTextContent_; } else { return localizedBodyTextContentBuilder_.getMessage(); } } /** *
       * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyTextContent = 4; */ public Builder setLocalizedBodyTextContent(com.passkit.grpc.Localization.LocalizedString value) { if (localizedBodyTextContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedBodyTextContent_ = value; onChanged(); } else { localizedBodyTextContentBuilder_.setMessage(value); } return this; } /** *
       * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyTextContent = 4; */ public Builder setLocalizedBodyTextContent( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedBodyTextContentBuilder_ == null) { localizedBodyTextContent_ = builderForValue.build(); onChanged(); } else { localizedBodyTextContentBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyTextContent = 4; */ public Builder mergeLocalizedBodyTextContent(com.passkit.grpc.Localization.LocalizedString value) { if (localizedBodyTextContentBuilder_ == null) { if (localizedBodyTextContent_ != null) { localizedBodyTextContent_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedBodyTextContent_).mergeFrom(value).buildPartial(); } else { localizedBodyTextContent_ = value; } onChanged(); } else { localizedBodyTextContentBuilder_.mergeFrom(value); } return this; } /** *
       * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyTextContent = 4; */ public Builder clearLocalizedBodyTextContent() { if (localizedBodyTextContentBuilder_ == null) { localizedBodyTextContent_ = null; onChanged(); } else { localizedBodyTextContent_ = null; localizedBodyTextContentBuilder_ = null; } return this; } /** *
       * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyTextContent = 4; */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedBodyTextContentBuilder() { onChanged(); return getLocalizedBodyTextContentFieldBuilder().getBuilder(); } /** *
       * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyTextContent = 4; */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedBodyTextContentOrBuilder() { if (localizedBodyTextContentBuilder_ != null) { return localizedBodyTextContentBuilder_.getMessageOrBuilder(); } else { return localizedBodyTextContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedBodyTextContent_; } } /** *
       * Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyTextContent = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedBodyTextContentFieldBuilder() { if (localizedBodyTextContentBuilder_ == null) { localizedBodyTextContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedBodyTextContent(), getParentForChildren(), isClean()); localizedBodyTextContent_ = null; } return localizedBodyTextContentBuilder_; } private java.lang.Object bodyHtmlContent_ = ""; /** *
       * Content for HTML email rendered above the pass install button. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string bodyHtmlContent = 5; * @return The bodyHtmlContent. */ public java.lang.String getBodyHtmlContent() { java.lang.Object ref = bodyHtmlContent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bodyHtmlContent_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Content for HTML email rendered above the pass install button. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string bodyHtmlContent = 5; * @return The bytes for bodyHtmlContent. */ public com.google.protobuf.ByteString getBodyHtmlContentBytes() { java.lang.Object ref = bodyHtmlContent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bodyHtmlContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Content for HTML email rendered above the pass install button. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string bodyHtmlContent = 5; * @param value The bodyHtmlContent to set. * @return This builder for chaining. */ public Builder setBodyHtmlContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bodyHtmlContent_ = value; onChanged(); return this; } /** *
       * Content for HTML email rendered above the pass install button. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string bodyHtmlContent = 5; * @return This builder for chaining. */ public Builder clearBodyHtmlContent() { bodyHtmlContent_ = getDefaultInstance().getBodyHtmlContent(); onChanged(); return this; } /** *
       * Content for HTML email rendered above the pass install button. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string bodyHtmlContent = 5; * @param value The bytes for bodyHtmlContent to set. * @return This builder for chaining. */ public Builder setBodyHtmlContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bodyHtmlContent_ = value; onChanged(); return this; } private com.passkit.grpc.Localization.LocalizedString localizedBodyHtmlContent_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedBodyHtmlContentBuilder_; /** *
       * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; * @return Whether the localizedBodyHtmlContent field is set. */ public boolean hasLocalizedBodyHtmlContent() { return localizedBodyHtmlContentBuilder_ != null || localizedBodyHtmlContent_ != null; } /** *
       * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; * @return The localizedBodyHtmlContent. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedBodyHtmlContent() { if (localizedBodyHtmlContentBuilder_ == null) { return localizedBodyHtmlContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedBodyHtmlContent_; } else { return localizedBodyHtmlContentBuilder_.getMessage(); } } /** *
       * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; */ public Builder setLocalizedBodyHtmlContent(com.passkit.grpc.Localization.LocalizedString value) { if (localizedBodyHtmlContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedBodyHtmlContent_ = value; onChanged(); } else { localizedBodyHtmlContentBuilder_.setMessage(value); } return this; } /** *
       * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; */ public Builder setLocalizedBodyHtmlContent( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedBodyHtmlContentBuilder_ == null) { localizedBodyHtmlContent_ = builderForValue.build(); onChanged(); } else { localizedBodyHtmlContentBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; */ public Builder mergeLocalizedBodyHtmlContent(com.passkit.grpc.Localization.LocalizedString value) { if (localizedBodyHtmlContentBuilder_ == null) { if (localizedBodyHtmlContent_ != null) { localizedBodyHtmlContent_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedBodyHtmlContent_).mergeFrom(value).buildPartial(); } else { localizedBodyHtmlContent_ = value; } onChanged(); } else { localizedBodyHtmlContentBuilder_.mergeFrom(value); } return this; } /** *
       * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; */ public Builder clearLocalizedBodyHtmlContent() { if (localizedBodyHtmlContentBuilder_ == null) { localizedBodyHtmlContent_ = null; onChanged(); } else { localizedBodyHtmlContent_ = null; localizedBodyHtmlContentBuilder_ = null; } return this; } /** *
       * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedBodyHtmlContentBuilder() { onChanged(); return getLocalizedBodyHtmlContentFieldBuilder().getBuilder(); } /** *
       * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedBodyHtmlContentOrBuilder() { if (localizedBodyHtmlContentBuilder_ != null) { return localizedBodyHtmlContentBuilder_.getMessageOrBuilder(); } else { return localizedBodyHtmlContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedBodyHtmlContent_; } } /** *
       * Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedBodyHtmlContent = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedBodyHtmlContentFieldBuilder() { if (localizedBodyHtmlContentBuilder_ == null) { localizedBodyHtmlContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedBodyHtmlContent(), getParentForChildren(), isClean()); localizedBodyHtmlContent_ = null; } return localizedBodyHtmlContentBuilder_; } private com.passkit.grpc.Distribution.EmailConfiguration configuration_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.EmailConfiguration, com.passkit.grpc.Distribution.EmailConfiguration.Builder, com.passkit.grpc.Distribution.EmailConfigurationOrBuilder> configurationBuilder_; /** *
       * 7 is reserved for custom email SMTP configuration
       * 
* * .io.EmailConfiguration configuration = 7; * @return Whether the configuration field is set. */ public boolean hasConfiguration() { return configurationBuilder_ != null || configuration_ != null; } /** *
       * 7 is reserved for custom email SMTP configuration
       * 
* * .io.EmailConfiguration configuration = 7; * @return The configuration. */ public com.passkit.grpc.Distribution.EmailConfiguration getConfiguration() { if (configurationBuilder_ == null) { return configuration_ == null ? com.passkit.grpc.Distribution.EmailConfiguration.getDefaultInstance() : configuration_; } else { return configurationBuilder_.getMessage(); } } /** *
       * 7 is reserved for custom email SMTP configuration
       * 
* * .io.EmailConfiguration configuration = 7; */ public Builder setConfiguration(com.passkit.grpc.Distribution.EmailConfiguration value) { if (configurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configuration_ = value; onChanged(); } else { configurationBuilder_.setMessage(value); } return this; } /** *
       * 7 is reserved for custom email SMTP configuration
       * 
* * .io.EmailConfiguration configuration = 7; */ public Builder setConfiguration( com.passkit.grpc.Distribution.EmailConfiguration.Builder builderForValue) { if (configurationBuilder_ == null) { configuration_ = builderForValue.build(); onChanged(); } else { configurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 7 is reserved for custom email SMTP configuration
       * 
* * .io.EmailConfiguration configuration = 7; */ public Builder mergeConfiguration(com.passkit.grpc.Distribution.EmailConfiguration value) { if (configurationBuilder_ == null) { if (configuration_ != null) { configuration_ = com.passkit.grpc.Distribution.EmailConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); } else { configuration_ = value; } onChanged(); } else { configurationBuilder_.mergeFrom(value); } return this; } /** *
       * 7 is reserved for custom email SMTP configuration
       * 
* * .io.EmailConfiguration configuration = 7; */ public Builder clearConfiguration() { if (configurationBuilder_ == null) { configuration_ = null; onChanged(); } else { configuration_ = null; configurationBuilder_ = null; } return this; } /** *
       * 7 is reserved for custom email SMTP configuration
       * 
* * .io.EmailConfiguration configuration = 7; */ public com.passkit.grpc.Distribution.EmailConfiguration.Builder getConfigurationBuilder() { onChanged(); return getConfigurationFieldBuilder().getBuilder(); } /** *
       * 7 is reserved for custom email SMTP configuration
       * 
* * .io.EmailConfiguration configuration = 7; */ public com.passkit.grpc.Distribution.EmailConfigurationOrBuilder getConfigurationOrBuilder() { if (configurationBuilder_ != null) { return configurationBuilder_.getMessageOrBuilder(); } else { return configuration_ == null ? com.passkit.grpc.Distribution.EmailConfiguration.getDefaultInstance() : configuration_; } } /** *
       * 7 is reserved for custom email SMTP configuration
       * 
* * .io.EmailConfiguration configuration = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.EmailConfiguration, com.passkit.grpc.Distribution.EmailConfiguration.Builder, com.passkit.grpc.Distribution.EmailConfigurationOrBuilder> getConfigurationFieldBuilder() { if (configurationBuilder_ == null) { configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.EmailConfiguration, com.passkit.grpc.Distribution.EmailConfiguration.Builder, com.passkit.grpc.Distribution.EmailConfigurationOrBuilder>( getConfiguration(), getParentForChildren(), isClean()); configuration_ = null; } return configurationBuilder_; } private java.lang.Object buttonText_ = ""; /** *
       * Text of the pass install button.
       * 
* * string buttonText = 8; * @return The buttonText. */ public java.lang.String getButtonText() { java.lang.Object ref = buttonText_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buttonText_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Text of the pass install button.
       * 
* * string buttonText = 8; * @return The bytes for buttonText. */ public com.google.protobuf.ByteString getButtonTextBytes() { java.lang.Object ref = buttonText_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buttonText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Text of the pass install button.
       * 
* * string buttonText = 8; * @param value The buttonText to set. * @return This builder for chaining. */ public Builder setButtonText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } buttonText_ = value; onChanged(); return this; } /** *
       * Text of the pass install button.
       * 
* * string buttonText = 8; * @return This builder for chaining. */ public Builder clearButtonText() { buttonText_ = getDefaultInstance().getButtonText(); onChanged(); return this; } /** *
       * Text of the pass install button.
       * 
* * string buttonText = 8; * @param value The bytes for buttonText to set. * @return This builder for chaining. */ public Builder setButtonTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); buttonText_ = value; onChanged(); return this; } private java.lang.Object buttonTextColor_ = ""; /** *
       * Text color of the pass install button.
       * 
* * string buttonTextColor = 9; * @return The buttonTextColor. */ public java.lang.String getButtonTextColor() { java.lang.Object ref = buttonTextColor_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buttonTextColor_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Text color of the pass install button.
       * 
* * string buttonTextColor = 9; * @return The bytes for buttonTextColor. */ public com.google.protobuf.ByteString getButtonTextColorBytes() { java.lang.Object ref = buttonTextColor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buttonTextColor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Text color of the pass install button.
       * 
* * string buttonTextColor = 9; * @param value The buttonTextColor to set. * @return This builder for chaining. */ public Builder setButtonTextColor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } buttonTextColor_ = value; onChanged(); return this; } /** *
       * Text color of the pass install button.
       * 
* * string buttonTextColor = 9; * @return This builder for chaining. */ public Builder clearButtonTextColor() { buttonTextColor_ = getDefaultInstance().getButtonTextColor(); onChanged(); return this; } /** *
       * Text color of the pass install button.
       * 
* * string buttonTextColor = 9; * @param value The bytes for buttonTextColor to set. * @return This builder for chaining. */ public Builder setButtonTextColorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); buttonTextColor_ = value; onChanged(); return this; } private java.lang.Object buttonBackgroundColor_ = ""; /** *
       * Color of the pass install button.
       * 
* * string buttonBackgroundColor = 10; * @return The buttonBackgroundColor. */ public java.lang.String getButtonBackgroundColor() { java.lang.Object ref = buttonBackgroundColor_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buttonBackgroundColor_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Color of the pass install button.
       * 
* * string buttonBackgroundColor = 10; * @return The bytes for buttonBackgroundColor. */ public com.google.protobuf.ByteString getButtonBackgroundColorBytes() { java.lang.Object ref = buttonBackgroundColor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buttonBackgroundColor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Color of the pass install button.
       * 
* * string buttonBackgroundColor = 10; * @param value The buttonBackgroundColor to set. * @return This builder for chaining. */ public Builder setButtonBackgroundColor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } buttonBackgroundColor_ = value; onChanged(); return this; } /** *
       * Color of the pass install button.
       * 
* * string buttonBackgroundColor = 10; * @return This builder for chaining. */ public Builder clearButtonBackgroundColor() { buttonBackgroundColor_ = getDefaultInstance().getButtonBackgroundColor(); onChanged(); return this; } /** *
       * Color of the pass install button.
       * 
* * string buttonBackgroundColor = 10; * @param value The bytes for buttonBackgroundColor to set. * @return This builder for chaining. */ public Builder setButtonBackgroundColorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); buttonBackgroundColor_ = value; onChanged(); return this; } private java.lang.Object buttonBorderRadius_ = ""; /** *
       * Radius of the pass install button. The unit can be px or %. Default is px.
       * 
* * string buttonBorderRadius = 11; * @return The buttonBorderRadius. */ public java.lang.String getButtonBorderRadius() { java.lang.Object ref = buttonBorderRadius_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buttonBorderRadius_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Radius of the pass install button. The unit can be px or %. Default is px.
       * 
* * string buttonBorderRadius = 11; * @return The bytes for buttonBorderRadius. */ public com.google.protobuf.ByteString getButtonBorderRadiusBytes() { java.lang.Object ref = buttonBorderRadius_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buttonBorderRadius_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Radius of the pass install button. The unit can be px or %. Default is px.
       * 
* * string buttonBorderRadius = 11; * @param value The buttonBorderRadius to set. * @return This builder for chaining. */ public Builder setButtonBorderRadius( java.lang.String value) { if (value == null) { throw new NullPointerException(); } buttonBorderRadius_ = value; onChanged(); return this; } /** *
       * Radius of the pass install button. The unit can be px or %. Default is px.
       * 
* * string buttonBorderRadius = 11; * @return This builder for chaining. */ public Builder clearButtonBorderRadius() { buttonBorderRadius_ = getDefaultInstance().getButtonBorderRadius(); onChanged(); return this; } /** *
       * Radius of the pass install button. The unit can be px or %. Default is px.
       * 
* * string buttonBorderRadius = 11; * @param value The bytes for buttonBorderRadius to set. * @return This builder for chaining. */ public Builder setButtonBorderRadiusBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); buttonBorderRadius_ = value; onChanged(); return this; } private java.lang.Object footerTextContent_ = ""; /** *
       * Footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * string footerTextContent = 12; * @return The footerTextContent. */ public java.lang.String getFooterTextContent() { java.lang.Object ref = footerTextContent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); footerTextContent_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * string footerTextContent = 12; * @return The bytes for footerTextContent. */ public com.google.protobuf.ByteString getFooterTextContentBytes() { java.lang.Object ref = footerTextContent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); footerTextContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * string footerTextContent = 12; * @param value The footerTextContent to set. * @return This builder for chaining. */ public Builder setFooterTextContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } footerTextContent_ = value; onChanged(); return this; } /** *
       * Footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * string footerTextContent = 12; * @return This builder for chaining. */ public Builder clearFooterTextContent() { footerTextContent_ = getDefaultInstance().getFooterTextContent(); onChanged(); return this; } /** *
       * Footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * string footerTextContent = 12; * @param value The bytes for footerTextContent to set. * @return This builder for chaining. */ public Builder setFooterTextContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); footerTextContent_ = value; onChanged(); return this; } private com.passkit.grpc.Localization.LocalizedString localizedFooterTextContent_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedFooterTextContentBuilder_; /** *
       * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * .io.LocalizedString localizedFooterTextContent = 13; * @return Whether the localizedFooterTextContent field is set. */ public boolean hasLocalizedFooterTextContent() { return localizedFooterTextContentBuilder_ != null || localizedFooterTextContent_ != null; } /** *
       * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * .io.LocalizedString localizedFooterTextContent = 13; * @return The localizedFooterTextContent. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedFooterTextContent() { if (localizedFooterTextContentBuilder_ == null) { return localizedFooterTextContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterTextContent_; } else { return localizedFooterTextContentBuilder_.getMessage(); } } /** *
       * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * .io.LocalizedString localizedFooterTextContent = 13; */ public Builder setLocalizedFooterTextContent(com.passkit.grpc.Localization.LocalizedString value) { if (localizedFooterTextContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedFooterTextContent_ = value; onChanged(); } else { localizedFooterTextContentBuilder_.setMessage(value); } return this; } /** *
       * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * .io.LocalizedString localizedFooterTextContent = 13; */ public Builder setLocalizedFooterTextContent( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedFooterTextContentBuilder_ == null) { localizedFooterTextContent_ = builderForValue.build(); onChanged(); } else { localizedFooterTextContentBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * .io.LocalizedString localizedFooterTextContent = 13; */ public Builder mergeLocalizedFooterTextContent(com.passkit.grpc.Localization.LocalizedString value) { if (localizedFooterTextContentBuilder_ == null) { if (localizedFooterTextContent_ != null) { localizedFooterTextContent_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedFooterTextContent_).mergeFrom(value).buildPartial(); } else { localizedFooterTextContent_ = value; } onChanged(); } else { localizedFooterTextContentBuilder_.mergeFrom(value); } return this; } /** *
       * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * .io.LocalizedString localizedFooterTextContent = 13; */ public Builder clearLocalizedFooterTextContent() { if (localizedFooterTextContentBuilder_ == null) { localizedFooterTextContent_ = null; onChanged(); } else { localizedFooterTextContent_ = null; localizedFooterTextContentBuilder_ = null; } return this; } /** *
       * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * .io.LocalizedString localizedFooterTextContent = 13; */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedFooterTextContentBuilder() { onChanged(); return getLocalizedFooterTextContentFieldBuilder().getBuilder(); } /** *
       * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * .io.LocalizedString localizedFooterTextContent = 13; */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterTextContentOrBuilder() { if (localizedFooterTextContentBuilder_ != null) { return localizedFooterTextContentBuilder_.getMessageOrBuilder(); } else { return localizedFooterTextContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterTextContent_; } } /** *
       * Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
       * 
* * .io.LocalizedString localizedFooterTextContent = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedFooterTextContentFieldBuilder() { if (localizedFooterTextContentBuilder_ == null) { localizedFooterTextContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedFooterTextContent(), getParentForChildren(), isClean()); localizedFooterTextContent_ = null; } return localizedFooterTextContentBuilder_; } private java.lang.Object footerHtmlContent_ = ""; /** *
       * Footer HTML content rendered below the pass install button.
       * 
* * string footerHtmlContent = 14; * @return The footerHtmlContent. */ public java.lang.String getFooterHtmlContent() { java.lang.Object ref = footerHtmlContent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); footerHtmlContent_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Footer HTML content rendered below the pass install button.
       * 
* * string footerHtmlContent = 14; * @return The bytes for footerHtmlContent. */ public com.google.protobuf.ByteString getFooterHtmlContentBytes() { java.lang.Object ref = footerHtmlContent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); footerHtmlContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Footer HTML content rendered below the pass install button.
       * 
* * string footerHtmlContent = 14; * @param value The footerHtmlContent to set. * @return This builder for chaining. */ public Builder setFooterHtmlContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } footerHtmlContent_ = value; onChanged(); return this; } /** *
       * Footer HTML content rendered below the pass install button.
       * 
* * string footerHtmlContent = 14; * @return This builder for chaining. */ public Builder clearFooterHtmlContent() { footerHtmlContent_ = getDefaultInstance().getFooterHtmlContent(); onChanged(); return this; } /** *
       * Footer HTML content rendered below the pass install button.
       * 
* * string footerHtmlContent = 14; * @param value The bytes for footerHtmlContent to set. * @return This builder for chaining. */ public Builder setFooterHtmlContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); footerHtmlContent_ = value; onChanged(); return this; } private com.passkit.grpc.Localization.LocalizedString localizedFooterHtmlContent_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedFooterHtmlContentBuilder_; /** *
       * Localized content for HTML footer content which is rendered below the pass install button.
       * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; * @return Whether the localizedFooterHtmlContent field is set. */ public boolean hasLocalizedFooterHtmlContent() { return localizedFooterHtmlContentBuilder_ != null || localizedFooterHtmlContent_ != null; } /** *
       * Localized content for HTML footer content which is rendered below the pass install button.
       * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; * @return The localizedFooterHtmlContent. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedFooterHtmlContent() { if (localizedFooterHtmlContentBuilder_ == null) { return localizedFooterHtmlContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterHtmlContent_; } else { return localizedFooterHtmlContentBuilder_.getMessage(); } } /** *
       * Localized content for HTML footer content which is rendered below the pass install button.
       * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; */ public Builder setLocalizedFooterHtmlContent(com.passkit.grpc.Localization.LocalizedString value) { if (localizedFooterHtmlContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedFooterHtmlContent_ = value; onChanged(); } else { localizedFooterHtmlContentBuilder_.setMessage(value); } return this; } /** *
       * Localized content for HTML footer content which is rendered below the pass install button.
       * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; */ public Builder setLocalizedFooterHtmlContent( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedFooterHtmlContentBuilder_ == null) { localizedFooterHtmlContent_ = builderForValue.build(); onChanged(); } else { localizedFooterHtmlContentBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Localized content for HTML footer content which is rendered below the pass install button.
       * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; */ public Builder mergeLocalizedFooterHtmlContent(com.passkit.grpc.Localization.LocalizedString value) { if (localizedFooterHtmlContentBuilder_ == null) { if (localizedFooterHtmlContent_ != null) { localizedFooterHtmlContent_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedFooterHtmlContent_).mergeFrom(value).buildPartial(); } else { localizedFooterHtmlContent_ = value; } onChanged(); } else { localizedFooterHtmlContentBuilder_.mergeFrom(value); } return this; } /** *
       * Localized content for HTML footer content which is rendered below the pass install button.
       * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; */ public Builder clearLocalizedFooterHtmlContent() { if (localizedFooterHtmlContentBuilder_ == null) { localizedFooterHtmlContent_ = null; onChanged(); } else { localizedFooterHtmlContent_ = null; localizedFooterHtmlContentBuilder_ = null; } return this; } /** *
       * Localized content for HTML footer content which is rendered below the pass install button.
       * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedFooterHtmlContentBuilder() { onChanged(); return getLocalizedFooterHtmlContentFieldBuilder().getBuilder(); } /** *
       * Localized content for HTML footer content which is rendered below the pass install button.
       * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedFooterHtmlContentOrBuilder() { if (localizedFooterHtmlContentBuilder_ != null) { return localizedFooterHtmlContentBuilder_.getMessageOrBuilder(); } else { return localizedFooterHtmlContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedFooterHtmlContent_; } } /** *
       * Localized content for HTML footer content which is rendered below the pass install button.
       * 
* * .io.LocalizedString localizedFooterHtmlContent = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedFooterHtmlContentFieldBuilder() { if (localizedFooterHtmlContentBuilder_ == null) { localizedFooterHtmlContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedFooterHtmlContent(), getParentForChildren(), isClean()); localizedFooterHtmlContent_ = null; } return localizedFooterHtmlContentBuilder_; } private java.lang.Object messageBackgroundColor_ = ""; /** *
       * Background color for the message content section.
       * 
* * string messageBackgroundColor = 16; * @return The messageBackgroundColor. */ public java.lang.String getMessageBackgroundColor() { java.lang.Object ref = messageBackgroundColor_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageBackgroundColor_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Background color for the message content section.
       * 
* * string messageBackgroundColor = 16; * @return The bytes for messageBackgroundColor. */ public com.google.protobuf.ByteString getMessageBackgroundColorBytes() { java.lang.Object ref = messageBackgroundColor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageBackgroundColor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Background color for the message content section.
       * 
* * string messageBackgroundColor = 16; * @param value The messageBackgroundColor to set. * @return This builder for chaining. */ public Builder setMessageBackgroundColor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } messageBackgroundColor_ = value; onChanged(); return this; } /** *
       * Background color for the message content section.
       * 
* * string messageBackgroundColor = 16; * @return This builder for chaining. */ public Builder clearMessageBackgroundColor() { messageBackgroundColor_ = getDefaultInstance().getMessageBackgroundColor(); onChanged(); return this; } /** *
       * Background color for the message content section.
       * 
* * string messageBackgroundColor = 16; * @param value The bytes for messageBackgroundColor to set. * @return This builder for chaining. */ public Builder setMessageBackgroundColorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); messageBackgroundColor_ = value; onChanged(); return this; } private java.lang.Object pageBackgroundColor_ = ""; /** *
       * Background color for the margin space surrounding the message content. This setting is relevant for PC viewers.
       * 
* * string pageBackgroundColor = 17; * @return The pageBackgroundColor. */ public java.lang.String getPageBackgroundColor() { java.lang.Object ref = pageBackgroundColor_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageBackgroundColor_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Background color for the margin space surrounding the message content. This setting is relevant for PC viewers.
       * 
* * string pageBackgroundColor = 17; * @return The bytes for pageBackgroundColor. */ public com.google.protobuf.ByteString getPageBackgroundColorBytes() { java.lang.Object ref = pageBackgroundColor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageBackgroundColor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Background color for the margin space surrounding the message content. This setting is relevant for PC viewers.
       * 
* * string pageBackgroundColor = 17; * @param value The pageBackgroundColor to set. * @return This builder for chaining. */ public Builder setPageBackgroundColor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageBackgroundColor_ = value; onChanged(); return this; } /** *
       * Background color for the margin space surrounding the message content. This setting is relevant for PC viewers.
       * 
* * string pageBackgroundColor = 17; * @return This builder for chaining. */ public Builder clearPageBackgroundColor() { pageBackgroundColor_ = getDefaultInstance().getPageBackgroundColor(); onChanged(); return this; } /** *
       * Background color for the margin space surrounding the message content. This setting is relevant for PC viewers.
       * 
* * string pageBackgroundColor = 17; * @param value The bytes for pageBackgroundColor to set. * @return This builder for chaining. */ public Builder setPageBackgroundColorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageBackgroundColor_ = 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.EmailTemplate) } // @@protoc_insertion_point(class_scope:io.EmailTemplate) private static final com.passkit.grpc.Distribution.EmailTemplate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Distribution.EmailTemplate(); } public static com.passkit.grpc.Distribution.EmailTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EmailTemplate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EmailTemplate(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.Distribution.EmailTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmailConfigurationOrBuilder extends // @@protoc_insertion_point(interface_extends:io.EmailConfiguration) com.google.protobuf.MessageOrBuilder { /** *
     * Sender's email address.
     * 
* * string emailFrom = 1; * @return The emailFrom. */ java.lang.String getEmailFrom(); /** *
     * Sender's email address.
     * 
* * string emailFrom = 1; * @return The bytes for emailFrom. */ com.google.protobuf.ByteString getEmailFromBytes(); /** *
     * Sender's company / organization name.
     * 
* * string emailFromName = 2; * @return The emailFromName. */ java.lang.String getEmailFromName(); /** *
     * Sender's company / organization name.
     * 
* * string emailFromName = 2; * @return The bytes for emailFromName. */ com.google.protobuf.ByteString getEmailFromNameBytes(); /** *
     * Indicates that PassKit is authorized to send from the emailFrom address (either via AWS or Google Cloud)
     * 
* * bool EmailFromVerifiedForSending = 3; * @return The emailFromVerifiedForSending. */ boolean getEmailFromVerifiedForSending(); } /** * Protobuf type {@code io.EmailConfiguration} */ public static final class EmailConfiguration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.EmailConfiguration) EmailConfigurationOrBuilder { private static final long serialVersionUID = 0L; // Use EmailConfiguration.newBuilder() to construct. private EmailConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EmailConfiguration() { emailFrom_ = ""; emailFromName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EmailConfiguration(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EmailConfiguration( 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(); emailFrom_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); emailFromName_ = s; break; } case 24: { emailFromVerifiedForSending_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Distribution.internal_static_io_EmailConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_EmailConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.EmailConfiguration.class, com.passkit.grpc.Distribution.EmailConfiguration.Builder.class); } public static final int EMAILFROM_FIELD_NUMBER = 1; private volatile java.lang.Object emailFrom_; /** *
     * Sender's email address.
     * 
* * string emailFrom = 1; * @return The emailFrom. */ @java.lang.Override public java.lang.String getEmailFrom() { java.lang.Object ref = emailFrom_; 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(); emailFrom_ = s; return s; } } /** *
     * Sender's email address.
     * 
* * string emailFrom = 1; * @return The bytes for emailFrom. */ @java.lang.Override public com.google.protobuf.ByteString getEmailFromBytes() { java.lang.Object ref = emailFrom_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); emailFrom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EMAILFROMNAME_FIELD_NUMBER = 2; private volatile java.lang.Object emailFromName_; /** *
     * Sender's company / organization name.
     * 
* * string emailFromName = 2; * @return The emailFromName. */ @java.lang.Override public java.lang.String getEmailFromName() { java.lang.Object ref = emailFromName_; 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(); emailFromName_ = s; return s; } } /** *
     * Sender's company / organization name.
     * 
* * string emailFromName = 2; * @return The bytes for emailFromName. */ @java.lang.Override public com.google.protobuf.ByteString getEmailFromNameBytes() { java.lang.Object ref = emailFromName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); emailFromName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EMAILFROMVERIFIEDFORSENDING_FIELD_NUMBER = 3; private boolean emailFromVerifiedForSending_; /** *
     * Indicates that PassKit is authorized to send from the emailFrom address (either via AWS or Google Cloud)
     * 
* * bool EmailFromVerifiedForSending = 3; * @return The emailFromVerifiedForSending. */ @java.lang.Override public boolean getEmailFromVerifiedForSending() { return emailFromVerifiedForSending_; } 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 (!getEmailFromBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, emailFrom_); } if (!getEmailFromNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailFromName_); } if (emailFromVerifiedForSending_ != false) { output.writeBool(3, emailFromVerifiedForSending_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getEmailFromBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, emailFrom_); } if (!getEmailFromNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailFromName_); } if (emailFromVerifiedForSending_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, emailFromVerifiedForSending_); } 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.Distribution.EmailConfiguration)) { return super.equals(obj); } com.passkit.grpc.Distribution.EmailConfiguration other = (com.passkit.grpc.Distribution.EmailConfiguration) obj; if (!getEmailFrom() .equals(other.getEmailFrom())) return false; if (!getEmailFromName() .equals(other.getEmailFromName())) return false; if (getEmailFromVerifiedForSending() != other.getEmailFromVerifiedForSending()) 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) + EMAILFROM_FIELD_NUMBER; hash = (53 * hash) + getEmailFrom().hashCode(); hash = (37 * hash) + EMAILFROMNAME_FIELD_NUMBER; hash = (53 * hash) + getEmailFromName().hashCode(); hash = (37 * hash) + EMAILFROMVERIFIEDFORSENDING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEmailFromVerifiedForSending()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Distribution.EmailConfiguration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.EmailConfiguration 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.Distribution.EmailConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.EmailConfiguration 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.Distribution.EmailConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.EmailConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Distribution.EmailConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.EmailConfiguration 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.Distribution.EmailConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.EmailConfiguration 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.Distribution.EmailConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.EmailConfiguration 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.Distribution.EmailConfiguration 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.EmailConfiguration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.EmailConfiguration) com.passkit.grpc.Distribution.EmailConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Distribution.internal_static_io_EmailConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_EmailConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.EmailConfiguration.class, com.passkit.grpc.Distribution.EmailConfiguration.Builder.class); } // Construct using com.passkit.grpc.Distribution.EmailConfiguration.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(); emailFrom_ = ""; emailFromName_ = ""; emailFromVerifiedForSending_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Distribution.internal_static_io_EmailConfiguration_descriptor; } @java.lang.Override public com.passkit.grpc.Distribution.EmailConfiguration getDefaultInstanceForType() { return com.passkit.grpc.Distribution.EmailConfiguration.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Distribution.EmailConfiguration build() { com.passkit.grpc.Distribution.EmailConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Distribution.EmailConfiguration buildPartial() { com.passkit.grpc.Distribution.EmailConfiguration result = new com.passkit.grpc.Distribution.EmailConfiguration(this); result.emailFrom_ = emailFrom_; result.emailFromName_ = emailFromName_; result.emailFromVerifiedForSending_ = emailFromVerifiedForSending_; 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.Distribution.EmailConfiguration) { return mergeFrom((com.passkit.grpc.Distribution.EmailConfiguration)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Distribution.EmailConfiguration other) { if (other == com.passkit.grpc.Distribution.EmailConfiguration.getDefaultInstance()) return this; if (!other.getEmailFrom().isEmpty()) { emailFrom_ = other.emailFrom_; onChanged(); } if (!other.getEmailFromName().isEmpty()) { emailFromName_ = other.emailFromName_; onChanged(); } if (other.getEmailFromVerifiedForSending() != false) { setEmailFromVerifiedForSending(other.getEmailFromVerifiedForSending()); } 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.Distribution.EmailConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Distribution.EmailConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object emailFrom_ = ""; /** *
       * Sender's email address.
       * 
* * string emailFrom = 1; * @return The emailFrom. */ public java.lang.String getEmailFrom() { java.lang.Object ref = emailFrom_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); emailFrom_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sender's email address.
       * 
* * string emailFrom = 1; * @return The bytes for emailFrom. */ public com.google.protobuf.ByteString getEmailFromBytes() { java.lang.Object ref = emailFrom_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); emailFrom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sender's email address.
       * 
* * string emailFrom = 1; * @param value The emailFrom to set. * @return This builder for chaining. */ public Builder setEmailFrom( java.lang.String value) { if (value == null) { throw new NullPointerException(); } emailFrom_ = value; onChanged(); return this; } /** *
       * Sender's email address.
       * 
* * string emailFrom = 1; * @return This builder for chaining. */ public Builder clearEmailFrom() { emailFrom_ = getDefaultInstance().getEmailFrom(); onChanged(); return this; } /** *
       * Sender's email address.
       * 
* * string emailFrom = 1; * @param value The bytes for emailFrom to set. * @return This builder for chaining. */ public Builder setEmailFromBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); emailFrom_ = value; onChanged(); return this; } private java.lang.Object emailFromName_ = ""; /** *
       * Sender's company / organization name.
       * 
* * string emailFromName = 2; * @return The emailFromName. */ public java.lang.String getEmailFromName() { java.lang.Object ref = emailFromName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); emailFromName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sender's company / organization name.
       * 
* * string emailFromName = 2; * @return The bytes for emailFromName. */ public com.google.protobuf.ByteString getEmailFromNameBytes() { java.lang.Object ref = emailFromName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); emailFromName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sender's company / organization name.
       * 
* * string emailFromName = 2; * @param value The emailFromName to set. * @return This builder for chaining. */ public Builder setEmailFromName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } emailFromName_ = value; onChanged(); return this; } /** *
       * Sender's company / organization name.
       * 
* * string emailFromName = 2; * @return This builder for chaining. */ public Builder clearEmailFromName() { emailFromName_ = getDefaultInstance().getEmailFromName(); onChanged(); return this; } /** *
       * Sender's company / organization name.
       * 
* * string emailFromName = 2; * @param value The bytes for emailFromName to set. * @return This builder for chaining. */ public Builder setEmailFromNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); emailFromName_ = value; onChanged(); return this; } private boolean emailFromVerifiedForSending_ ; /** *
       * Indicates that PassKit is authorized to send from the emailFrom address (either via AWS or Google Cloud)
       * 
* * bool EmailFromVerifiedForSending = 3; * @return The emailFromVerifiedForSending. */ @java.lang.Override public boolean getEmailFromVerifiedForSending() { return emailFromVerifiedForSending_; } /** *
       * Indicates that PassKit is authorized to send from the emailFrom address (either via AWS or Google Cloud)
       * 
* * bool EmailFromVerifiedForSending = 3; * @param value The emailFromVerifiedForSending to set. * @return This builder for chaining. */ public Builder setEmailFromVerifiedForSending(boolean value) { emailFromVerifiedForSending_ = value; onChanged(); return this; } /** *
       * Indicates that PassKit is authorized to send from the emailFrom address (either via AWS or Google Cloud)
       * 
* * bool EmailFromVerifiedForSending = 3; * @return This builder for chaining. */ public Builder clearEmailFromVerifiedForSending() { emailFromVerifiedForSending_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:io.EmailConfiguration) } // @@protoc_insertion_point(class_scope:io.EmailConfiguration) private static final com.passkit.grpc.Distribution.EmailConfiguration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Distribution.EmailConfiguration(); } public static com.passkit.grpc.Distribution.EmailConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EmailConfiguration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EmailConfiguration(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.Distribution.EmailConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SmsTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:io.SmsTemplate) com.google.protobuf.MessageOrBuilder { /** *
     * content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string content = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The content. */ java.lang.String getContent(); /** *
     * content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string content = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for content. */ com.google.protobuf.ByteString getContentBytes(); /** *
     * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return Whether the localizedContent field is set. */ boolean hasLocalizedContent(); /** *
     * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The localizedContent. */ com.passkit.grpc.Localization.LocalizedString getLocalizedContent(); /** *
     * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedContentOrBuilder(); } /** *
   * SMS contains details for a sending an sms to customers.
   * Uses the default PassKit SMS provider and sending credentials.
   * 
* * Protobuf type {@code io.SmsTemplate} */ public static final class SmsTemplate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.SmsTemplate) SmsTemplateOrBuilder { private static final long serialVersionUID = 0L; // Use SmsTemplate.newBuilder() to construct. private SmsTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SmsTemplate() { content_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SmsTemplate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SmsTemplate( 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(); content_ = s; break; } case 18: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedContent_ != null) { subBuilder = localizedContent_.toBuilder(); } localizedContent_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedContent_); localizedContent_ = 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.Distribution.internal_static_io_SmsTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_SmsTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.SmsTemplate.class, com.passkit.grpc.Distribution.SmsTemplate.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private volatile java.lang.Object content_; /** *
     * content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string content = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The content. */ @java.lang.Override public java.lang.String getContent() { java.lang.Object ref = content_; 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(); content_ = s; return s; } } /** *
     * content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * string content = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for content. */ @java.lang.Override public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALIZEDCONTENT_FIELD_NUMBER = 2; private com.passkit.grpc.Localization.LocalizedString localizedContent_; /** *
     * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return Whether the localizedContent field is set. */ @java.lang.Override public boolean hasLocalizedContent() { return localizedContent_ != null; } /** *
     * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The localizedContent. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedContent() { return localizedContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedContent_; } /** *
     * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
     * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedContentOrBuilder() { return getLocalizedContent(); } 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 (!getContentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } if (localizedContent_ != null) { output.writeMessage(2, getLocalizedContent()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getContentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } if (localizedContent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLocalizedContent()); } 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.Distribution.SmsTemplate)) { return super.equals(obj); } com.passkit.grpc.Distribution.SmsTemplate other = (com.passkit.grpc.Distribution.SmsTemplate) obj; if (!getContent() .equals(other.getContent())) return false; if (hasLocalizedContent() != other.hasLocalizedContent()) return false; if (hasLocalizedContent()) { if (!getLocalizedContent() .equals(other.getLocalizedContent())) 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) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); if (hasLocalizedContent()) { hash = (37 * hash) + LOCALIZEDCONTENT_FIELD_NUMBER; hash = (53 * hash) + getLocalizedContent().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Distribution.SmsTemplate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.SmsTemplate 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.Distribution.SmsTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.SmsTemplate 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.Distribution.SmsTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.SmsTemplate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Distribution.SmsTemplate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.SmsTemplate 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.Distribution.SmsTemplate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.SmsTemplate 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.Distribution.SmsTemplate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.SmsTemplate 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.Distribution.SmsTemplate 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; } /** *
     * SMS contains details for a sending an sms to customers.
     * Uses the default PassKit SMS provider and sending credentials.
     * 
* * Protobuf type {@code io.SmsTemplate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.SmsTemplate) com.passkit.grpc.Distribution.SmsTemplateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Distribution.internal_static_io_SmsTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_SmsTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.SmsTemplate.class, com.passkit.grpc.Distribution.SmsTemplate.Builder.class); } // Construct using com.passkit.grpc.Distribution.SmsTemplate.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(); content_ = ""; if (localizedContentBuilder_ == null) { localizedContent_ = null; } else { localizedContent_ = null; localizedContentBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Distribution.internal_static_io_SmsTemplate_descriptor; } @java.lang.Override public com.passkit.grpc.Distribution.SmsTemplate getDefaultInstanceForType() { return com.passkit.grpc.Distribution.SmsTemplate.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Distribution.SmsTemplate build() { com.passkit.grpc.Distribution.SmsTemplate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Distribution.SmsTemplate buildPartial() { com.passkit.grpc.Distribution.SmsTemplate result = new com.passkit.grpc.Distribution.SmsTemplate(this); result.content_ = content_; if (localizedContentBuilder_ == null) { result.localizedContent_ = localizedContent_; } else { result.localizedContent_ = localizedContentBuilder_.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.Distribution.SmsTemplate) { return mergeFrom((com.passkit.grpc.Distribution.SmsTemplate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Distribution.SmsTemplate other) { if (other == com.passkit.grpc.Distribution.SmsTemplate.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; onChanged(); } if (other.hasLocalizedContent()) { mergeLocalizedContent(other.getLocalizedContent()); } 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.Distribution.SmsTemplate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Distribution.SmsTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object content_ = ""; /** *
       * content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string content = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string content = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for content. */ public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string content = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The content to set. * @return This builder for chaining. */ public Builder setContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /** *
       * content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string content = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** *
       * content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * string content = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for content to set. * @return This builder for chaining. */ public Builder setContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); content_ = value; onChanged(); return this; } private com.passkit.grpc.Localization.LocalizedString localizedContent_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedContentBuilder_; /** *
       * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return Whether the localizedContent field is set. */ public boolean hasLocalizedContent() { return localizedContentBuilder_ != null || localizedContent_ != null; } /** *
       * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The localizedContent. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedContent() { if (localizedContentBuilder_ == null) { return localizedContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedContent_; } else { return localizedContentBuilder_.getMessage(); } } /** *
       * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder setLocalizedContent(com.passkit.grpc.Localization.LocalizedString value) { if (localizedContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedContent_ = value; onChanged(); } else { localizedContentBuilder_.setMessage(value); } return this; } /** *
       * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder setLocalizedContent( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedContentBuilder_ == null) { localizedContent_ = builderForValue.build(); onChanged(); } else { localizedContentBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder mergeLocalizedContent(com.passkit.grpc.Localization.LocalizedString value) { if (localizedContentBuilder_ == null) { if (localizedContent_ != null) { localizedContent_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedContent_).mergeFrom(value).buildPartial(); } else { localizedContent_ = value; } onChanged(); } else { localizedContentBuilder_.mergeFrom(value); } return this; } /** *
       * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder clearLocalizedContent() { if (localizedContentBuilder_ == null) { localizedContent_ = null; onChanged(); } else { localizedContent_ = null; localizedContentBuilder_ = null; } return this; } /** *
       * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedContentBuilder() { onChanged(); return getLocalizedContentFieldBuilder().getBuilder(); } /** *
       * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedContentOrBuilder() { if (localizedContentBuilder_ != null) { return localizedContentBuilder_.getMessageOrBuilder(); } else { return localizedContent_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedContent_; } } /** *
       * localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
       * 
* * .io.LocalizedString localizedContent = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedContentFieldBuilder() { if (localizedContentBuilder_ == null) { localizedContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedContent(), getParentForChildren(), isClean()); localizedContent_ = null; } return localizedContentBuilder_; } @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.SmsTemplate) } // @@protoc_insertion_point(class_scope:io.SmsTemplate) private static final com.passkit.grpc.Distribution.SmsTemplate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Distribution.SmsTemplate(); } public static com.passkit.grpc.Distribution.SmsTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SmsTemplate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SmsTemplate(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.Distribution.SmsTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataCollectionPageUrlsOrBuilder extends // @@protoc_insertion_point(interface_extends:io.DataCollectionPageUrls) com.google.protobuf.MessageOrBuilder { /** *
     * URL of the data collection page.
     * 
* * string pageUrl = 1; * @return The pageUrl. */ java.lang.String getPageUrl(); /** *
     * URL of the data collection page.
     * 
* * string pageUrl = 1; * @return The bytes for pageUrl. */ com.google.protobuf.ByteString getPageUrlBytes(); /** *
     * QR code image url of the data collection page.
     * 
* * string qrCodeUrl = 2; * @return The qrCodeUrl. */ java.lang.String getQrCodeUrl(); /** *
     * QR code image url of the data collection page.
     * 
* * string qrCodeUrl = 2; * @return The bytes for qrCodeUrl. */ com.google.protobuf.ByteString getQrCodeUrlBytes(); } /** * Protobuf type {@code io.DataCollectionPageUrls} */ public static final class DataCollectionPageUrls extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.DataCollectionPageUrls) DataCollectionPageUrlsOrBuilder { private static final long serialVersionUID = 0L; // Use DataCollectionPageUrls.newBuilder() to construct. private DataCollectionPageUrls(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataCollectionPageUrls() { pageUrl_ = ""; qrCodeUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DataCollectionPageUrls(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DataCollectionPageUrls( 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(); pageUrl_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); qrCodeUrl_ = 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.Distribution.internal_static_io_DataCollectionPageUrls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_DataCollectionPageUrls_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.DataCollectionPageUrls.class, com.passkit.grpc.Distribution.DataCollectionPageUrls.Builder.class); } public static final int PAGEURL_FIELD_NUMBER = 1; private volatile java.lang.Object pageUrl_; /** *
     * URL of the data collection page.
     * 
* * string pageUrl = 1; * @return The pageUrl. */ @java.lang.Override public java.lang.String getPageUrl() { java.lang.Object ref = pageUrl_; 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(); pageUrl_ = s; return s; } } /** *
     * URL of the data collection page.
     * 
* * string pageUrl = 1; * @return The bytes for pageUrl. */ @java.lang.Override public com.google.protobuf.ByteString getPageUrlBytes() { java.lang.Object ref = pageUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QRCODEURL_FIELD_NUMBER = 2; private volatile java.lang.Object qrCodeUrl_; /** *
     * QR code image url of the data collection page.
     * 
* * string qrCodeUrl = 2; * @return The qrCodeUrl. */ @java.lang.Override public java.lang.String getQrCodeUrl() { java.lang.Object ref = qrCodeUrl_; 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(); qrCodeUrl_ = s; return s; } } /** *
     * QR code image url of the data collection page.
     * 
* * string qrCodeUrl = 2; * @return The bytes for qrCodeUrl. */ @java.lang.Override public com.google.protobuf.ByteString getQrCodeUrlBytes() { java.lang.Object ref = qrCodeUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); qrCodeUrl_ = 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 (!getPageUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pageUrl_); } if (!getQrCodeUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, qrCodeUrl_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getPageUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pageUrl_); } if (!getQrCodeUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, qrCodeUrl_); } 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.Distribution.DataCollectionPageUrls)) { return super.equals(obj); } com.passkit.grpc.Distribution.DataCollectionPageUrls other = (com.passkit.grpc.Distribution.DataCollectionPageUrls) obj; if (!getPageUrl() .equals(other.getPageUrl())) return false; if (!getQrCodeUrl() .equals(other.getQrCodeUrl())) 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) + PAGEURL_FIELD_NUMBER; hash = (53 * hash) + getPageUrl().hashCode(); hash = (37 * hash) + QRCODEURL_FIELD_NUMBER; hash = (53 * hash) + getQrCodeUrl().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Distribution.DataCollectionPageUrls parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.DataCollectionPageUrls 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.Distribution.DataCollectionPageUrls parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.DataCollectionPageUrls 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.Distribution.DataCollectionPageUrls parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Distribution.DataCollectionPageUrls parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Distribution.DataCollectionPageUrls parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.DataCollectionPageUrls 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.Distribution.DataCollectionPageUrls parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.DataCollectionPageUrls 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.Distribution.DataCollectionPageUrls parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Distribution.DataCollectionPageUrls 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.Distribution.DataCollectionPageUrls 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.DataCollectionPageUrls} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.DataCollectionPageUrls) com.passkit.grpc.Distribution.DataCollectionPageUrlsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Distribution.internal_static_io_DataCollectionPageUrls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Distribution.internal_static_io_DataCollectionPageUrls_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Distribution.DataCollectionPageUrls.class, com.passkit.grpc.Distribution.DataCollectionPageUrls.Builder.class); } // Construct using com.passkit.grpc.Distribution.DataCollectionPageUrls.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(); pageUrl_ = ""; qrCodeUrl_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Distribution.internal_static_io_DataCollectionPageUrls_descriptor; } @java.lang.Override public com.passkit.grpc.Distribution.DataCollectionPageUrls getDefaultInstanceForType() { return com.passkit.grpc.Distribution.DataCollectionPageUrls.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Distribution.DataCollectionPageUrls build() { com.passkit.grpc.Distribution.DataCollectionPageUrls result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Distribution.DataCollectionPageUrls buildPartial() { com.passkit.grpc.Distribution.DataCollectionPageUrls result = new com.passkit.grpc.Distribution.DataCollectionPageUrls(this); result.pageUrl_ = pageUrl_; result.qrCodeUrl_ = qrCodeUrl_; 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.Distribution.DataCollectionPageUrls) { return mergeFrom((com.passkit.grpc.Distribution.DataCollectionPageUrls)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Distribution.DataCollectionPageUrls other) { if (other == com.passkit.grpc.Distribution.DataCollectionPageUrls.getDefaultInstance()) return this; if (!other.getPageUrl().isEmpty()) { pageUrl_ = other.pageUrl_; onChanged(); } if (!other.getQrCodeUrl().isEmpty()) { qrCodeUrl_ = other.qrCodeUrl_; 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.Distribution.DataCollectionPageUrls parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Distribution.DataCollectionPageUrls) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object pageUrl_ = ""; /** *
       * URL of the data collection page.
       * 
* * string pageUrl = 1; * @return The pageUrl. */ public java.lang.String getPageUrl() { java.lang.Object ref = pageUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * URL of the data collection page.
       * 
* * string pageUrl = 1; * @return The bytes for pageUrl. */ public com.google.protobuf.ByteString getPageUrlBytes() { java.lang.Object ref = pageUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * URL of the data collection page.
       * 
* * string pageUrl = 1; * @param value The pageUrl to set. * @return This builder for chaining. */ public Builder setPageUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageUrl_ = value; onChanged(); return this; } /** *
       * URL of the data collection page.
       * 
* * string pageUrl = 1; * @return This builder for chaining. */ public Builder clearPageUrl() { pageUrl_ = getDefaultInstance().getPageUrl(); onChanged(); return this; } /** *
       * URL of the data collection page.
       * 
* * string pageUrl = 1; * @param value The bytes for pageUrl to set. * @return This builder for chaining. */ public Builder setPageUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageUrl_ = value; onChanged(); return this; } private java.lang.Object qrCodeUrl_ = ""; /** *
       * QR code image url of the data collection page.
       * 
* * string qrCodeUrl = 2; * @return The qrCodeUrl. */ public java.lang.String getQrCodeUrl() { java.lang.Object ref = qrCodeUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); qrCodeUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * QR code image url of the data collection page.
       * 
* * string qrCodeUrl = 2; * @return The bytes for qrCodeUrl. */ public com.google.protobuf.ByteString getQrCodeUrlBytes() { java.lang.Object ref = qrCodeUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); qrCodeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * QR code image url of the data collection page.
       * 
* * string qrCodeUrl = 2; * @param value The qrCodeUrl to set. * @return This builder for chaining. */ public Builder setQrCodeUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } qrCodeUrl_ = value; onChanged(); return this; } /** *
       * QR code image url of the data collection page.
       * 
* * string qrCodeUrl = 2; * @return This builder for chaining. */ public Builder clearQrCodeUrl() { qrCodeUrl_ = getDefaultInstance().getQrCodeUrl(); onChanged(); return this; } /** *
       * QR code image url of the data collection page.
       * 
* * string qrCodeUrl = 2; * @param value The bytes for qrCodeUrl to set. * @return This builder for chaining. */ public Builder setQrCodeUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); qrCodeUrl_ = 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.DataCollectionPageUrls) } // @@protoc_insertion_point(class_scope:io.DataCollectionPageUrls) private static final com.passkit.grpc.Distribution.DataCollectionPageUrls DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Distribution.DataCollectionPageUrls(); } public static com.passkit.grpc.Distribution.DataCollectionPageUrls getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DataCollectionPageUrls parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DataCollectionPageUrls(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.Distribution.DataCollectionPageUrls getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_EmailDistributionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_EmailDistributionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_SmartPassLinkRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_SmartPassLinkRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_SmartPassLinkRequest_FieldsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_SmartPassLinkRequest_FieldsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_DistributionSettings_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_DistributionSettings_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_EmailTemplate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_EmailTemplate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_EmailConfiguration_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_EmailConfiguration_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_SmsTemplate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_SmsTemplate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_DataCollectionPageUrls_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_DataCollectionPageUrls_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\034io/common/distribution.proto\022\002io\032\036io/c" + "ommon/common_objects.proto\032\034io/common/lo" + "calization.proto\032\031io/common/protocols.pr" + "oto\032.protoc-gen-openapiv2/options/annota" + "tions.proto\"d\n\030EmailDistributionRequest\022" + "\n\n\002id\030\001 \001(\t\022\"\n\010protocol\030\002 \001(\0162\020.io.PassP" + "rotocol\022\030\n\020alternativeEmail\030\003 \001(\t\"\244\001\n\024Sm" + "artPassLinkRequest\022\'\n\026projectDistributio" + "nUrl\030\001 \001(\0132\007.io.Url\0224\n\006fields\030\002 \003(\0132$.io" + ".SmartPassLinkRequest.FieldsEntry\032-\n\013Fie" + "ldsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + "\"\233\001\n\024DistributionSettings\0225\n\024distributio" + "nChannels\030\001 \003(\0162\027.io.DistributionChannel" + "\022\'\n\014welcomeEmail\030\002 \001(\0132\021.io.EmailTemplat" + "e\022#\n\nwelcomeSms\030\003 \001(\0132\017.io.SmsTemplate\"\353" + "\004\n\rEmailTemplate\022\017\n\007subject\030\001 \001(\t\022-\n\020loc" + "alizedSubject\030\002 \001(\0132\023.io.LocalizedString" + "\022\027\n\017bodyTextContent\030\003 \001(\t\0225\n\030localizedBo" + "dyTextContent\030\004 \001(\0132\023.io.LocalizedString" + "\022\027\n\017bodyHtmlContent\030\005 \001(\t\0225\n\030localizedBo" + "dyHtmlContent\030\006 \001(\0132\023.io.LocalizedString" + "\022-\n\rconfiguration\030\007 \001(\0132\026.io.EmailConfig" + "uration\022\022\n\nbuttonText\030\010 \001(\t\022\027\n\017buttonTex" + "tColor\030\t \001(\t\022\035\n\025buttonBackgroundColor\030\n " + "\001(\t\022\032\n\022buttonBorderRadius\030\013 \001(\t\022\031\n\021foote" + "rTextContent\030\014 \001(\t\0227\n\032localizedFooterTex" + "tContent\030\r \001(\0132\023.io.LocalizedString\022\031\n\021f" + "ooterHtmlContent\030\016 \001(\t\0227\n\032localizedFoote" + "rHtmlContent\030\017 \001(\0132\023.io.LocalizedString\022" + "\036\n\026messageBackgroundColor\030\020 \001(\t\022\033\n\023pageB" + "ackgroundColor\030\021 \001(\t\"c\n\022EmailConfigurati" + "on\022\021\n\temailFrom\030\001 \001(\t\022\025\n\remailFromName\030\002" + " \001(\t\022#\n\033EmailFromVerifiedForSending\030\003 \001(" + "\010\"a\n\013SmsTemplate\022\026\n\007content\030\001 \001(\tB\005\222A\002xF" + "\0224\n\020localizedContent\030\002 \001(\0132\023.io.Localize" + "dStringB\005\222A\002xFJ\004\010\003\020\004\"<\n\026DataCollectionPa" + "geUrls\022\017\n\007pageUrl\030\001 \001(\t\022\021\n\tqrCodeUrl\030\002 \001" + "(\t*N\n\023DistributionChannel\022\023\n\017NO_DISTRIBU" + "TION\020\000\022\021\n\rCHANNEL_EMAIL\020\001\022\017\n\013CHANNEL_SMS" + "\020\002BG\n\020com.passkit.grpcZ$stash.passkit.co" + "m/io/model/sdk/go/io\252\002\014PassKit.Grpcb\006pro" + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.passkit.grpc.CommonObjects.getDescriptor(), com.passkit.grpc.Localization.getDescriptor(), com.passkit.grpc.Protocols.getDescriptor(), grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(), }); internal_static_io_EmailDistributionRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_io_EmailDistributionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_EmailDistributionRequest_descriptor, new java.lang.String[] { "Id", "Protocol", "AlternativeEmail", }); internal_static_io_SmartPassLinkRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_io_SmartPassLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_SmartPassLinkRequest_descriptor, new java.lang.String[] { "ProjectDistributionUrl", "Fields", }); internal_static_io_SmartPassLinkRequest_FieldsEntry_descriptor = internal_static_io_SmartPassLinkRequest_descriptor.getNestedTypes().get(0); internal_static_io_SmartPassLinkRequest_FieldsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_SmartPassLinkRequest_FieldsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_io_DistributionSettings_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_io_DistributionSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_DistributionSettings_descriptor, new java.lang.String[] { "DistributionChannels", "WelcomeEmail", "WelcomeSms", }); internal_static_io_EmailTemplate_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_io_EmailTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_EmailTemplate_descriptor, new java.lang.String[] { "Subject", "LocalizedSubject", "BodyTextContent", "LocalizedBodyTextContent", "BodyHtmlContent", "LocalizedBodyHtmlContent", "Configuration", "ButtonText", "ButtonTextColor", "ButtonBackgroundColor", "ButtonBorderRadius", "FooterTextContent", "LocalizedFooterTextContent", "FooterHtmlContent", "LocalizedFooterHtmlContent", "MessageBackgroundColor", "PageBackgroundColor", }); internal_static_io_EmailConfiguration_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_io_EmailConfiguration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_EmailConfiguration_descriptor, new java.lang.String[] { "EmailFrom", "EmailFromName", "EmailFromVerifiedForSending", }); internal_static_io_SmsTemplate_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_io_SmsTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_SmsTemplate_descriptor, new java.lang.String[] { "Content", "LocalizedContent", }); internal_static_io_DataCollectionPageUrls_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_io_DataCollectionPageUrls_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_DataCollectionPageUrls_descriptor, new java.lang.String[] { "PageUrl", "QrCodeUrl", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(grpc.gateway.protoc_gen_openapiv2.options.Annotations.openapiv2Field); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.passkit.grpc.CommonObjects.getDescriptor(); com.passkit.grpc.Localization.getDescriptor(); com.passkit.grpc.Protocols.getDescriptor(); grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy