public PinInfo setPin(String pin) {
    mPin = pin;
    return this;
  }
Constructor of {@link PinInfo}.

@param index {@link AccountIndex} that owns the pin
@param isHotp represents whether the OTP type is TOTP or HOTP
java/com/google/android/apps/authenticator/otp/PinInfo.java