// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: spotify/login5/v3/user_info.proto

package com.spotify.login5v3;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface UserInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:spotify.login5.v3.UserInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string name = 1;</code>
     * @return The name.
     */
    java.lang.String getName();
    /**
     * <code>string name = 1;</code>
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * <code>string email = 2;</code>
     * @return The email.
     */
    java.lang.String getEmail();
    /**
     * <code>string email = 2;</code>
     * @return The bytes for email.
     */
    com.google.protobuf.ByteString
        getEmailBytes();

    /**
     * <code>bool email_verified = 3;</code>
     * @return The emailVerified.
     */
    boolean getEmailVerified();

    /**
     * <code>string birthdate = 4;</code>
     * @return The birthdate.
     */
    java.lang.String getBirthdate();
    /**
     * <code>string birthdate = 4;</code>
     * @return The bytes for birthdate.
     */
    com.google.protobuf.ByteString
        getBirthdateBytes();

    /**
     * <code>.spotify.login5.v3.UserInfo.Gender gender = 5;</code>
     * @return The enum numeric value on the wire for gender.
     */
    int getGenderValue();
    /**
     * <code>.spotify.login5.v3.UserInfo.Gender gender = 5;</code>
     * @return The gender.
     */
    com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender getGender();

    /**
     * <code>string phone_number = 6;</code>
     * @return The phoneNumber.
     */
    java.lang.String getPhoneNumber();
    /**
     * <code>string phone_number = 6;</code>
     * @return The bytes for phoneNumber.
     */
    com.google.protobuf.ByteString
        getPhoneNumberBytes();

    /**
     * <code>bool phone_number_verified = 7;</code>
     * @return The phoneNumberVerified.
     */
    boolean getPhoneNumberVerified();

    /**
     * <code>bool email_already_registered = 8;</code>
     * @return The emailAlreadyRegistered.
     */
    boolean getEmailAlreadyRegistered();
  }
  /**
   * Protobuf type {@code spotify.login5.v3.UserInfo}
   */
  public  static final class UserInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:spotify.login5.v3.UserInfo)
      UserInfoOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use UserInfo.newBuilder() to construct.
    private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private UserInfo() {
      name_ = "";
      email_ = "";
      birthdate_ = "";
      gender_ = 0;
      phoneNumber_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new UserInfo();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private UserInfo(
        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();

              name_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              email_ = s;
              break;
            }
            case 24: {

              emailVerified_ = input.readBool();
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();

              birthdate_ = s;
              break;
            }
            case 40: {
              int rawValue = input.readEnum();

              gender_ = rawValue;
              break;
            }
            case 50: {
              java.lang.String s = input.readStringRequireUtf8();

              phoneNumber_ = s;
              break;
            }
            case 56: {

              phoneNumberVerified_ = input.readBool();
              break;
            }
            case 64: {

              emailAlreadyRegistered_ = 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.spotify.login5v3.UserInfoOuterClass.internal_static_spotify_login5_v3_UserInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.spotify.login5v3.UserInfoOuterClass.internal_static_spotify_login5_v3_UserInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.spotify.login5v3.UserInfoOuterClass.UserInfo.class, com.spotify.login5v3.UserInfoOuterClass.UserInfo.Builder.class);
    }

    /**
     * Protobuf enum {@code spotify.login5.v3.UserInfo.Gender}
     */
    public enum Gender
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>UNKNOWN = 0;</code>
       */
      UNKNOWN(0),
      /**
       * <code>MALE = 1;</code>
       */
      MALE(1),
      /**
       * <code>FEMALE = 2;</code>
       */
      FEMALE(2),
      /**
       * <code>NEUTRAL = 3;</code>
       */
      NEUTRAL(3),
      UNRECOGNIZED(-1),
      ;

      /**
       * <code>UNKNOWN = 0;</code>
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * <code>MALE = 1;</code>
       */
      public static final int MALE_VALUE = 1;
      /**
       * <code>FEMALE = 2;</code>
       */
      public static final int FEMALE_VALUE = 2;
      /**
       * <code>NEUTRAL = 3;</code>
       */
      public static final int NEUTRAL_VALUE = 3;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Gender 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 Gender forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 1: return MALE;
          case 2: return FEMALE;
          case 3: return NEUTRAL;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Gender>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Gender> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Gender>() {
              public Gender findValueByNumber(int number) {
                return Gender.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        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.spotify.login5v3.UserInfoOuterClass.UserInfo.getDescriptor().getEnumTypes().get(0);
      }

      private static final Gender[] VALUES = values();

      public static Gender 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 Gender(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:spotify.login5.v3.UserInfo.Gender)
    }

    public static final int NAME_FIELD_NUMBER = 1;
    private volatile java.lang.Object name_;
    /**
     * <code>string name = 1;</code>
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      }
    }
    /**
     * <code>string name = 1;</code>
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int EMAIL_FIELD_NUMBER = 2;
    private volatile java.lang.Object email_;
    /**
     * <code>string email = 2;</code>
     * @return The email.
     */
    public java.lang.String getEmail() {
      java.lang.Object ref = email_;
      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();
        email_ = s;
        return s;
      }
    }
    /**
     * <code>string email = 2;</code>
     * @return The bytes for email.
     */
    public com.google.protobuf.ByteString
        getEmailBytes() {
      java.lang.Object ref = email_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        email_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int EMAIL_VERIFIED_FIELD_NUMBER = 3;
    private boolean emailVerified_;
    /**
     * <code>bool email_verified = 3;</code>
     * @return The emailVerified.
     */
    public boolean getEmailVerified() {
      return emailVerified_;
    }

    public static final int BIRTHDATE_FIELD_NUMBER = 4;
    private volatile java.lang.Object birthdate_;
    /**
     * <code>string birthdate = 4;</code>
     * @return The birthdate.
     */
    public java.lang.String getBirthdate() {
      java.lang.Object ref = birthdate_;
      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();
        birthdate_ = s;
        return s;
      }
    }
    /**
     * <code>string birthdate = 4;</code>
     * @return The bytes for birthdate.
     */
    public com.google.protobuf.ByteString
        getBirthdateBytes() {
      java.lang.Object ref = birthdate_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        birthdate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int GENDER_FIELD_NUMBER = 5;
    private int gender_;
    /**
     * <code>.spotify.login5.v3.UserInfo.Gender gender = 5;</code>
     * @return The enum numeric value on the wire for gender.
     */
    public int getGenderValue() {
      return gender_;
    }
    /**
     * <code>.spotify.login5.v3.UserInfo.Gender gender = 5;</code>
     * @return The gender.
     */
    public com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender getGender() {
      @SuppressWarnings("deprecation")
      com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender result = com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender.valueOf(gender_);
      return result == null ? com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender.UNRECOGNIZED : result;
    }

    public static final int PHONE_NUMBER_FIELD_NUMBER = 6;
    private volatile java.lang.Object phoneNumber_;
    /**
     * <code>string phone_number = 6;</code>
     * @return The phoneNumber.
     */
    public java.lang.String getPhoneNumber() {
      java.lang.Object ref = phoneNumber_;
      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();
        phoneNumber_ = s;
        return s;
      }
    }
    /**
     * <code>string phone_number = 6;</code>
     * @return The bytes for phoneNumber.
     */
    public com.google.protobuf.ByteString
        getPhoneNumberBytes() {
      java.lang.Object ref = phoneNumber_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        phoneNumber_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PHONE_NUMBER_VERIFIED_FIELD_NUMBER = 7;
    private boolean phoneNumberVerified_;
    /**
     * <code>bool phone_number_verified = 7;</code>
     * @return The phoneNumberVerified.
     */
    public boolean getPhoneNumberVerified() {
      return phoneNumberVerified_;
    }

    public static final int EMAIL_ALREADY_REGISTERED_FIELD_NUMBER = 8;
    private boolean emailAlreadyRegistered_;
    /**
     * <code>bool email_already_registered = 8;</code>
     * @return The emailAlreadyRegistered.
     */
    public boolean getEmailAlreadyRegistered() {
      return emailAlreadyRegistered_;
    }

    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 (!getNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (!getEmailBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_);
      }
      if (emailVerified_ != false) {
        output.writeBool(3, emailVerified_);
      }
      if (!getBirthdateBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, birthdate_);
      }
      if (gender_ != com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender.UNKNOWN.getNumber()) {
        output.writeEnum(5, gender_);
      }
      if (!getPhoneNumberBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, phoneNumber_);
      }
      if (phoneNumberVerified_ != false) {
        output.writeBool(7, phoneNumberVerified_);
      }
      if (emailAlreadyRegistered_ != false) {
        output.writeBool(8, emailAlreadyRegistered_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (!getEmailBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_);
      }
      if (emailVerified_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(3, emailVerified_);
      }
      if (!getBirthdateBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, birthdate_);
      }
      if (gender_ != com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender.UNKNOWN.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(5, gender_);
      }
      if (!getPhoneNumberBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, phoneNumber_);
      }
      if (phoneNumberVerified_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(7, phoneNumberVerified_);
      }
      if (emailAlreadyRegistered_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(8, emailAlreadyRegistered_);
      }
      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.spotify.login5v3.UserInfoOuterClass.UserInfo)) {
        return super.equals(obj);
      }
      com.spotify.login5v3.UserInfoOuterClass.UserInfo other = (com.spotify.login5v3.UserInfoOuterClass.UserInfo) obj;

      if (!getName()
          .equals(other.getName())) return false;
      if (!getEmail()
          .equals(other.getEmail())) return false;
      if (getEmailVerified()
          != other.getEmailVerified()) return false;
      if (!getBirthdate()
          .equals(other.getBirthdate())) return false;
      if (gender_ != other.gender_) return false;
      if (!getPhoneNumber()
          .equals(other.getPhoneNumber())) return false;
      if (getPhoneNumberVerified()
          != other.getPhoneNumberVerified()) return false;
      if (getEmailAlreadyRegistered()
          != other.getEmailAlreadyRegistered()) 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) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + EMAIL_FIELD_NUMBER;
      hash = (53 * hash) + getEmail().hashCode();
      hash = (37 * hash) + EMAIL_VERIFIED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getEmailVerified());
      hash = (37 * hash) + BIRTHDATE_FIELD_NUMBER;
      hash = (53 * hash) + getBirthdate().hashCode();
      hash = (37 * hash) + GENDER_FIELD_NUMBER;
      hash = (53 * hash) + gender_;
      hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER;
      hash = (53 * hash) + getPhoneNumber().hashCode();
      hash = (37 * hash) + PHONE_NUMBER_VERIFIED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getPhoneNumberVerified());
      hash = (37 * hash) + EMAIL_ALREADY_REGISTERED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getEmailAlreadyRegistered());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.spotify.login5v3.UserInfoOuterClass.UserInfo parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.spotify.login5v3.UserInfoOuterClass.UserInfo parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.spotify.login5v3.UserInfoOuterClass.UserInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.spotify.login5v3.UserInfoOuterClass.UserInfo parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.spotify.login5v3.UserInfoOuterClass.UserInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.spotify.login5v3.UserInfoOuterClass.UserInfo parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.spotify.login5v3.UserInfoOuterClass.UserInfo parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.spotify.login5v3.UserInfoOuterClass.UserInfo 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.spotify.login5v3.UserInfoOuterClass.UserInfo parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.spotify.login5v3.UserInfoOuterClass.UserInfo 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.spotify.login5v3.UserInfoOuterClass.UserInfo parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.spotify.login5v3.UserInfoOuterClass.UserInfo 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.spotify.login5v3.UserInfoOuterClass.UserInfo 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 spotify.login5.v3.UserInfo}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:spotify.login5.v3.UserInfo)
        com.spotify.login5v3.UserInfoOuterClass.UserInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.spotify.login5v3.UserInfoOuterClass.internal_static_spotify_login5_v3_UserInfo_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.spotify.login5v3.UserInfoOuterClass.internal_static_spotify_login5_v3_UserInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.spotify.login5v3.UserInfoOuterClass.UserInfo.class, com.spotify.login5v3.UserInfoOuterClass.UserInfo.Builder.class);
      }

      // Construct using com.spotify.login5v3.UserInfoOuterClass.UserInfo.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();
        name_ = "";

        email_ = "";

        emailVerified_ = false;

        birthdate_ = "";

        gender_ = 0;

        phoneNumber_ = "";

        phoneNumberVerified_ = false;

        emailAlreadyRegistered_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.spotify.login5v3.UserInfoOuterClass.internal_static_spotify_login5_v3_UserInfo_descriptor;
      }

      @java.lang.Override
      public com.spotify.login5v3.UserInfoOuterClass.UserInfo getDefaultInstanceForType() {
        return com.spotify.login5v3.UserInfoOuterClass.UserInfo.getDefaultInstance();
      }

      @java.lang.Override
      public com.spotify.login5v3.UserInfoOuterClass.UserInfo build() {
        com.spotify.login5v3.UserInfoOuterClass.UserInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.spotify.login5v3.UserInfoOuterClass.UserInfo buildPartial() {
        com.spotify.login5v3.UserInfoOuterClass.UserInfo result = new com.spotify.login5v3.UserInfoOuterClass.UserInfo(this);
        result.name_ = name_;
        result.email_ = email_;
        result.emailVerified_ = emailVerified_;
        result.birthdate_ = birthdate_;
        result.gender_ = gender_;
        result.phoneNumber_ = phoneNumber_;
        result.phoneNumberVerified_ = phoneNumberVerified_;
        result.emailAlreadyRegistered_ = emailAlreadyRegistered_;
        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.spotify.login5v3.UserInfoOuterClass.UserInfo) {
          return mergeFrom((com.spotify.login5v3.UserInfoOuterClass.UserInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.spotify.login5v3.UserInfoOuterClass.UserInfo other) {
        if (other == com.spotify.login5v3.UserInfoOuterClass.UserInfo.getDefaultInstance()) return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (!other.getEmail().isEmpty()) {
          email_ = other.email_;
          onChanged();
        }
        if (other.getEmailVerified() != false) {
          setEmailVerified(other.getEmailVerified());
        }
        if (!other.getBirthdate().isEmpty()) {
          birthdate_ = other.birthdate_;
          onChanged();
        }
        if (other.gender_ != 0) {
          setGenderValue(other.getGenderValue());
        }
        if (!other.getPhoneNumber().isEmpty()) {
          phoneNumber_ = other.phoneNumber_;
          onChanged();
        }
        if (other.getPhoneNumberVerified() != false) {
          setPhoneNumberVerified(other.getPhoneNumberVerified());
        }
        if (other.getEmailAlreadyRegistered() != false) {
          setEmailAlreadyRegistered(other.getEmailAlreadyRegistered());
        }
        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.spotify.login5v3.UserInfoOuterClass.UserInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.spotify.login5v3.UserInfoOuterClass.UserInfo) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object name_ = "";
      /**
       * <code>string name = 1;</code>
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object email_ = "";
      /**
       * <code>string email = 2;</code>
       * @return The email.
       */
      public java.lang.String getEmail() {
        java.lang.Object ref = email_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          email_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string email = 2;</code>
       * @return The bytes for email.
       */
      public com.google.protobuf.ByteString
          getEmailBytes() {
        java.lang.Object ref = email_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          email_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string email = 2;</code>
       * @param value The email to set.
       * @return This builder for chaining.
       */
      public Builder setEmail(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        email_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string email = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearEmail() {
        
        email_ = getDefaultInstance().getEmail();
        onChanged();
        return this;
      }
      /**
       * <code>string email = 2;</code>
       * @param value The bytes for email to set.
       * @return This builder for chaining.
       */
      public Builder setEmailBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        email_ = value;
        onChanged();
        return this;
      }

      private boolean emailVerified_ ;
      /**
       * <code>bool email_verified = 3;</code>
       * @return The emailVerified.
       */
      public boolean getEmailVerified() {
        return emailVerified_;
      }
      /**
       * <code>bool email_verified = 3;</code>
       * @param value The emailVerified to set.
       * @return This builder for chaining.
       */
      public Builder setEmailVerified(boolean value) {
        
        emailVerified_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool email_verified = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearEmailVerified() {
        
        emailVerified_ = false;
        onChanged();
        return this;
      }

      private java.lang.Object birthdate_ = "";
      /**
       * <code>string birthdate = 4;</code>
       * @return The birthdate.
       */
      public java.lang.String getBirthdate() {
        java.lang.Object ref = birthdate_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          birthdate_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string birthdate = 4;</code>
       * @return The bytes for birthdate.
       */
      public com.google.protobuf.ByteString
          getBirthdateBytes() {
        java.lang.Object ref = birthdate_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          birthdate_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string birthdate = 4;</code>
       * @param value The birthdate to set.
       * @return This builder for chaining.
       */
      public Builder setBirthdate(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        birthdate_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string birthdate = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearBirthdate() {
        
        birthdate_ = getDefaultInstance().getBirthdate();
        onChanged();
        return this;
      }
      /**
       * <code>string birthdate = 4;</code>
       * @param value The bytes for birthdate to set.
       * @return This builder for chaining.
       */
      public Builder setBirthdateBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        birthdate_ = value;
        onChanged();
        return this;
      }

      private int gender_ = 0;
      /**
       * <code>.spotify.login5.v3.UserInfo.Gender gender = 5;</code>
       * @return The enum numeric value on the wire for gender.
       */
      public int getGenderValue() {
        return gender_;
      }
      /**
       * <code>.spotify.login5.v3.UserInfo.Gender gender = 5;</code>
       * @param value The enum numeric value on the wire for gender to set.
       * @return This builder for chaining.
       */
      public Builder setGenderValue(int value) {
        gender_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.spotify.login5.v3.UserInfo.Gender gender = 5;</code>
       * @return The gender.
       */
      public com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender getGender() {
        @SuppressWarnings("deprecation")
        com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender result = com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender.valueOf(gender_);
        return result == null ? com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender.UNRECOGNIZED : result;
      }
      /**
       * <code>.spotify.login5.v3.UserInfo.Gender gender = 5;</code>
       * @param value The gender to set.
       * @return This builder for chaining.
       */
      public Builder setGender(com.spotify.login5v3.UserInfoOuterClass.UserInfo.Gender value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        gender_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.spotify.login5.v3.UserInfo.Gender gender = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearGender() {
        
        gender_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object phoneNumber_ = "";
      /**
       * <code>string phone_number = 6;</code>
       * @return The phoneNumber.
       */
      public java.lang.String getPhoneNumber() {
        java.lang.Object ref = phoneNumber_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          phoneNumber_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string phone_number = 6;</code>
       * @return The bytes for phoneNumber.
       */
      public com.google.protobuf.ByteString
          getPhoneNumberBytes() {
        java.lang.Object ref = phoneNumber_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          phoneNumber_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string phone_number = 6;</code>
       * @param value The phoneNumber to set.
       * @return This builder for chaining.
       */
      public Builder setPhoneNumber(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        phoneNumber_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string phone_number = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearPhoneNumber() {
        
        phoneNumber_ = getDefaultInstance().getPhoneNumber();
        onChanged();
        return this;
      }
      /**
       * <code>string phone_number = 6;</code>
       * @param value The bytes for phoneNumber to set.
       * @return This builder for chaining.
       */
      public Builder setPhoneNumberBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        phoneNumber_ = value;
        onChanged();
        return this;
      }

      private boolean phoneNumberVerified_ ;
      /**
       * <code>bool phone_number_verified = 7;</code>
       * @return The phoneNumberVerified.
       */
      public boolean getPhoneNumberVerified() {
        return phoneNumberVerified_;
      }
      /**
       * <code>bool phone_number_verified = 7;</code>
       * @param value The phoneNumberVerified to set.
       * @return This builder for chaining.
       */
      public Builder setPhoneNumberVerified(boolean value) {
        
        phoneNumberVerified_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool phone_number_verified = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearPhoneNumberVerified() {
        
        phoneNumberVerified_ = false;
        onChanged();
        return this;
      }

      private boolean emailAlreadyRegistered_ ;
      /**
       * <code>bool email_already_registered = 8;</code>
       * @return The emailAlreadyRegistered.
       */
      public boolean getEmailAlreadyRegistered() {
        return emailAlreadyRegistered_;
      }
      /**
       * <code>bool email_already_registered = 8;</code>
       * @param value The emailAlreadyRegistered to set.
       * @return This builder for chaining.
       */
      public Builder setEmailAlreadyRegistered(boolean value) {
        
        emailAlreadyRegistered_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool email_already_registered = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearEmailAlreadyRegistered() {
        
        emailAlreadyRegistered_ = 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:spotify.login5.v3.UserInfo)
    }

    // @@protoc_insertion_point(class_scope:spotify.login5.v3.UserInfo)
    private static final com.spotify.login5v3.UserInfoOuterClass.UserInfo DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.spotify.login5v3.UserInfoOuterClass.UserInfo();
    }

    public static com.spotify.login5v3.UserInfoOuterClass.UserInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<UserInfo>
        PARSER = new com.google.protobuf.AbstractParser<UserInfo>() {
      @java.lang.Override
      public UserInfo parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new UserInfo(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<UserInfo> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<UserInfo> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.spotify.login5v3.UserInfoOuterClass.UserInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_spotify_login5_v3_UserInfo_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_spotify_login5_v3_UserInfo_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!spotify/login5/v3/user_info.proto\022\021spo" +
      "tify.login5.v3\"\227\002\n\010UserInfo\022\014\n\004name\030\001 \001(" +
      "\t\022\r\n\005email\030\002 \001(\t\022\026\n\016email_verified\030\003 \001(\010" +
      "\022\021\n\tbirthdate\030\004 \001(\t\0222\n\006gender\030\005 \001(\0162\".sp" +
      "otify.login5.v3.UserInfo.Gender\022\024\n\014phone" +
      "_number\030\006 \001(\t\022\035\n\025phone_number_verified\030\007" +
      " \001(\010\022 \n\030email_already_registered\030\010 \001(\010\"8" +
      "\n\006Gender\022\013\n\007UNKNOWN\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMAL" +
      "E\020\002\022\013\n\007NEUTRAL\020\003B\026\n\024com.spotify.login5v3" +
      "b\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_spotify_login5_v3_UserInfo_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_spotify_login5_v3_UserInfo_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_spotify_login5_v3_UserInfo_descriptor,
        new java.lang.String[] { "Name", "Email", "EmailVerified", "Birthdate", "Gender", "PhoneNumber", "PhoneNumberVerified", "EmailAlreadyRegistered", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
